PDA

View Full Version : Bind will not start


wpwood3
4th April 2009, 03:16
I cannot get BIND to start.
Tried everything in THIS THREAD (http://www.howtoforge.com/forums/showthread.php?t=11207)and still no luck.

Here's the error when I do /etc/init.d/named start

Starting named:
Error in named configuration:
/etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found
/etc/named.conf:3: parsing failed
[FAILED]



I looked at /var/named/chroot/etc/named.conf and see this at the top:

options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/home/admispconfig/ispconfig/web/multidoc/edit";

I rechecked permissions and they look ok:

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
chkconfig --levels 235 named on
/etc/init.d/named start


The settings in ISPConfig > Management > Server > Settings > DNS

named.conf: /var/named/chroot/etc/named.conf
Zonefiles Dir.: /var/named/chroot/var/named


What else can I check?

wpwood3
4th April 2009, 04:08
The solution was to make a change in DNS Manager so that named.conf would be re-written. All I did was change the Admin email, save and then change it back and save again.

till
4th April 2009, 10:30
Thats a known problem in centos. When you install a bind update in centis then centos messes up the permissions of the bind folder. You will have to redo the bind config steps from the perfect setup then to get the proper permissions back. Otherwise the problem you encountered happens.

wpwood3
4th April 2009, 18:38
Thanks

I knew about the permissions issue from reading previous posts you and falko had made. What I did not know was that named.conf would not be overwritten until any change was made in DNS Manager.