Bash:
uname -a
FreeBSD lb-dns-1 12.1-RELEASE-p3 FreeBSD 12.1-RELEASE-p3 GENERIC amd64
Bash:
named -v
BIND 9.16.2 (Stable Release) <id:b310dc7>
I'm having an issue with my root domain not being able to resolve. I've got 2 public DNS servers, both running BIND in a master/slave relationship. I've also got an external Web Server, which is also using a public address:
ns1.linuxbsd.io - 216.182.105.50
ns2.linuxbsd.io - 216.182.105.55
linuxbsd.io - running CentOS - 216.182.105.51
Here is the relevant configuration for ns1...
Bash:
cat /etc/resolv.conf
domain linuxbsd.io
nameserver 216.182.105.50
nameserver 216.182.105.55
Named.Conf File
Bash:
cat /usr/local/etc/namedb/named.conf
//
// named.conf for the LinuxBSD.io domain
//
options {
directory "/usr/local/etc/namedb/dynamic";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
listen-on { 127.0.0.1; 216.182.105.50; };
key-directory "/usr/local/etc/namedb/keys";
allow-transfer { localhost; 216.182.105.55; };
notify yes;
max-cache-size 2048M;
recursive-clients 10000;
// Access Control
allow-query { any; };
// DDOS Mitigation
rate-limit {
responses-per-second 10;
};
};
logging {
category lame-servers { null; };
category resolver { null; };
};
// LinuxBSD.io Zones
zone "linuxbsd.io" {
type master;
file "/usr/local/etc/namedb/dynamic/db.linuxbsd.io";
auto-dnssec maintain;
inline-signing yes;
};
// Hint Zone
zone "." { type hint; file "/usr/local/etc/namedb/named.root"; };
SOA - Header File
Bash:
cat /usr/local/etc/namedb/includes/include.header
$ORIGIN linuxbsd.io.
$TTL 3600
@ IN SOA ns1.linuxbsd.io. hostmaster.linuxbsd.io. (
2020050101 ; Serial
43200 ; Refresh - 12 Hours
900 ; Retry - 15 Minutes
1209600 ; Expire - 2 weeks
3600 ) ; Negative Cache Time - 1 hour
@ IN NS ns1.linuxbsd.io.
@ IN NS ns2.linuxbsd.io.
My Zone File
Bash:
cat /usr/local/etc/namedb/dynamic/db.linuxbsd.io
;
; Zone File for LinuxBSD.io Zone
;
$INCLUDE /usr/local/etc/namedb/includes/include.header
;
; Name Servers
;
ns1 IN A 216.182.105.50
ns2 IN A 216.182.105.55
;
; Web Servers
;
@ IN A 216.182.105.51
www IN A 216.182.105.51
;
; Database Servers
;
db IN A 216.182.105.52
Check config and Check Zone both come back good:
Bash:
named-checkzone linuxbsd.io /usr/local/etc/namedb/dynamic/db.linuxbsd.io
zone linuxbsd.io/IN: loaded serial 2020050101
OK
When I run nslookup on my name servers, everything comes back just fine:
Bash:
nslookup ns1.linuxbsd.io
Server: 216.182.105.50
Address: 216.182.105.50#53
Name: ns1.linuxbsd.io
Address: 216.182.105.50
nslookup ns2.linuxbsd.io
Server: 216.182.105.50
Address: 216.182.105.50#53
Name: ns2.linuxbsd.io
Address: 216.182.105.55
However, running the same command on the root domain returns nothing:
Bash:
nslookup linuxbsd.io
Server: 216.182.105.50
Address: 216.182.105.50#53
*** Can't find linuxbsd.io: No answer
Any thoughts on what might be wrong here?