If when adding a entry for a hostname you get the following error "Fatal, neither ndc or rndc was found on this server"
SSH into your server as and su to root. Then check your /etc/rndc.key file if it should have around 3 lines in it if not you will need to open your named.conf file and copy the 3 lines from the top pertaining to the rndc key they should look like the following:
key "rndc-key" {
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxxxxxxxxxx";
};
and copy that into the rndc.key file. Once you have done that you will need to
run /scripts/fixndc
once you have done that you should beable to run rndc -s localhost status and see basic information such as:
number of zones: 6
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0
/1000tcp clients: 0
/100server is up and running
If you get a error about file not found in /usr/local/etc/ you will need to create a symbolic like
ln -s /etc/rndc.key /usr/local/etc/rndc.key
No comments:
Post a Comment