I'm having a bit of trouble with a delegated subdomain using powerdns. My setup is quite straight forward.
Example.com
2 powerdns servers. 1 Master, 1 Slave.
Zone Config
example.com SOA ns1.example.com
example.com NS ns1.example.com
example.com NS ns2.example.com
ns1.example.com A 192.168.0.1
ns2.example.com A 192.168.0.2
sub.example.com NS ns1.sub.example.com
sub.example.com NS ns2.sub.example.com
ns1.sub.example.com A 192.168.10.1
ns2.sub.example.com A 192.168.10.2
Then my sub domain looks like:
2 more powerdns servers. 1 Master, 1 Slave.
sub.example.com SOA ns1.sub.example.com
sub.example.com NS ns1.sub.example.com
sub.example.com NS ns2.sub.example.com
ns1.sub.example.com A 192.168.10.1
ns1.sub.example.com A 192.168.10.2
ubuntutest.sub.example.com A 192.168.10.10
When im on a host on that ubuntutest host on the subdomain i can resolve the NS fine, and as i have recursion set up on the sub domain, i can resolve addresses on example.com
When i am on a host on the example.com domain, i can resolve things on the example.com fine. However i am unable to resolve devices on the sub domain.
When i dig the sub domain i get the following output, showing the authority but no answers.
olly@master:~$ dig sub.example.com. ns
; <<>> DiG 9.9.5-11ubuntu1.3-Ubuntu <<>> sub.example.com. ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60134
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 3, ADDITIONAL: 4
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 2800
;; QUESTION SECTION:
;sub.example.com. IN NS
;; AUTHORITY SECTION:
sub.example.com. 86400 IN NS ns1.sub.example.com.
sub.example.com. 86400 IN NS ns2.sub.example.com.
;; ADDITIONAL SECTION:
ns1.sub.example.com. 86400 IN A 192.168.10.1
ns2.sub.example.com. 86400 IN A 192.168.10.2
;; Query time: 3 msec
;; SERVER: 10.3.16.4#53(10.3.16.4)
;; WHEN: Mon Mar 21 16:20:16 GMT 2016
;; MSG SIZE rcvd: 147
Has anyone out there seen this before? If so what am i missing?
Thanks a lot :)