rndc: neither /etc/rndc.conf nor /etc/rndc.key was found

ARUN Post in DIRECT ADMIN, DNS
0

Getting below message on direct admin server while named status is checked :.

[[email protected] ]# service named status
rndc: neither /etc/rndc.conf nor /etc/rndc.key was found

Solution :

rndc-confgen >> /etc/rndc.conf

Open  /etc/rndc.conf

cat /etc/rndc.conf

Add the content of key file as mentioned below to the end of named.conf

cp -ar /etc/named.conf /etc/named.conf.bak

A sample of the file part to be added is mentioned below :

=================================================================

# End of rndc.conf

# Use with the following in named.conf, adjusting the allow list as needed:
 key "rndc-key" {
       algorithm hmac-md5;
       secret "9Agjel9AAghshhs85k0g==";
 };

 controls {
       inet 127.0.0.1 port 953
               allow { 127.0.0.1; } keys { "rndc-key"; };
 };
# End of named.conf
=================================================================================

 Restart named   /etc/init.d/named restart

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.