Named not starting

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Named not starting

Postby linuxdad » Apr 28th, '14, 02:22

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?
Last edited by doktor5000 on Apr 28th, '14, 18:53, edited 1 time in total.
Reason: added code tags
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Named not starting

Postby tom_ » Apr 28th, '14, 18:36

maybe named is chrooted and it is looking for that file on some other folder
under /var/lib/named ?
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: Named not starting

Postby doktor5000 » Apr 28th, '14, 18:58

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Named not starting

Postby linuxdad » Apr 29th, '14, 01:46

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.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Named not starting

Postby linuxdad » May 2nd, '14, 17:17

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.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest