您的位置:首页 > 其它

使用bind9 的rndc 控制dns

2010-07-07 15:09 489 查看
使用rndc-confgen生成rndc.conf之后,如下:
# Start of rndc.confkey "rndc-key" {        algorithm hmac-md5;        secret "Cm9Lc0JG5wJcsoRj3PbKqw==";};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 "Cm9Lc0JG5wJcsoRj3PbKqw==";# };## controls {#       inet 127.0.0.1 port 953#               allow { 127.0.0.1; } keys { "rndc-key"; };# };# End of named.conf

将# Use with the following in named.conf, adjusting the allow list as needed:之后的内容复制到named.conf中,去掉注释,重启named -g,然后在另外一个终端测试rndc reload,成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: