rndc status
WARNING: key file (/etc/rndc.key) exists, but using default configuration file (/etc/rndc.conf)
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,
* the clocks are not synchronized, or
* the key is invalid.

重建 rndc.conf

rndc-confgen -r /dev/urandom > /etc/rndc.conf

重新產生 rndc.key

rndc-confgen -a -r /dev/urandom

將 /etc/rndc.conf 裡註解的部份放到 /etc/named.conf,變成如下,原本裡面如果有 include ‘/etc/rndc.key’; 就刪除

key "rndc-key" {
algorithm hmac-md5;
secret "I4KvY0KjDv82F5iv6fFEfw==";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
Related posts 相關文章
DNS BIND 9.16.50 最後一個版本已釋出
More...
DNS BIND 9.16 版本將 EOL
More...
在 Windows 上面 Plesk Obsidian 18.0.60 後不再維護 BIND DNS
More...
google 搜尋上的廣告連結 keepass.info 不要亂點
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。