DNS config files unreadable / unwritable

rocketchef

New member
Joined
Dec 5, 2016
Messages
2
Hi,

I went to update the MX pointers for a domain, and I don't appear to have any control over DNS. Any help appreciated.

Clicking on ''DNS Management" gives me this:
Error Reading db file

Can't open file /var/named/DOMAIN.com.db for reading

I've had a look at /var/named and a few things are odd.

  • some of the subdomains have no file - when I create an empty one I still get an error
  • looking at file dates, some are being written to when I updated the nameservers at the account level, even though DA says "Unable to change NameServers: Cannot read zone for DOMAIN.com: Can't open file /var/named/DOMAIN.com.db for reading"

I've done some reading and neither of the following solutions worked:
http://forum.directadmin.com/showthread.php?t=52308 (there's no reset option as the DNS page just displays an error)
http://forum.directadmin.com/showthread.php?t=50403 (permissions look correct)

I'd appreciate any help here, including how to safely rebuild the DNS files if that's my only option. Thanks!
 
#ls -l /var/named
-rw-r--r-- 1 named root 842 Jan 19 2015 subdomain1.domain1.com.db
-rw-r--r-- 1 named root 821 Dec 6 12:24 subdomain2.domain1.com.db
drwxrwx--- 2 named named 4096 Dec 4 03:34 data
-rw-r--r-- 1 named root 818 Jan 19 2015 domain2.com.db
-rw-r--r-- 1 named root 812 Jan 19 2015 domain2.com.db
-rw-r--r-- 1 named root 812 Jan 19 2015 domain2.org.db
drwxrwx--- 2 named named 4096 Dec 6 11:42 dynamic
-rw-r--r-- 1 named root 864 Jan 19 2015 domain3.com.db
-rw-r--r-- 1 named root 833 Dec 6 12:24 subdomain1.domain3.db
-rw-r--r-- 1 named root 855 Dec 6 12:25 domain1.com.db
-rw-r--r-- 1 named root 513 Jul 31 2007 localhost.zone
-rw-r----- 1 named named 2075 Apr 23 2014 named.ca
-rw-r----- 1 named named 152 Dec 15 2009 named.empty
-rw-r--r-- 1 named root 433 Oct 26 2003 named.local
-rw-r----- 1 named named 152 Jun 21 2007 named.localhost
-rw-r----- 1 named named 168 Dec 15 2009 named.loopback
drwxrwx--- 2 named named 4096 Dec 12 2014 slaves
-rw-r--r-- 1 named root 836 Jan 19 2015 domain4.com.db

#ls -l /var/

drwxr-xr-x. 7 root root 4096 Oct 20 01:25 cache
drwxr-xr-x. 3 root root 4096 Feb 13 2012 db
drwxr-xr-x. 3 root root 4096 Feb 13 2012 empty
drwxr-xr-x. 2 root root 4096 Sep 23 2011 games
drwx------ 3 root root 4096 Jan 19 2015 hotcopy
drwxr-xr-x. 24 root root 4096 Jan 19 2015 lib
drwxr-xr-x. 2 root root 4096 Sep 23 2011 local
drwxrwxr-x. 4 root lock 4096 Dec 6 04:44 lock
drwxr-xr-x. 9 root root 4096 Dec 4 03:34 log
drwxr-xr-x 2 root root 4096 Jan 19 2015 logs
lrwxrwxrwx. 1 root root 10 Jan 19 2015 mail -> spool/mail
drwxr-x--- 5 root named 4096 Dec 6 12:26 named
drwxr-xr-x. 2 root root 4096 Sep 23 2011 nis
drwxr-xr-x. 2 root root 4096 Sep 23 2011 opt
drwxr-xr-x. 2 root root 4096 Sep 23 2011 preserve
drwxr-xr-x. 17 root root 4096 Dec 6 12:41 run
drwxr-xr-x. 10 root root 4096 Jan 19 2015 spool
drwxrwxrwt. 3 root root 4096 Oct 30 23:12 tmp
drwxr-xr-x 11 root root 4096 Jan 19 2015 www
drwxr-xr-x. 2 root root 4096 Sep 23 2011 yp
 
Back
Top