配置rndc.conf 命令:rndc-confgen > /etc/bind/rndc.conf
自动生成rndc.conf,内容如下:
# Start of rndc.conf key "rndc-key" {
algorithm hmac-md5;
secret "oYV+NSAXam5nY1xa++tElQ==";
};
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 "oYV+NSAXam5nY1xa++tElQ==";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# }; # End of named.conf
这个文件里面有两段,把上面蓝色那段保留,把绿色那段剪切到named.conf文件的最下边
(3)重新启动named
#/etc/init.d/named restart
原文:http://www.cnblogs.com/wangyongbin/p/3712128.html