[Pdns-users] Delegation of subdomain

Jakob Lenfers lenfers at bigsss-bremen.de
Wed Feb 7 10:54:13 UTC 2018


Hi,

I'm trying to delegate a subdomain to another DNS server, in my case a
samba4 AD. My pdns runs as authorative server on  0.0.0.0:53, the
recursor runs on 127.0.0.1:5300 and is included via
'recursor=127.0.0.1:5300' in pdns' config.

I have the following entries set:
| bss.example.com. 3600 IN  NS      barva.example.com.
| barva.example.com. 3600 IN A      10.20.30.40

And in the recursor config I've set:
"forward-zones=bss.example.com=10.20.30.40"

But only when I query the recursor directly (example below), I'm getting
the expected answer. When I query the master on :53, I only get a
pointer to the new authorative NS.

| # dig -t SRV _gc._tcp.bss.example.com @localhost
|
| ; <<>> DiG 9.10.3-P4-Ubuntu <<>> -t SRV _gc._tcp.bss.example.com
@localhost
| ;; global options: +cmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49362
| ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 2
| ;; WARNING: recursion requested but not available
|
| ;; OPT PSEUDOSECTION:
| ; EDNS: version: 0, flags:; udp: 1680
| ;; QUESTION SECTION:
| ;_gc._tcp.bss.example.com.        IN SRV
|
| ;; AUTHORITY SECTION:
| bss.example.com. 3600 IN  NS      barva.example.com.
|
| ;; ADDITIONAL SECTION:
| barva.example.com. 3600 IN A      10.20.30.40


| # dig -p 5300 -t SRV _gc._tcp.bss.example.com @localhost
| ; <<>> DiG 9.10.3-P4-Ubuntu <<>> -p 5300 -t SRV
_gc._tcp.bss.example.com @localhost
| ;; global options: +cmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43772
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
|
| ;; OPT PSEUDOSECTION:
| ; EDNS: version: 0, flags:; udp: 4096
| ;; QUESTION SECTION:
| ;_gc._tcp.bss.example.com.        IN SRV
|
| ;; ANSWER SECTION:
| _gc._tcp.bss.example.com. 26 IN SRV 0 100 3268 barva.bss.example.com.

Any ideas how to solve this?

Thanks in advance,
Jakob


More information about the Pdns-users mailing list