LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-26-2007, 01:06 PM   #1
Yxaaaaaaa
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Why my named doesnt find named.root


Hello! I have configured my named server but before 2 days it brokes... I can't start it .. In my named.conf i have :
Code:
zone "." {
        type hint;
        file "/var/named/chroot/var/named/run-root/var/named.root";
};
So i start it and.. :
Code:
[root@international ~]# service named start
Starting named:                                            [FAILED]
[root@international ~]# tail /var/log/messages
Jan 26 13:05:24 international named[8151]: starting BIND 9.2.4 -u named -c /etc/named.conf -u named -t /var/named/run-root
Jan 26 19:05:24 international named[8151]: using 1 CPU
Jan 26 19:05:24 international named[8151]: loading configuration from '/etc/named.conf'
Jan 26 19:05:24 international named[8151]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 26 19:05:24 international named[8151]: could not configure root hints from '/var/named/chroot/var/named/run-root/var/named.root': file not found
Jan 26 19:05:24 international named[8151]: loading configuration: file not found
Jan 26 19:05:24 international named[8151]: exiting (due to fatal error)
Jan 26 13:05:24 international named: named startup failed
[root@international ~]# ls -al /var/named/chroot/var/named/run-root/var/named.root
-rw-r--r--  1 named named 2769 Jun 15  2001 /var/named/chroot/var/named/run-root/var/named.root
Can anyone tell me where is the problem and how can i fix it ..
 
Old 01-26-2007, 01:51 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,002
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
/var/named/chroot as implied by its name is a chroot directory. That means when you start named it runs as if /var/named/chroot = / (root directory).

You need to modify your named.conf to have:
JUST:
file "/var/named/run-root/var/named.root";
INSTEAD OF:
file "/var/named/chroot/var/named/run-root/var/named.root";

You'll need to do the same for any zone file specifications you may have made.
 
Old 01-26-2007, 02:11 PM   #3
Yxaaaaaaa
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
It's the same
 
Old 01-26-2007, 03:22 PM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,002
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
Can't be exactly the same if you did what I said. Please post the new log entries.
 
Old 01-26-2007, 03:48 PM   #5
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,002
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
Well I just looked more closely at what you originally wrote. In your named startup you are specifying your chroot directory for named with the -t flag as: /var/named/run-root

Then for some reason you're trying to use /var/named/chroot as a base directory. This is the default chroot directory for some installations but it is not the one you are specifying in startup.

Also you don't need to specify full paths in named.conf - the default path is CHROOTDIR/var/named for root hints file and zone files. You only need to type in "named.root" not the full path. However for this to work you need to fix your idea of what is actually your CHROOTDIR.

Check your /etc/sysconfig/named file to see what it specifies for ROOTDIR (which is what I'm calling CHROOTDIR above).
 
  


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
named cannot find zone files? zarnold Red Hat 4 09-04-2006 11:36 AM
Named used to work but now it doesnt jester_69 Linux - General 3 06-28-2004 02:39 AM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM
cannot find named.conf kaushikma Linux - Networking 1 02-07-2004 09:42 AM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM


All times are GMT -5. The time now is 04:48 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