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 port 953
allow {; } keys { "rndc-key"; };
最後修改日期: 2018 年 09 月 11 日