Got a split-horizon DNS going with 3 zones. The other 2 are working flawlessly. However the new zone I just added will not be found.
I'm really at a loss.
Code:
root@gateway:/usr/local/etc/namedb # uname -a
FreeBSD gateway 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Code:
root@gateway:/usr/local/etc/namedb # named -v
BIND 9.9.9-P6 (Extended Support Version) <id:67d38a6>
Code:
root@gateway:/usr/local/etc/namedb # cat named.conf
// $FreeBSD: branches/2017Q1/dns/bind99/files/named.conf.in 382109 2015-03-24 15:22:51Z mat $
//
// Refer to the named.conf(5) and named(8) man pages, and the documentation
// in /usr/local/share/doc/bind for more details.
//
// If you are going to set up an authoritative server, make sure you
// understand the hairy details of how DNS works. Even with
// simple mistakes, you can break connectivity for affected parties,
// or cause huge amounts of useless Internet traffic.
acl serverlauget {
xxx.xx.xxx.x/32;
xxx.xx.xxx.x/32;
};
options {
directory "/usr/local/etc/namedb/working";
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; 192.168.1.1; <STATIC IP>; };
disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
disable-empty-zone "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.0.IP6.ARPA";
disable-empty-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";
forwarders { 8.8.8.8; 8.8.4.4; };
allow-query { any; };
};
###############################################################################
###############################################################################
view "Internal" {
match-clients { 127.0.0.1; 192.168.1.0/24; };
recursion yes;
zone "firstzone.com" {
type master;
file "/usr/local/etc/namedb/working/firstzone.com-Internal";
};
zone "secondzone.org" {
type master;
file "/usr/local/etc/namedb/working/secondzone.org-Internal";
};
zone "thirdzone.com" {
type master;
file "/usr/local/etc/namedb/working/thirdzone.com-Internal";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/usr/local/etc/namedb/working/1.168.192.in-addr.arpa";
};
zone "." { type hint; file "/usr/local/etc/namedb/named.root"; };
include "/usr/local/etc/namedb/empty.zones";
};
view "External" {
match-clients { "any"; };
recursion no;
allow-transfer { serverlauget; };
zone "firstzone.com" {
type master;
file "/usr/local/etc/namedb/working/firstzone.com";
};
zone "thirdzone.com" {
type master;
file "/usr/local/etc/namedb/working/thirdzone.com";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/usr/local/etc/namedb/working/1.168.192.in-addr.arpa";
};
zone "." { type hint; file "/usr/local/etc/namedb/named.root"; };
include "/usr/local/etc/namedb/empty.zones";
};
Code:
root@gateway:/usr/local/etc/namedb/working # cat thirdzone.com
$TTL 3600 ; 1 hour default TTL
thirdzone.com. IN SOA ns1.firstzone.com. tim.falardeau@firstzone.com. (
2017030922 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
300 ; Negative Response TTL
)
; DNS Servers
IN NS ns1.firstzone.com.
IN NS ns1.serverlauget.no.
; MX Records
IN MX 10 mail.thirdzone.com.
IN A <STATIC IP>
; Machine Names
ns1 IN A <STATIC IP>
; Aliases
www IN CNAME @
gateway IN CNAME @
mail IN CNAME @
Code:
root@gateway:/usr/local/etc/namedb/working # cat thirdzone.com-Internal
$TTL 3600 ; 1 hour default TTL
thirdzone.com. IN SOA ns1.firstzone.com. tim.falardeau@firstzone.com. (
2017030620 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
300 ; Negative Response TTL
)
; DNS Servers
IN NS ns1.firstzone.
; MX Records
IN MX 10 mail.thirdzone.com.
IN A 192.168.1.10
; Machine Names
gateway IN A 192.168.1.1
kif IN A 192.168.1.10
; Aliases
www IN CNAME kif
mail IN CNAME kif
Code:
root@kif:/usr/local/www/opencart # host firstzone.com
firstzone.com has address 192.168.1.10
firstzone.com mail is handled by 10 mail.firstzone.com.
Code:
root@kif:/usr/local/www/opencart # host thirdzone.com ns1
Using domain server:
Name: ns1
Address: 192.168.1.1#53
Aliases:
Host thirdzone.com not found: 3(NXDOMAIN)
I'm really at a loss.