BIND - DNS Problems - need help

eglwolf

Well-Known Member
Jan 1, 2004
190
0
166
I just set up a VPS server with Centos 3.4 and all seemed to work well, however after updating the domain over to the new nameservers, and configuring those at the domain registrar. The site dies, it seems that the bind is not working correctly. I tried using /scripts/fixdnc but that did not resolve the problem. Which is:

Apr 12 12:34:58 ve300 named[21792]: zone customer_domain.com/IN: loading master file /var/named/customer_domain.com.db: file not found
Apr 12 12:34:58 ve300 named[21792]: zone ve300.customer_domain.com/IN: loading master file /var/named/ve300.customer_domain.com.db: file not found
Apr 12 12:34:58 ve300 named[21792]: zone customer_domain.com/IN: loading master file /var/named/customer_domain.com.db: file not found


It is not loading the dns zones. I tried to delete and recreate them in whm, and that did not work. Same error. I have verified that these files fo exist in the /var/named directory.

Can anyone give me a hand resolving this issue?
 

reggie

Member
Apr 10, 2002
6
0
301
centos DNS problems

Hi all
I have just had the same problem, it seems that centos creates a chrooted environment for named.
Cpanel locates the zone files in /var/named I was getting the same error file not found, I noticed the directory /var/named/chroot/var/named so I copied all of the zone files into there and restarted named, and guess what named could suddenly find the zone files and I was then able to get an authortive response using NSLOOKUP for the domains.
I have submitted a ticket with cpanel.net to find out if there is a fix for this problem.
cheers, Reggie
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
31
473
Go on, have a guess
You can simply disable the chroot named by editing /etc/sysconfig/named and comment out the line that begins with:

ROOTDIR=

Then move your .db files to /var/named and chown the directory to the named user:

chown -R named:named /var/named

Then restart named:

/etc/init.d/named restart