Author Topic: DNS service is not working  (Read 2654 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
DNS service is not working
« on: June 15, 2022, 11:34:52 AM »
Hello,

I have an error that I'm receiving in my CWP and I'm trying to solve it but I don't know how and what to do, I tried to edit the file of each record, but it still doesn't work.

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 Wed 2022-06-15 07:03:54 EDT; 2s ago
  Process: 8936 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 15 07:03:54 panel.moealdeek.com bash[8937]: /var/named/moealdeek.com.db:24: file does not end with newline
Jun 15 07:03:54 panel.moealdeek.com bash[8937]: zone moealdeek.com/IN: NS 'ns1.moealdeek.com' has no address records (A or AAAA)
Jun 15 07:03:54 panel.moealdeek.com bash[8937]: zone moealdeek.com/IN: NS 'ns2.moealdeek.com' has no address records (A or AAAA)
Jun 15 07:03:54 panel.moealdeek.com bash[8937]: zone moealdeek.com/IN: not loaded due to errors.
Jun 15 07:03:54 panel.moealdeek.com bash[8937]: _default/moealdeek.com/IN: bad zone
Jun 15 07:03:54 panel.moealdeek.com bash[8937]: /var/named/haddadfaris.com.db:24: file does not end with newline
Jun 15 07:03:54 panel.moealdeek.com bash[8937]: zone haddadfaris.com/IN: loaded serial 2013071600
Jun 15 07:03:54 panel.moealdeek.com systemd[1]: named.service: Control process exited, code=exited status=1
Jun 15 07:03:54 panel.moealdeek.com systemd[1]: named.service: Failed with result 'exit-code'.
Jun 15 07:03:54 panel.moealdeek.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).

Offline
*
Re: DNS service is not working
« Reply #1 on: June 15, 2022, 01:36:36 PM »
the new error after some playing around is

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 Wed 2022-06-15 09:35:43 EDT; 2s ago
  Process: 15390 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 15 09:35:43 panel.moealdeek.com bash[15391]: zone ns2.moealdeek.com/IN: loaded serial 2013071600
Jun 15 09:35:43 panel.moealdeek.com bash[15391]: zone panel.moealdeek.com/IN: loaded serial 2022041156
Jun 15 09:35:43 panel.moealdeek.com bash[15391]: zone moealdeek.com/IN: NS 'ns1.moealdeek.com' has no address records (A or AAAA)
Jun 15 09:35:43 panel.moealdeek.com bash[15391]: zone moealdeek.com/IN: NS 'ns2.moealdeek.com' has no address records (A or AAAA)
Jun 15 09:35:43 panel.moealdeek.com bash[15391]: zone moealdeek.com/IN: not loaded due to errors.
Jun 15 09:35:43 panel.moealdeek.com bash[15391]: _default/moealdeek.com/IN: bad zone
Jun 15 09:35:43 panel.moealdeek.com bash[15391]: zone haddadfaris.com/IN: loaded serial 2022061560
Jun 15 09:35:43 panel.moealdeek.com systemd[1]: named.service: Control process exited, code=exited status=1
Jun 15 09:35:43 panel.moealdeek.com systemd[1]: named.service: Failed with result 'exit-code'.
Jun 15 09:35:43 panel.moealdeek.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).

Offline
****
Re: DNS service is not working
« Reply #2 on: August 04, 2022, 06:24:38 PM »
_default/moealdeek.com/IN: bad zone


Remove that zone, and it should load
Google Hangouts:  rcschaff82@gmail.com