[Pdns-users] Sub-domains delegation. I am not sure what I missed.

Nico CARTRON nico at ncartron.org
Mon Jun 1 10:31:07 UTC 2020


Hi,

On 01-Jun-2020 12:19 CEST, <pdns-users at mailman.powerdns.com> wrote:

> I've got a test PDNS auth with mysql running in my internal network for the
> domain and delegate the vlan100 subdomain to another DNS in the network
> (see mysql extract below). I'm not sure why I'm not getting any answer
> for the A record test. When I do dig directly to the NS of the vlan100
> sub-domain I'm get answer.
> 
> I'm not sure what I am missing. Thanks!

You're asking the PDNS Auth server (192.168.1.53) a question that only
the other DNS server (192.168.1.50) has the answer to.

THe answer you got to your `dig` request is a pointer to this 1.50
server, following delegation.

If you ask a recursive server that knows lab.integrate.zone /
192.168.1.50, then you should get an answer since it will do recursion.

Cheers,

-- 
Nico

> [root at ns1 ~]# dig @192.168.1.53 test.vlan100.lab.integrate.zone
> 
> 
> ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.3 <<>> @192.168.1.53
> test.vlan100.lab.integrate.zone
> 
> ; (1 server found)
> 
> ;; global options: +cmd
> 
> ;; Got answer:
> 
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53535
> 
> ;; 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:
> 
> ;test.vlan100.lab.integrate.zone. IN A
> 
> 
> ;; AUTHORITY SECTION:
> 
> vlan100.lab.integrate.zone. 3 IN NS dns.lab.integrate.zone.
> 
> 
> ;; ADDITIONAL SECTION:
> 
> dns.lab.integrate.zone. 3 IN A 192.168.1.50
> 
> 
> ;; Query time: 1 msec
> 
> ;; SERVER: 192.168.1.53#53(192.168.1.53)
> 
> ;; WHEN: Mon Jun 01 22:16:01 NZST 2020
> 
> ;; MSG SIZE  rcvd: 94
> 
> 
> 
> 
> DB extract:
> 
> MariaDB [powerdns]> select id, name, master from domains;
> 
> +----+-------------------------+--------+
> 
> | id | name                    | master |
> 
> +----+-------------------------+--------+
> 
> |  2 | lab.integrate.zone      |        |
> 
> 
> 
> MariaDB [powerdns]> select domain_id, name, type, content from records
> where type='NS' and domain_id=2;
> 
> 
> +-----------+----------------------------+------+------------------------+
> 
> | domain_id | name                       | type | content                |
> 
> +-----------+----------------------------+------+------------------------+
> 
> |         2 | lab.integrate.zone         | NS   | ns1.lab.integrate.zone |
> 
> |         2 | vlan100.lab.integrate.zone | NS   | dns.lab.integrate.zone |
> 
> +-----------+----------------------------+------+------------------------+
> 
> 
> 
> MariaDB [powerdns]> select domain_id, name, type, content from records
> where id=137;
> 
> +-----------+------------------------+------+--------------+
> 
> | domain_id | name                   | type | content      |
> 
> +-----------+------------------------+------+--------------+
> 
> |         2 | dns.lab.integrate.zone | A    | 192.168.1.50 |
> 
> +-----------+------------------------+------+--------------+

> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com


More information about the Pdns-users mailing list