LinuxSir.cn,穿越时空的Linuxsir!

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

配置RNDC时遇到的问题

[复制链接]
发表于 2006-1-10 13:35:07 | 显示全部楼层 |阅读模式
这是我的RNDC.KEY
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
        algorithm hmac-md5;
        secret "cRrZrT6Y4SiM96wKJc9MUA==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
这是我的RNDC.CONF
# Start of rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "d+9EGWNww+yZli6amQnRFw==";
};

options {
        default-key "rndc-key";
        default-server 127.0.0.1;
        default-port 953;
};
根据书上无KEY文件时的提示,我用 rndc-confgen后再用rndc status 就出现了
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.
还有NAMED一定要用KILL才能关闭了 ,唉
 楼主| 发表于 2006-1-13 08:48:47 | 显示全部楼层

快来啊

我顶上去!!!!!
回复 支持 反对

使用道具 举报

发表于 2007-5-29 09:24:15 | 显示全部楼层
rndc.key与rndc.conf中的secret中必需一样。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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