Author Topic: Cant start DNS after hostname change  (Read 131 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Cant start DNS after hostname change
« on: December 30, 2017, 06:43:18 PM »
Hi Guys,

I've changed the hostname via the panel and after a reboot, the DNS service wont' go up.

here is my status:

Code: [Select]
[root@srv5 ~]# service named status
Redirecting to /bin/systemctl status named.service
● 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 Sat 2017-12-30 17:05:23 GMT; 1h 31min ago
  Process: 2113 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)

Dec 30 17:05:23 srv5.maindomain.club bash[2113]: zone site1.com/IN: not loaded due to errors.
Dec 30 17:05:23 srv5.maindomain.club bash[2113]: _default/site1.com/IN: bad zone
Dec 30 17:05:23 srv5.maindomain.club bash[2113]: zone site3.club/IN: loaded serial 2013071600
Dec 30 17:05:23 srv5.maindomain.club bash[2113]: zone site2.com/IN: loaded serial 2013071600
Dec 30 17:05:23 srv5.maindomain.club bash[2113]: zone ns1.site2.com/IN: loaded serial 2013071600
Dec 30 17:05:23 srv5.maindomain.club bash[2113]: zone ns2.site2.com/IN: loaded serial 2013071600
Dec 30 17:05:23 srv5.maindomain.club systemd[1]: named.service: control process exited, code=exited status=1
Dec 30 17:05:23 srv5.maindomain.club systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Dec 30 17:05:23 srv5.maindomain.club systemd[1]: Unit named.service entered failed state.
Dec 30 17:05:23 srv5.maindomain.club systemd[1]: named.service failed


Any tips where I can look to fix?

Thanks

Offline
***
Re: Cant start DNS after hostname change
« Reply #1 on: January 03, 2018, 03:40:36 AM »
I think the DNS zone of one of the domains have been corrupted so try to find and recreate it.
https://www.24x7servermanagement.com/
Server Management, Server Security, Server Monitoring.
India's Leading Managed Service Provider !!