I am running a DNS and DCHP service on a local server (Raspberry on Stretch).
When checking the zone files, I get:
# [2019-02-03 10:32] maxg@rpiserver /etc/bind/zones $ named-checkzone rpiserver argylecourt.org.db argylecourt.org.db:22: ignoring out-of-zone data (argylecourt.org) argylecourt.org.db:23: ignoring out-of-zone data (argylecourt.org) zone rpiserver/IN: has no NS records zone rpiserver/IN: not loaded due to errors.
This is the contents of the argylecourt.org.db zone file:
; Host-to-IP Address DNS Pointers for argylecourt.org ; Note: The extra “.” at the end of the domain names are important. ; ; $ORIGIN . $TTL 86400 ; 1 day ; rpiserver.argylecourt.org. IN SOA rpiserver.argylecourt.org. hostmaster.argylecourt.org. ( @ IN SOA rpiserver.argylecourt.org. hostmaster.argylecourt.org. ( 2019020203 ; serial 8H ; refresh 4H ; retry 2W ; expire 1D ; minimum ) ; NS indicates that rpiserver is the name server on argylecourt.org ; MX indicates that rpiserver is (also) the mail server on argylecourt.org argylecourt.org. IN NS rpiserver.argylecourt.org. argylecourt.org. IN MX 10 rpiserver.argylecourt.org. ;$ORIGIN argylecourt.org. ; Set the address for localhost.argylecourt.org ;localhost IN A 127.0.0.1 ;localhost IN A 192.168.1.7 rpiserver IN A 192.168.1.7 www IN CNAME argylecourt.org
I also have errors in the reverse zone:
# [2019-02-03 10:43] maxg@rpiserver /etc/bind/zones $ named-checkzone rpiserver rev.1.168.192.in-addr.arpa zone rpiserver/IN: NS 'rpiserver' has no address records (A or AAAA) zone rpiserver/IN: not loaded due to errors.
... which has this contents:
$TTL 86400 ; 1 day ; IP Address-to-Host DNS Pointers for the 192.168.1 subnet @ IN SOA rpiserver.argylecourt.org. hostmaster.argylecourt.org. ( 2019020203 ; serial 8H ; refresh 4H ; retry 2W ; expire 1D ; minimum ) ; define the authoritative name server ; IN NS rpiserver.argylecourt.org. IN NS rpiserver.
[update 1] Have just read: BIND Reverse DNS Ignoring out-of-zone data -- which resulted in 0 errors when applied to my situation.
# [2019-02-03 10:46] maxg@rpiserver /etc/bind/zones $ named-checkzone 1.168.192.in-addr.arpa rev.1.168.192.in-addr.arpa zone 1.168.192.in-addr.arpa/IN: loaded serial 2019020203 OK # [2019-02-03 10:52] maxg@rpiserver /etc/bind/zones $ named-checkzone argylecourt.org argylecourt.org.db zone argylecourt.org/IN: loaded serial 2019020203 OK
[update 2] restarting bind9 results in:
# [2019-02-03 11:19] maxg@rpiserver /etc/bind/zones $ sudo service bind9 status ● bind9.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2019-02-03 11:19:40 AEST; 22s ago Docs: man:named(8) Process: 5661 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS) Main PID: 5667 (named) CGroup: /system.slice/bind9.service └─5667 /usr/sbin/named -f -u bind Feb 03 11:19:40 rpiserver named[5667]: managed-keys-zone: journal file is out of date: removing journal file Feb 03 11:19:40 rpiserver named[5667]: managed-keys-zone: loaded serial 648 Feb 03 11:19:40 rpiserver named[5667]: zone 0.in-addr.arpa/IN: loaded serial 1 Feb 03 11:19:40 rpiserver named[5667]: zone localhost/IN: loaded serial 2 Feb 03 11:19:40 rpiserver named[5667]: zone 127.in-addr.arpa/IN: loaded serial 1 Feb 03 11:19:40 rpiserver named[5667]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2017061507 Feb 03 11:19:40 rpiserver named[5667]: zone 255.in-addr.arpa/IN: loaded serial 1 Feb 03 11:19:40 rpiserver named[5667]: zone argylecourt.org/IN: loaded serial 2017061536 Feb 03 11:19:40 rpiserver named[5667]: all zones loaded Feb 03 11:19:40 rpiserver named[5667]: running
Where do I need to look to fix this problem?