BIND installed but not working; can't find config file

Issues related to configuring your network
Post Reply
lightfoot
Posts: 3
Joined: 2013/07/28 08:24:47
Contact:

BIND installed but not working; can't find config file

Post by lightfoot » 2013/12/10 06:06:09

Many thanks in advance for help resolving this issue.
Working on Centos 6 with Plesk Panel 11.

Our server went down because of our disk being too full. BIND is installed but now the named.conf file cannot be found on the server although it exists. We are using BIND 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6.

From the command line:

Code: Select all

ll /etc/named.conf
lrwxrwxrwx. 1 root root 32 Jul 16 15:59 
/etc/named.conf -> /var/named/chroot/etc/named.conf 

Code: Select all

 ls -l /var/named/chroot/etc           
total 20
drwxr-x---. 2 root  named 4096 Aug 27 10:55 named
-rw-r--r--. 1 root  named 2389 Aug 27 10:55 named.iscdlv.key
-rw-r-----. 1 root  named  931 Jun 21  2007 named.rfc1912.zones
-rw-r--r--. 1 root  named  487 Jul 19  2010 named.root.key
-rw-r-----. 1 named named   77 Oct 15  2012 rndc.key
I am able to stop the service:

Code: Select all

[root@ ~] /etc/init.d/named stop
Stopping named:      [ OK  ]
But when I try to start the service, I get this error:

Code: Select all

[root@ ~]# /etc/init.d/named start
Cannot find configuration file. You could create it by system-config-bind
The problem is that system-config-bind no longer works. What is the best way to resolve this? Do I need to create the named.conf file or do I need to reinstall BIND?

Thanks again for your assistance.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: BIND installed but not working; can't find config file

Post by TrevorH » 2013/12/10 09:37:07

You have a symlink in /etc for named.conf pointing to /var/named/chroot/etc/named.conf but your ls of that directory shows that no file of that name exists there. You do have a 'named' directory in that /var/named/chroot/etc directory and that is not "normal" so perhaps it's worth looking in there to see if someone created it and moved it there. Otherwise, it's time to get the backups out and restore the file from there...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply