DNS service named failed to start

Issues related to configuring your network
Post Reply
falam82
Posts: 1
Joined: 2019/11/18 05:43:20

DNS service named failed to start

Post by falam82 » 2019/11/18 05:50:56

Hello,

The below status I get when I start DNS named service for the first time on Centos 7:

● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2019-11-18 10:17:39 PKT; 8min ago
Process: 42100 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)

Nov 18 10:17:39 localhost.localdomain bash[42100]: zone stp.net.pk/IN: loading from master file /etc/named/zones/stp.net.pk failed: not at top of zone
Nov 18 10:17:39 localhost.localdomain bash[42100]: zone stp.net.pk/IN: not loaded due to errors.
Nov 18 10:17:39 localhost.localdomain bash[42100]: _default/stp.net.pk/IN: not at top of zone
Nov 18 10:17:39 localhost.localdomain bash[42100]: zone 172.215.203.in-addr.arpa/IN: loading from master file /etc/named/zones/db.203.215.172 failed: file not found
Nov 18 10:17:39 localhost.localdomain bash[42100]: zone 172.215.203.in-addr.arpa/IN: not loaded due to errors.
Nov 18 10:17:39 localhost.localdomain bash[42100]: _default/172.215.203.in-addr.arpa/IN: file not found
Nov 18 10:17:39 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=1
Nov 18 10:17:39 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Nov 18 10:17:39 localhost.localdomain systemd[1]: Unit named.service entered failed state.
Nov 18 10:17:39 localhost.localdomain systemd[1]: named.service failed.


Kindly help.

BShT
Posts: 116
Joined: 2019/10/09 12:31:40

Re: DNS service named failed to start

Post by BShT » 2019/11/19 13:57:42

cat /etc/sysconfig/named

User avatar
TrevorH
Forum Moderator
Posts: 27138
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: DNS service named failed to start

Post by TrevorH » 2019/11/19 15:18:38

Or even better, fix the errors that were listed out in the systemctl status output...
Nov 18 10:17:39 localhost.localdomain bash[42100]: zone stp.net.pk/IN: loading from master file /etc/named/zones/stp.net.pk failed: not at top of zone
Nov 18 10:17:39 localhost.localdomain bash[42100]: zone stp.net.pk/IN: not loaded due to errors.
Nov 18 10:17:39 localhost.localdomain bash[42100]: _default/stp.net.pk/IN: not at top of zone
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Networking Support”