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.
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).