Can't seem to get past a configuration error while configuring a simple DNS nameserver on Ubuntu 18.04 with Bind9.
named.conf.local file is pretty straigt-forward:
zone "mynameserver.local" {
type master;
file "/etc/bind/db.mynameserver.local";
notify no;
};
zone "10.0.10.in-addr.arpa" {
type master;
file "/etc/bind/db.10.0.10.reverse";
notify no;
};
My Forward File:
$TTL 3D
@ IN SOA ns1.mynameserver.local. dns1.mynameserver.local. (
20190228 ; serial (today's edit date)
8H ; refresh in seconds
2H ; retry in seconds
4W ; expire in seconds
1D) ; minimum in seconds
;
NS ns1 ; Inet address of name server
ns1 A 10.0.10.235
gw A 10.0.10.1 ; Network Gateway
TXT "Network Gateway" ; Network Gateway
mail A 10.0.10.245 ; Mail Gateway
Reverse:
$TTL 3D
@ IN SOA ns1.mynameserver.local. dns1.mynameserver.local. (
20180228 ; serial number
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns1.mynameserver.local
1 PTR gw.mynameserver.local
245 PTR mail.mynameserver.local
202 PTR intergyserver.mynameserver.local
named-checkconf
comes back clean.
named-checkzone ns1.mynameserver.local db.mynameserver.local
comes back ok
named-checkzone 10.0.10.in-addr.arpa db.10.0.10.reverse
errors with:
zone 10.0.10.in-addr.arpa/IN: NS 'ns1.mynameserver.local.10.0.10.in-addr.arpa' has no address records (A or AAAA)
zone 10.0.10.in-addr.arpa/IN: not loaded due to errors.
What is it that I am missing? Thanks!