loading master file /var/named/DOMAIN.db: file not found ?

Quanntum

Member
Apr 3, 2004
15
0
151
When Bind is restarted, all domains get the line that the domain db hasnt been found.
The files are in place.
When accessing via the browser we dont get the homepage, but only the 'page not found' error.

Any idea what causes this error? All services are up and running and up to date, brandnew server.
 

bijo

Well-Known Member
Aug 21, 2004
475
0
166
India
Hello,

You should check your named.conf and also check the messages. Run the following command in one console and try to restart named service from another console.
-----------------------------------
tail -f /var/log/messages
-----------------------------------
And paste few log line here.

Also try the following script
-------------------------------
/scripts/fixndc
-------------------------------

Let me know the status ;)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
You might also have a chroot environment enabled for named. You can try disabling that by editing /etc/sysconfig/named and commenting out the line:

ROOTDIR=/var/named/chroot

Then restart named and see if the zones load. If not, posting your OS would help.
 

Quanntum

Member
Apr 3, 2004
15
0
151
Solved

Thanks both of you !
the logging didnt give a clue, but the chroot editing sure did. Hope you guys stick around here a long time !
 

valkira

Active Member
May 3, 2004
36
0
156
Croatia
cPanel Access Level
Root Administrator
You might also have a chroot environment enabled for named. You can try disabling that by editing /etc/sysconfig/named and commenting out the line:

ROOTDIR=/var/named/chroot
Hi, I had this problem and removing chroot helped, could you just give some pointers on chroot environment - why or why not use it, disadvantages etc. Thanks