Page 1 of 1

Named not starting

PostPosted: Apr 28th, '14, 02:22
by linuxdad
I am not able to start named.service on the 64-bit Linux distro. When I try to start it, I see:

ns3.IT-Security-inc.com root
[/var/named/etc] systemctl status named.service
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled)
Active: failed (Result: exit-code) since Sun, 2014-04-27 19:19:25 EDT; 42s ago
Process: 9041 ExecStartPre=/usr/sbin/named-checkconf -t /var/lib/named -z /etc/named.conf (code=exited, status=1/FAILURE)
Process: 9012 ExecStartPre=/usr/sbin/setup-named-chroot.sh /var/lib/named on (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/named.service

Apr 27 19:19:25 ns3.IT-Security-inc.com named-checkconf[9041]: /etc/named.conf:24: open: /var/named/etc/bogon_acl.conf: file not found
Apr 27 19:19:25 ns3.IT-Security-inc.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Apr 27 19:19:25 ns3.IT-Security-inc.com systemd[1]: Unit named.service entered failed state



The problem is that the file already exists.
Code: Select all
ls -la /var/named/etc/bogon_acl.conf
-rw-r--r-- 1 named named 625 Apr 27 16:16 /var/named/etc/bogon_acl.conf


So what is it that is missing?

Re: Named not starting

PostPosted: Apr 28th, '14, 18:36
by tom_
maybe named is chrooted and it is looking for that file on some other folder
under /var/lib/named ?

Re: Named not starting

PostPosted: Apr 28th, '14, 18:58
by doktor5000
Yes it is running in chroot:

linuxdad wrote:
Process: 9012 ExecStartPre=/usr/sbin/setup-named-chroot.sh /var/lib/named on (code=exited, status=0/SUCCESS)
[...]
Apr 27 19:19:25 ns3.IT-Security-inc.com named-checkconf[9041]: /etc/named.conf:24: open: /var/named/etc/bogon_acl.conf: file not found


You may want to check the output of mount for the named bind mounts and also check the chroot script /usr/sbin/setup-named-chroot.sh
Please alsocheck your previous threads about this: viewtopic.php?f=8&t=6584 and viewtopic.php?f=7&t=6476

Also please next time use code tags as explained in ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv

Re: Named not starting

PostPosted: Apr 29th, '14, 01:46
by linuxdad
maybe named is chrooted and it is looking for that file on some other folder
under /var/lib/named ?


Thank you Tom, I did think of that, and I also have an Hard Link for /var/lib/named and /var/named.

Thank you.

Re: Named not starting

PostPosted: May 2nd, '14, 17:17
by linuxdad
Thank you Doctor,
You may want to check the output of mount for the named bind mounts and also check the chroot script /usr/sbin/setup-named-chroot.sh
Please alsocheck your previous threads about this: viewtopic.php?f=8&t=6584 and viewtopic.php?f=7&t=6476

Also please next time use code tags as explained in ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv


I revisited these items, but yet cannot get the named daemon to start.

While I can umount the unused mount points, and get the named.conf edited, it makes no sense why the checkconf tool rejects it (I have almost a duplicate of the file on a similarly configured 32-bit server.).

Thank you.