Author Topic: BIND DNS Server failed  (Read 244 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
BIND DNS Server failed
« on: June 11, 2019, 02:45:43 AM »
I could not identify the error in the "BIND DNS Server". What do I have to do to fix it?

Everything was working fine. After I rebooted the server gave this problem.

Code: [Select]
● 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-06-10 23:54:00 -03; 5min ago
  Process: 14342 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)

Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone server.com.br/IN: NS 'ns1.server.com.br' has no address records (A or AAAA)
Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone server.com.br/IN: NS 'ns2.server.com.br' has no address records (A or AAAA)
Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone server.com.br/IN: not loaded due to errors.
Jun 10 23:54:00 srv1.server.com.br bash[14342]: _default/server.com.br/IN: bad zone
Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone client1.com/IN: loaded serial 2019061061
Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone client2.com.br/IN: loaded serial 2019061086
Jun 10 23:54:00 srv1.server.com.br systemd[1]: named.service: control process exited, code=exited status=1
Jun 10 23:54:00 srv1.server.com.br systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jun 10 23:54:00 srv1.server.com.br systemd[1]: Unit named.service entered failed state.
Jun 10 23:54:00 srv1.server.com.br systemd[1]: named.service failed.

« Last Edit: June 11, 2019, 03:07:00 AM by tiagocaus »

Offline
*
Re: BIND DNS Server failed
« Reply #1 on: June 11, 2019, 03:15:08 AM »
Now that's a lot of lines ...


