Author Topic: BIND DNS NOT STARTING  (Read 16035 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
BIND DNS NOT STARTING
« on: March 07, 2018, 03:09:00 PM »
when i clicked restart dns it gave this error "Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details."

when i check the bind status, it showed this error
● 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 Wed 2018-03-07 16:00:25 CET; 11s ago
  Process: 8688 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)

Mar 07 16:00:25 orjahhost systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Mar 07 16:00:25 orjahhost bash[8688]: /etc/named.conf:76: zone '': is not a valid name
Mar 07 16:00:25 orjahhost systemd[1]: named.service: control process exited, code=exited status=1
Mar 07 16:00:25 orjahhost systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Mar 07 16:00:25 orjahhost systemd[1]: Unit named.service entered failed state.
Mar 07 16:00:25 orjahhost systemd[1]: named.service failed.


I really need your help guys. Thank you very much.

Offline
*
Re: BIND DNS NOT STARTING
« Reply #1 on: March 17, 2018, 01:16:01 PM »
I have similar problem
Code: [Select]
Mar 17 14:09:50 server.mydomain bash[26622]: zone ns2.mydomain/IN: loaded serial 2013071600
Mar 17 14:09:50 server.mydomain bash[26622]: /var/named/mydomain.db:25: file does not end with newline
Mar 17 14:09:50 server.mydomain bash[26622]: zone mydomain/IN: NS 'ns1.mydomain' has no address records (A or AAAA)
Mar 17 14:09:50 server.mydomain bash[26622]: zone mydomain/IN: NS 'ns2.mydomain' has no address records (A or AAAA)
Mar 17 14:09:50 server.mydomain bash[26622]: zone mydomain/IN: not loaded due to errors.
Mar 17 14:09:50 server.mydomain bash[26622]: _default/gghost.eu/IN: bad zone
Mar 17 14:09:50 server.mydomain systemd[1]: named.service: control process exited, code=exited status=1
Mar 17 14:09:50 server.mydomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Mar 17 14:09:50 server.mydomain systemd[1]: Unit named.service entered failed state.
Mar 17 14:09:50 server.mydomain systemd[1]: named.service failed.

any idea?

Offline
***
Re: BIND DNS NOT STARTING
« Reply #2 on: March 17, 2018, 07:11:00 PM »
got editnameserver ip and then click on save changes,

Offline
*
Re: BIND DNS NOT STARTING
« Reply #3 on: March 18, 2018, 10:30:21 AM »
got editnameserver ip and then click on save changes,
Thank you, such a easy fix, i didnt realize :D