rndc: connection to remote host closed
named起動時下記エラーがでていた。自動アップデートによりkeyが無効になった事が原因のようだ。
dc: 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,
or the key is invalid.
# cd /etc
#rndc-confgen -a -b 512 -k rndckey
ここでnamed.confのkeyネームがrndckeyと同じ名前であることを確認。
#vi /etc/rndc.conf
次にrndc.keyのデーターalgorithmとsecret部分をrndc.confにコピーして完了
この時rndc.confのkeyネームも同じにしておくとよい(ネットではそれだけでエラーが消えたとの記事もある。わたしの場合、この部分「key]の名前のままだがエラーにならない)
いちばん参考になったのは、やはりこのサイトだった。
正常にできたら、
number of zones: 10
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and runningrestart
となるはず。
#
