Author Topic: Cant start DNS after hostname change  (Read 11198 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 !!

Offline
*
Re: Cant start DNS after hostname change
« Reply #2 on: January 30, 2018, 12:00:51 PM »
I think the DNS zone of one of the domains have been corrupted so try to find and recreate it.

Sorry, I did not receive any notification of the answer.

It is bizarre because the service is down.. I will try later today and post results.

Offline
*
Re: Cant start DNS after hostname change
« Reply #3 on: January 30, 2018, 07:54:04 PM »
so I went to the panel > DNS functions > List DNS Zones > Rebuild Zone

after that I tried to start the service and the failed message also shows:
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.

So I ssh and :

Code: [Select]
[root@srv51 ~]# 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 Tue 2018-01-30 19:47:37 UTC; 1min 18s ago
  Process: 6768 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)

Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone WEBSITE-FAKE-DOMAIN.com/IN: NS 'ns2.WEBSITE-FAKE-DOMAIN.com' has no address records (A or AAAA)
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone WEBSITE-FAKE-DOMAIN.com/IN: not loaded due to errors.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: _default/WEBSITE-FAKE-DOMAIN.com/IN: bad zone
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone ns1.WEBSITE-FAKE-DOMAIN.com/IN: loaded serial 2013071600
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone ns2.WEBSITE-FAKE-DOMAIN.com/IN: loaded serial 2013071600
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone thetechno.club/IN: loaded serial 2013071600
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: named.service: control process exited, code=exited status=1
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Unit named.service entered failed state.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: named.service failed.

also

Code: [Select]
[root@srv51 ~]# journalctl -xe
--
-- The leading process of the session is 6582.
Jan 30 19:46:44 srv51.WEBSITE-FAKE-DOMAIN.com sshd[6582]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jan 30 19:46:47 srv51.WEBSITE-FAKE-DOMAIN.com postfix/pickup[4514]: 23D2DFD49A3: uid=0 from=<root>
Jan 30 19:46:47 srv51.WEBSITE-FAKE-DOMAIN.com postfix/cleanup[6625]: 23D2DFD49A3: message-id=
Jan 30 19:47:35 srv51.WEBSITE-FAKE-DOMAIN.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=92:10:61:c4:88:a3:f4:a7:39:d7:8a:7d:08:00 SRC=52.176.108.199 DST=188.166.95.111 LEN=40 TOS=0x00 PREC=0x00 TTL=237 ID=28320 PROTO=TCP SPT=1024 DPT=57693 WINDOW=1024 RES=0x00
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com polkitd[548]: Registered Authentication Agent for unix-process:6758:42488170 (system bus name :1.1794 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.U
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Starting Generate rndc key for BIND (DNS)...
-- Subject: Unit named-setup-rndc.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named-setup-rndc.service has begun starting up.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Started Generate rndc key for BIND (DNS).
-- Subject: Unit named-setup-rndc.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named-setup-rndc.service has finished starting up.
--
-- The start-up result is done.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
-- Subject: Unit named.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named.service has begun starting up.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone localhost.localdomain/IN: loaded serial 0
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone localhost/IN: loaded serial 0
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone 0.in-addr.arpa/IN: loaded serial 0
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone WEBSITE-FAKE-DOMAIN.com/IN: NS 'ns1.WEBSITE-FAKE-DOMAIN.com' has no address records (A or AAAA)
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone WEBSITE-FAKE-DOMAIN.com/IN: NS 'ns2.WEBSITE-FAKE-DOMAIN.com' has no address records (A or AAAA)
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone WEBSITE-FAKE-DOMAIN.com/IN: not loaded due to errors.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: _default/WEBSITE-FAKE-DOMAIN.com/IN: bad zone
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone ns1.WEBSITE-FAKE-DOMAIN.com/IN: loaded serial 2013071600
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone ns2.WEBSITE-FAKE-DOMAIN.com/IN: loaded serial 2013071600
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com bash[6768]: zone thetechno.club/IN: loaded serial 2013071600
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com polkitd[548]: Unregistered Authentication Agent for unix-process:6758:42488170 (system bus name :1.1794, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: named.service: control process exited, code=exited status=1
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
-- Subject: Unit named.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named.service has failed.
--
-- The result is failed.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: Unit named.service entered failed state.
Jan 30 19:47:37 srv51.WEBSITE-FAKE-DOMAIN.com systemd[1]: named.service failed.
Jan 30 19:47:42 srv51.WEBSITE-FAKE-DOMAIN.com kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT=
Jan 30 19:49:27 srv51.WEBSITE-FAKE-DOMAIN.com postfix/anvil[6483]: statistics: max connection rate 1/60s for (smtp:91.200.12.153) at Jan 30 19:46:05
Jan 30 19:49:27 srv51.WEBSITE-FAKE-DOMAIN.com postfix/anvil[6483]: statistics: max connection count 1 for (smtp:91.200.12.153) at Jan 30 19:46:05
Jan 30 19:49:27 srv51.WEBSITE-FAKE-DOMAIN.com postfix/anvil[6483]: statistics: max cache size 1 at Jan 30 19:46:05

Even though there is A record, the service should go up, right?

Offline
***
Re: Cant start DNS after hostname change
« Reply #4 on: January 30, 2018, 08:00:08 PM »
Goto nameserver IP's and there just click on save changes.

Offline
*
Re: Cant start DNS after hostname change
« Reply #5 on: January 30, 2018, 08:04:20 PM »
Goto nameserver IP's and there just click on save changes.

It is working..
I truly thank you.