[Pdns-users] pdns query wrong SOA records with ipv6 and miss the right domain this way
Oliver Dzombic
info at layer7.net
Tue Oct 6 18:29:49 UTC 2020
Hi folks,
for some reason i dont understand, powerdns does not query the SOA
records until the end to find the correct domain.
This works:
host 2a00:12d8:0013:1675:0000:0000:0000:0001
Powerdns will start query:
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records
WHERE disabled=0 and type='SOA' and
name='1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.7.6.1.3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa'
down to
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records
WHERE disabled=0 and type='SOA' and name='3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa'
where it finds finally a SOA record and the domain_id and is able to
give the correct answer.
And then continue its work with the correct domain_id=7608:
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records
WHERE disabled=0 and type='NS' and
name='1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.5.7.6.1.3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa'
and domain_id=7608
And deliver the correct result at the end.
------------------
Now this does not work:
host 2a00:12d8:0013:0000:0209:fc37:b2e9:4449
It starts correctly:
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records
WHERE disabled=0 and type='SOA' and
name='9.4.4.4.9.e.2.b.7.3.c.f.9.0.2.0.0.0.0.0.3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa'
but it stops here:
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records
WHERE disabled=0 and type='SOA' and
name='7.3.c.f.9.0.2.0.0.0.0.0.3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa'
and as a result it will start query:
SELECT content,ttl,prio,type,domain_id,disabled,name,auth FROM records
WHERE disabled=0 and type='NS' and
name='9.4.4.4.9.e.2.b.7.3.c.f.9.0.2.0.0.0.0.0.3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa'
and domain_id=0
with domain_id=0 which will of course not work.
And so it will end up
Host
9.4.4.4.9.e.2.b.7.3.c.f.9.0.2.0.0.0.0.0.3.1.0.0.8.d.2.1.0.0.a.2.ip6.arpa
not found: 3(NXDOMAIN)
So why does it stop there ?
Its both 2a00:12d8:0013. And both are in the same domain/zone/dns servers.
Thats PowerDNS Authoritative Server 4.2.3
Thank you for any hint and stay healty :-)
--
Mit freundlichen Gruessen / Best regards
Oliver Dzombic
Layer7 Networks
mailto:info at layer7.net
Anschrift:
Layer7 Networks GmbH
Zum Sonnenberg 1-3
63571 Gelnhausen
HRB 96293 beim Amtsgericht Hanau
Geschäftsführung: Oliver Dzombic
UST ID: DE259845632
More information about the Pdns-users
mailing list