On Wed, Apr 21, 2021 at 1:06 PM Ed Greshko <ed.greshko@greshko.com> wrote:
On 22/04/2021 02:39, Jack Craig wrote:
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone localhost.localdomain/IN: has 0 SOA records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone localhost.localdomain/IN: has no NS records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone localhost.localdomain/IN: not loaded due to errors.
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: _default/localhost.localdomain/IN: bad zone
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone localhost/IN: has 0 SOA records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone localhost/IN: has no NS records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone localhost/IN: not loaded due to errors.
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: _default/localhost/IN: bad zone
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: 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: has 0 SOA records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: 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: has no NS records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: 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: not loaded due to errors.
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: _default/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: bad zone
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone 1.0.0.127.in-addr.arpa/IN: has 0 SOA records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone 1.0.0.127.in-addr.arpa/IN: has no NS records
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: _default/1.0.0.127.in-addr.arpa/IN: bad zone
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> bash[1451129]: zone 0.in-addr.arpa/IN: loaded serial 0
> Apr 21 11:36:07 ws.linuxlighthouse.com <http://ws.linuxlighthouse.com> systemd[1]: named.service: Control process exited, code=exited, status=1/FAILURE

i'll look harder at this, but in the meantime, ..

> -- Subject: Unit process exited
> -- Defined-By: systemd
> -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel <https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
> i just swapped the provided file to /etc/named.conf and restarted, thoughts?
>

None of this makes any sense.

I ran the named.conf file on 2 systems after just doing "dnf install bind".  No problems.

Lets's confirm a few things.
9.11.28-1.fc32
1.  What version of Fedora are you running?  I'm testing on F33.

F32
bind 9.11.28-1.fc32



3.  Have you changed the files in /var/named?  named.ca named.empty  named.localhost  named.loopback
      Those are the config files that should be loaded.
 all but named.empty are empty.

 cat named.empty
$TTL 3H
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1

i have zone files for llh & reverse zone


And finally. the output of

systemctl status named

 

systemctl status named
● 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 2021-04-21 11:36:07 PDT; 2h 9min ago
    Process: 1451128 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)
        CPU: 6ms

Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: 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: not loaded due to errors.
Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: _default/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: bad zone
Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: zone 1.0.0.127.in-addr.arpa/IN: has 0 SOA records
Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: zone 1.0.0.127.in-addr.arpa/IN: has no NS records
Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: _default/1.0.0.127.in-addr.arpa/IN: bad zone
Apr 21 11:36:07 ws.linuxlighthouse.com bash[1451129]: zone 0.in-addr.arpa/IN: loaded serial 0
Apr 21 11:36:07 ws.linuxlighthouse.com systemd[1]: named.service: Control process exited, code=exited, status=1/FAILURE
Apr 21 11:36:07 ws.linuxlighthouse.com systemd[1]: named.service: Failed with result 'exit-code'.
Apr 21 11:36:07 ws.linuxlighthouse.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).

--
Remind me to ignore comments which aren't germane to the thread.

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure