LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   " rndc-confgen -a" on RHEL6 hangs (http://www.linuxquestions.org/questions/linux-server-73/rndc-confgen-a-on-rhel6-hangs-4175419685/)

vahab 08-01-2012 02:50 AM

" rndc-confgen -a" on RHEL6 hangs
 
Hi,
I am trying to start BIND (named) service on a newly installed RHEL6 (SELinux is disabled) ,but the service cannot be started :

It stuck like below :
# /etc/init.d/named start
Generating /etc/rndc.key:

I stopped this command and tried to generate rndc key manually, but this command hangs too :
# rndc-confgen -a

Did anyone has the similar issue ?

Thanks.

bathory 08-01-2012 05:19 AM

Hi,

Try to use
Code:

rndc-confgen -a -r /dev/urandom
and see if it helps.
Note: if you're trying to run bind chrooted under /var/named/chroot (default in RHEL) you need to add "-t /var/named/chroot" in the command above

Regards

vahab 08-01-2012 01:47 PM

Thank you,
rndc-confgen -a -r /dev/urandom -t /var/named/chroot
solved my problem.

That is so strange that it needed a trick to start BIND in a new default OS. that is why I still don't like RHEL6 !

bathory 08-01-2012 02:25 PM

Quote:

That is so strange that it needed a trick to start BIND in a new default OS. that is why I still don't like RHEL6 !
It's a known RHEL bug, but I thought it was resolved by now.
Anyway, if you're happy with the solution you can mark the thread "SOLVED" from the Thread Tools on top of the page

Regards

vincix 01-27-2014 02:30 PM

!
 
After 10 years I found this solution still valid for Centos 6.5 :)
Thanks!


All times are GMT -5. The time now is 09:29 PM.