Code: [Select]
--
-- The result is failed.
Jun 10 23:54:00 srv1.server.com.br systemd[1]: Unit named.service entered failed state.
Jun 10 23:54:00 srv1.server.com.br systemd[1]: named.service failed.
Jun 10 23:55:17 srv1.server.com.br kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:48:30:08:00 SRC=107.170.196.101 DST=68.183.115.20 LEN=40 TOS=0x00 PREC=0x00 TTL=250 ID=54321 PROTO=TCP SPT=60177 DPT=8983 WINDOW=65535 RES=0x00 SYN URGP=0
Jun 10 23:55:53 srv1.server.com.br kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:48:30:08:00 SRC=198.108.67.89 DST=68.183.115.20 LEN=40 TOS=0x00 PREC=0x00 TTL=38 ID=19242 PROTO=TCP SPT=55365 DPT=5597 WINDOW=1024 RES=0x00 SYN URGP=0
Jun 10 23:57:13 srv1.server.com.br kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:48:30:08:00 SRC=185.56.80.48 DST=68.183.115.20 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=54321 PROTO=TCP SPT=59167 DPT=8089 WINDOW=65535 RES=0x00 SYN URGP=0
Jun 10 23:57:46 srv1.server.com.br postfix/smtpd[13010]: SSL_accept error from unknown[68.183.115.20]: lost connection
Jun 10 23:57:46 srv1.server.com.br postfix/smtpd[13010]: lost connection after CONNECT from unknown[68.183.115.20]
Jun 10 23:57:46 srv1.server.com.br postfix/smtpd[13010]: disconnect from unknown[68.183.115.20]
Jun 10 23:58:56 srv1.server.com.br kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:48:30:08:00 SRC=92.118.37.86 DST=68.183.115.20 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=29750 PROTO=TCP SPT=43955 DPT=59810 WINDOW=1024 RES=0x00 SYN URGP=0
Jun 11 00:00:01 srv1.server.com.br systemd[1]: Started Session 12 of user root.
-- Subject: Unit session-12.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-12.scope has finished starting up.
--
-- The start-up result is done.
Jun 11 00:00:01 srv1.server.com.br systemd[1]: Started Session 13 of user root.
-- Subject: Unit session-13.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-13.scope has finished starting up.
--
-- The start-up result is done.
Jun 11 00:00:01 srv1.server.com.br systemd[1]: Started Session 10 of user root.
-- Subject: Unit session-10.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-10.scope has finished starting up.
--
-- The start-up result is done.
Jun 11 00:00:01 srv1.server.com.br systemd[1]: Started Session 11 of user root.
-- Subject: Unit session-11.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has finished starting up.
--
-- The start-up result is done.
Jun 11 00:00:01 srv1.server.com.br CROND[15867]: (root) CMD ("/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null)
Jun 11 00:00:01 srv1.server.com.br CROND[15868]: (root) CMD (/usr/share/clamav/freshclam-sleep)
Jun 11 00:00:01 srv1.server.com.br CROND[15869]: (root) CMD (/usr/sbin/csf --lfd restart > /dev/null 2>&1)
Jun 11 00:00:01 srv1.server.com.br CROND[15870]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jun 11 00:00:02 srv1.server.com.br systemd[1]: Stopping ConfigServer Firewall & Security - lfd...
-- Subject: Unit lfd.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has begun shutting down.
Jun 11 00:00:02 srv1.server.com.br systemd[1]: lfd.service: main process exited, code=killed, status=9/KILL
Jun 11 00:00:02 srv1.server.com.br systemd[1]: Stopped ConfigServer Firewall & Security - lfd.
-- Subject: Unit lfd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has finished shutting down.
Jun 11 00:00:02 srv1.server.com.br systemd[1]: Unit lfd.service entered failed state.
Jun 11 00:00:02 srv1.server.com.br systemd[1]: lfd.service failed.
Jun 11 00:00:02 srv1.server.com.br systemd[1]: Starting ConfigServer Firewall & Security - lfd...
-- Subject: Unit lfd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has begun starting up.
Jun 11 00:00:02 srv1.server.com.br systemd[1]: PID file /var/run/lfd.pid not readable (yet?) after start.
Jun 11 00:00:02 srv1.server.com.br systemd[1]: Started ConfigServer Firewall & Security - lfd.
-- Subject: Unit lfd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lfd.service has finished starting up.
--
-- The start-up result is done.
Jun 11 00:00:03 srv1.server.com.br postfix/pickup[7861]: 1F6743999F8: uid=0 from=
Jun 11 00:00:03 srv1.server.com.br postfix/cleanup[15969]: 1F6743999F8: message-id=<20190611030003.1F6743999F8@srv1.server.com.br>
Jun 11 00:00:03 srv1.server.com.br postfix/qmgr[7862]: 1F6743999F8: from=, size=625, nrcpt=1 (queue active)
Jun 11 00:00:03 srv1.server.com.br postfix/pipe[15976]: 1F6743999F8: to=, relay=dovecot, delay=0.59, delays=0.17/0.06/0/0.36, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 11 00:00:03 srv1.server.com.br postfix/qmgr[7862]: 1F6743999F8: removed
Jun 11 00:01:01 srv1.server.com.br systemd[1]: Started Session 14 of user root.
-- Subject: Unit session-14.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-14.scope has finished starting up.
--
-- The start-up result is done.
Jun 11 00:01:01 srv1.server.com.br CROND[16117]: (root) CMD (run-parts /etc/cron.hourly)
Jun 11 00:01:01 srv1.server.com.br run-parts(/etc/cron.hourly)[16120]: starting 0anacron
Jun 11 00:01:01 srv1.server.com.br anacron[16126]: Anacron started on 2019-06-11
Jun 11 00:01:01 srv1.server.com.br run-parts(/etc/cron.hourly)[16128]: finished 0anacron
Jun 11 00:01:01 srv1.server.com.br anacron[16126]: Normal exit (0 jobs run)
Jun 11 00:01:59 srv1.server.com.br kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:48:30:08:00 SRC=184.105.247.230 DST=68.183.115.20 LEN=51 TOS=0x00 PREC=0x00 TTL=58 ID=50471 DF PROTO=UDP SPT=22803 DPT=623 LEN=31
Jun 11 00:02:27 srv1.server.com.br kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:50:30:08:00 SRC=92.118.37.86 DST=68.183.115.20 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=27421 PROTO=TCP SPT=43955 DPT=42510 WINDOW=1024 RES=0x00 SYN URGP=0
Jun 11 00:08:27 srv1.server.com.br pure-ftpd[17243]: (?@104.155.16.172) [INFO] New connection from 104.155.16.172
Jun 11 00:08:27 srv1.server.com.br pure-ftpd[17243]: (?@104.155.16.172) [INFO] Logout.
Jun 11 00:10:01 srv1.server.com.br systemd[1]: Started Session 15 of user root.
-- Subject: Unit session-15.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-15.scope has finished starting up.
--
-- The start-up result is done.
Jun 11 00:10:01 srv1.server.com.br CROND[17561]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jun 11 00:11:59 srv1.server.com.br 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.
Jun 11 00:11:59 srv1.server.com.br 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.
Jun 11 00:11:59 srv1.server.com.br 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.
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone localhost.localdomain/IN: loaded serial 0
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone localhost/IN: loaded serial 0
Jun 11 00:11:59 srv1.server.com.br bash[17934]: 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
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone 0.in-addr.arpa/IN: loaded serial 0
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone ns1.server.com.br/IN: loaded serial 2013071600
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone ns2.server.com.br/IN: loaded serial 2013071600
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone client1.com.br/IN: loaded serial 2019060999
Jun 11 00:11:59 srv1.server.com.br systemd[1]: named.service: control process exited, code=exited status=1
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone server.com.br/IN: NS 'ns1.server.com.br' has no address records (A or AAAA)
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone server.com.br/IN: NS 'ns2.server.com.br' has no address records (A or AAAA)
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone server.com.br/IN: not loaded due to errors.
Jun 11 00:11:59 srv1.server.com.br bash[17934]: _default/server.com.br/IN: bad zone
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone client2.com/IN: loaded serial 2019061061
Jun 11 00:11:59 srv1.server.com.br bash[17934]: zone client2.com.br/IN: loaded serial 2019061086
Jun 11 00:11:59 srv1.server.com.br 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.
Jun 11 00:11:59 srv1.server.com.br systemd[1]: Unit named.service entered failed state.
Jun 11 00:11:59 srv1.server.com.br systemd[1]: named.service failed.
Jun 11 00:12:06 srv1.server.com.br kernel: Firewall: *UDP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:50:30:08:00 SRC=45.67.15.69 DST=68.183.115.20 LEN=29 TOS=0x00 PREC=0x00 TTL=54 ID=64442 DF PROTO=UDP SPT=54152 DPT=19 LEN=9
Jun 11 00:12:20 srv1.server.com.br kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=ce:40:3b:12:6d:99:f0:4b:3a:4e:50:30:08:00 SRC=92.118.37.86 DST=68.183.115.20 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=61275 PROTO=TCP SPT=43955 DPT=52810 WINDOW=1024 RES=0x00 SYN URGP=0
Jun 11 00:12:40 srv1.server.com.br 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.
Jun 11 00:12:40 srv1.server.com.br 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.
Jun 11 00:12:40 srv1.server.com.br 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.
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone localhost.localdomain/IN: loaded serial 0
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone localhost/IN: loaded serial 0
Jun 11 00:12:40 srv1.server.com.br bash[18616]: 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
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone 0.in-addr.arpa/IN: loaded serial 0
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone ns1.server.com.br/IN: loaded serial 2013071600
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone ns2.server.com.br/IN: loaded serial 2013071600
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone client1.com.br/IN: loaded serial 2019060999
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone server.com.br/IN: NS 'ns1.server.com.br' has no address records (A or AAAA)
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone server.com.br/IN: NS 'ns2.server.com.br' has no address records (A or AAAA)
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone server.com.br/IN: not loaded due to errors.
Jun 11 00:12:40 srv1.server.com.br bash[18616]: _default/server.com.br/IN: bad zone
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone client2.com/IN: loaded serial 2019061061
Jun 11 00:12:40 srv1.server.com.br bash[18616]: zone client2.com.br/IN: loaded serial 2019061086
Jun 11 00:12:40 srv1.server.com.br systemd[1]: named.service: control process exited, code=exited status=1
Jun 11 00:12:40 srv1.server.com.br 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.
Jun 11 00:12:40 srv1.server.com.br systemd[1]: Unit named.service entered failed state.
Jun 11 00:12:40 srv1.server.com.br systemd[1]: named.service failed.
« Last Edit: June 11, 2019, 03:18:00 AM by tiagocaus »

Offline
*****
Re: BIND DNS Server failed
« Reply #2 on: June 28, 2019, 08:54:36 AM »
Hi, rty the command below:
Code: [Select]
named-checkconf -z /etc/named.conf it will show you the error you have

And as I see

Code: [Select]
Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone server.com.br/IN: NS 'ns1.server.com.br' has no address records (A or AAAA)
Jun 10 23:54:00 srv1.server.com.br bash[14342]: zone server.com.br/IN: NS 'ns2.server.com.br' has no address records (A or AAAA)

you have errors meaning NS incorrect. Check the file /var/named/server.com.br.db and set correct A records for NS's