Centos 6.3 Bind hangs on “Generating /etc/rndc.key”

bindcentoscentos6

I'm installing bind on a clean Centos 6.3 system.
In previous versions that would work like a charm, but now I get

Generating /etc/rndc.key

when trying to start bind after the installation.
Why is this and does anyone know how to solve this?

Thank you!

Best Answer

Try using

rndc-confgen -a -r /dev/urandom

If you're using bind-chroot, add :

rndc-confgen -a -r /dev/urandom -t /var/named/chroot

The result should be:

wrote key file "/etc/rndc.key"

wrote key file "/var/named/chroot/etc/rndc.key"

I've found the answer here and tested myself because I was having the same problem.

Cheers