November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Fixing the BIND (named) Service Bug – Generating /etc/rndc.key Redhat and Centos Fedora

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.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>