LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 755|回复: 2

redhat7.2,rndc不能启动

[复制链接]
发表于 2003-9-5 20:41:40 | 显示全部楼层 |阅读模式
dns服务器已经没问题了,配置文件只是在caching-nameserver的named.conf基础上加了私网的域变换,其他都没改,rndc的配置文件也没该
dns服务器已经启动,
运行rndc command,
报错rndc: get key definition ; not found
为什么,怎么解决?
发表于 2003-9-5 21:34:33 | 显示全部楼层
这个key是named和rndc之间加密通讯要用到的密钥,
1. 建一个/etc/rndc.key
内容

  1. key "rndckey" {
  2.         algorithm       hmac-md5;
  3.         secret "asdfwerqwerupbqru1uqwifasdfVoXVCFjtGAupOznFoTtPSZsAubEs";
  4. };
复制代码


2. 再在/etc/named.conf里加上
include "/etc/rndc.key"

3. pkill -HUP named

就可以了
 楼主| 发表于 2003-9-5 21:44:26 | 显示全部楼层
this file is allredy exist. there is also a file named "rndc.conf". I've checked it that the key value in "rndc.conf" is the same as "rndc.key"
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表