Chinaunix

标题: rndc?? [打印本页]

作者: ding.happy    时间: 2006-04-03 17:50
标题: rndc??
我运行了这条命令
[root@hyk sbin]# ./rndc-confgen
# Start of rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "WWrzOTW/bbKp3+ppLLRH0w==";
};

options {
        default-key "rndc-key";
        default-server 127.0.0.1;
        default-port 953;
};
# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
#       algorithm hmac-md5;
#       secret "WWrzOTW/bbKp3+ppLLRH0w==";
# };
#
# controls {
#       inet 127.0.0.1 port 953
#               allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf

将这部分内容拷到/etc/named.conf中,key "rndc-key" {
#       algorithm hmac-md5;
#       secret "WWrzOTW/bbKp3+ppLLRH0w==";
# };
#
# controls {
#       inet 127.0.0.1 port 953
#               allow { 127.0.0.1; } keys { "rndc-key"; };
# };
然后再将前部内容怎么办啊!
请详细的介绍一下吧!
作者: 黄金分隔    时间: 2006-04-03 18:10
这个文件是管理员远程控制DNS重新加载,关闭。
作者: 满天星    时间: 2006-04-03 18:33
./rndc-confgen 是生产rndc.conf文件的 应该这样使用:
rndc-confgen >/etc/rndc.conf
导出到/etc/rndc.conf文件中去(named.conf如果也在etc目录下面的话,应该是放在一起的!)
rndc.conf的内容是下面部分包含的内容:
# Start of rndc.conf
。。。。。。。。。
# End of rndc.conf

而后面的部分要导出到named.conf文件里面去!~就是你说的部分了!
作者: 满天星    时间: 2006-04-03 18:35
我也是刚学没多久,看着教程自己做了一个DNS服务器,这里是具体内容:
你可以参考参考:
http://blog.mtx8.com/User/mtx/archives/2006/258.htm
作者: Glue    时间: 2006-04-03 22:58
管了这么久的DNS,还没有用过rndc-confgen哩,通常都是现成的rndc.key,反正我也没有从别的机子上rndc过。
作者: ding.happy    时间: 2006-04-05 16:33
标题: !!
谢谢三楼的指点!
作者: ding.happy    时间: 2006-04-05 18:53
标题: 哈!
已经搞定了!谢谢你们的帮助!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2