Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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 ..
/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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.