LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Why my named doesnt find named.root (https://www.linuxquestions.org/questions/linux-software-2/why-my-named-doesnt-find-named-root-523063/)

Yxaaaaaaa 01-26-2007 01:06 PM

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 ..

MensaWater 01-26-2007 01:51 PM

/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.

Yxaaaaaaa 01-26-2007 02:11 PM

It's the same :(

MensaWater 01-26-2007 03:22 PM

Can't be exactly the same if you did what I said. Please post the new log entries.

MensaWater 01-26-2007 03:48 PM

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).


All times are GMT -5. The time now is 06:30 PM.