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 相關文章
大漏洞時代開啟
More...
DNSSEC sign 簽錯了,導致 DNS 查詢失敗
More...
現在 clickFix 會搭配 nslookup DNS
More...
如何驗證 Linux 的 DNS 查詢有輪替
More...

作者

留言

撰寫回覆或留言

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