LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-24-2004, 05:08 PM   #1
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
named daemon variable ${ROOTDIR} in init.d does not allow zones to be read


I had a bind 9 on Redhat problem, I think I fixed it. I need to know if the following problem and resulting solution a sound one.

Here goes...

I setup a bind server today with Redhat and installed bind. I then installed webmin to do my administration. I created my master server, zones and hosts within webmin without a problem. I then setup via the chkconfig the named service to start. But each time I would start the service I could not resolve and host names. A line command of ps -aux | grep named would show named running but I still could not resolve any names.

hmmm....

Long story short I began looking at the /var/log/messages file after I started the named service and noticed that when I ran the named service manually it was ok. The manual command being...

/user/sbin/named -u named

However the init.d was running the a different command string for the same service and it looked like this in the /var/log/sysconfig/messages file.

/user/sbin/named -u named -t /var/named/chroot

So whats the -t and the rootdir stuff about? I looked into the /etc/init.d/name file and discovered some options the init named script was adding. The syntax was OPTIONS="${OPTIONS} -t ${ROOTDIR}"

The options are derived from settings in /etc/sysconfig/named file.

Not knowing what else to do I changed the string to read...

OPTIONS="${OPTIONS}"

I then restarted my named service and it works.

As a side note the "Start Bind Server" button under the Bind Server section of webmin changed to say "Apply Changes" within the webmin gui as soon as I went back into it. Before it was "Start Bind Server" no matter if I made changes or not. Then if I pressed "Start Bind Server" it would complain, "server already running", well da.

Anyway, Let me know what you think, Conceptually sound or Conceptually screwy?

tia,
rootnuke
 
  


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
starting named on boot without init scripts evilchild Suse/Novell 1 03-05-2005 07:46 AM
Red Hat: named daemon errors dsschanze Red Hat 2 01-29-2005 10:45 AM
Set Global variable for daemon without login RX100 Linux - Software 3 10-08-2004 08:50 AM
remove expired zones from named.conf ritesh_aladdin Linux - Networking 0 07-23-2004 05:34 AM
Named Daemon mykl Linux - Networking 1 05-31-2001 04:24 AM


All times are GMT -5. The time now is 07:27 AM.

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