LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-01-2012, 01:50 AM   #1
vahab
Member
 
Registered: Jun 2011
Posts: 56

Rep: Reputation: Disabled
" 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.
 
Old 08-01-2012, 04:19 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
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
 
1 members found this post helpful.
Old 08-01-2012, 12:47 PM   #3
vahab
Member
 
Registered: Jun 2011
Posts: 56

Original Poster
Rep: Reputation: Disabled
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 !

Last edited by vahab; 08-01-2012 at 01:18 PM.
 
Old 08-01-2012, 01:25 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,910

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
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
 
1 members found this post helpful.
Old 01-27-2014, 01:30 PM   #5
vincix
Member
 
Registered: Feb 2011
Posts: 44

Rep: Reputation: 0
!

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "SDA must have a GPT disk label" error while installing RHEL6 - "IBM x3650 M3" Server garbagegigo@gmail.com Linux - Server 12 02-25-2014 05:34 PM
CrunchBang 10 "Statler" r20110207 Install Hangs "Detecting Network Devices" jv2112 Linux - Newbie 2 05-04-2011 05:48 PM
bind rndc not work:"rndc: connect failed: timed out" echox Linux - Server 2 08-20-2010 12:19 AM
service named error "rndc: conenct failed: connection refused" Reu Linux - General 1 07-12-2004 01:34 PM
bind and named and "rndc: connect failed: connection refused" coffee9876 Linux - Networking 3 12-16-2003 10:50 AM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration