Fixing the BIND (named) Service Bug – Generating /etc/rndc.key
I must admit, I have never had this bug for a very loong time. I thought It must have been fixed or rather removed all together. It was first reported with RHEL 6.1 and was removed as commented here by the developers.
However, I came accross this bug again while trying configure one of my DNS servers running on CentOS 6.3. The DNS (named) service always stopped on the following
Problem:
#service named restart
Generating /etc/rndc.key:
Solution:
Just exceute the following command:
#rndc-confgen -a -r /dev/urandom
and if you’re runing chroot under /var/named/chroot, you must add “-t /var/named/chroot” to the command above. It should look like this:
#rndc-confgen -a -r /dev/urandom -t /var/named/chroot
More description to rndc-confgen can be found here
You should be able to start DNS (named) service after executing these commands.
Recent Comments