NSD: persistent reverse lookup format errors

I've followed several examples on the net (mit, calomel, et) yet cannot create an error-free SOA record. The SOA record currently looks like
Code:
$ORIGIN local.lan.
$TTL    24H

0.168.192.in-addr.arpa.  IN SOA         momcat.local.lan. root.local.lan. (
                        20160631        ; sn
                        8H              ; refresh       8 hours
                        2H              ; retry         2 hours
                        24H             ; expire        24 hours
                        24H             ; min time-to-live
                        )

I restart nsd without apparent error, but cating /var/log/nsd.log shows
Code:
error: local.lan.reverse:10: SOA record with invalid domain name, '0.168.192.in-addr.arpa.' is not '192.168.0.in-addr.arpa.'

I've modified the "invalid domain name" extensively without success.
 
Amazing! That and 2 additional edits fixed the problem. Thanks!! Every example I looked at had that "$ORIGIN" line, so it would probably have taken me a week to try taking it out just on spec.
 
I never add it myself when creating zone files, BIND (named) adds it automagically. Not sure about NSD but I assume it does the same.
 
Is there something magical I need to add somewhere to get nsd to resolve hostname-only references? It knows its own hostname, of course, but will resolve only fqdns for the rest of the lan.
 
Is there something magical I need to add somewhere to get nsd to resolve hostname-only references?
This is what the search and domain do in /etc/resolv.conf. It's not the DNS service's job, it's the client's.
 
Back
Top