Author Topic: Job for named.service failed because the control process exited with error code.  (Read 10458 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
when i try to restart BIND DNS SERVER after adding DNS and domains.

i get this message

Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.

FAILED

when i click on status of BIND DNS SERVER to see what is the problem.

it shows me this message

● 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 2017-05-22 13:58:44 CEST; 1min 7s ago
  Process: 24936 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 26071 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
 Main PID: 7289 (code=exited, status=0/SUCCESS)

May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu bash[26071]: zone ray2.agapechristianchatroom.com/IN: loaded serial 2013071600
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu bash[26071]: zone agapechristianchatroom.com/IN: NS 'ray1.agapechristianchatroom.com' has no address records (A or AAAA)
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu bash[26071]: zone agapechristianchatroom.com/IN: NS 'ray2.agapechristianchatroom.com' has no address records (A or AAAA)
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu bash[26071]: zone agapechristianchatroom.com/IN: not loaded due to errors.
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu bash[26071]: _default/agapechristianchatroom.com/IN: bad zone
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu bash[26071]: zone whatstruelove.com/IN: loaded serial 2013071600
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu systemd[1]: named.service: control process exited, code=exited status=1
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu systemd[1]: Unit named.service entered failed state.
May 22 13:58:44 163-172-91-98.rev.poneytelecom.eu systemd[1]: named.service failed.


i didnt even touch named.service or edited named in DNS.

can you tell me how to resolve this ?

A records is pointed correctly and DNS is also set correctly.

what shall i do now to resolve this issue ?

Offline
*
i reinstalled centos web panel and after i change nameservers and added domain and click on restart BIND DNS SERVER it showed me this message

● 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 2017-05-22 15:07:18 CEST; 6s ago
  Process: 3074 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 2739 ExecStart=/usr/sbin/named -u named $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 3084 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
 Main PID: 2742 (code=exited, status=0/SUCCESS)

May 22 15:07:18 sd-112347 bash[3084]: zone ray1.agapechristianchatroom.com/IN: loaded serial 2013071600
May 22 15:07:18 sd-112347 bash[3084]: zone ray2.agapechristianchatroom.com/IN: loaded serial 2013071600
May 22 15:07:18 sd-112347 bash[3084]: zone agapechristianchatroom.com/IN: NS 'ray1.agapechristianchatroom.com' has no address records (A or AAAA)
May 22 15:07:18 sd-112347 bash[3084]: zone agapechristianchatroom.com/IN: NS 'ray2.agapechristianchatroom.com' has no address records (A or AAAA)
May 22 15:07:18 sd-112347 bash[3084]: zone agapechristianchatroom.com/IN: not loaded due to errors.
May 22 15:07:18 sd-112347 bash[3084]: _default/agapechristianchatroom.com/IN: bad zone
May 22 15:07:18 sd-112347 systemd[1]: named.service: control process exited, code=exited status=1
May 22 15:07:18 sd-112347 systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
May 22 15:07:18 sd-112347 systemd[1]: Unit named.service entered failed state.
May 22 15:07:18 sd-112347 systemd[1]: named.service failed.


what is missing ?

can anyone quickly tell me ?

i never had this problem earlier.

Offline
*
i found the solution i had to add ray1 and ray2 with ip address in domain record by clicking on the domain in domain zone file