Additional records missing when referenced with trailing dot #289

Closed
Habbie opened this Issue Apr 26, 2013 · 4 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

With zone records like:

example.com NS  ns.example.com.
ns.example.com  A   10.0.0.1

powerdns will return no additional records; after a zone transfer to a slave node the trailing dot gets stripped, and the slave node will return the additional records.

While in NS records the trailing dot gets stripped, in SRV records it will be appended on the slave.

(Using sql backends and powerdns sync via AXFR)

@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie closed this Apr 26, 2013
@Habbie Habbie added a commit that referenced this issue Apr 26, 2013
@Habbie Habbie make additional lookups smarter about trailing dots. make pdnssec err…
…or about trailing dots in names. make pdnssec warn about trailing dots in names inside content. strip dot from SRV hostnames during axfr. Patches by Ruben d'Arco. Fixes #289.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2748 d19b8d6e-7fed-0310-83ef-9ca221ded41b
8c949c5
@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
original poster: stbuehler@lighttpd.net

i was able to verify that data like "domain.cctld NS any.nameserver.gtld." in the gmysql backend will not give you the nameservers ip address in the additional section whereas "domain.cctld NS any.nameserver.gtld" does provide it.

IMHO a PowerDNS-wide policy regarding those terminating dots would be great as confusion about when to put them in and when not to is a regular support case within the users community.

  • Stefan Schmidt
@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
ah i forgot about the version, it's the debian package pdns-server 2.9.22-3 for both of us.

  • Stefan Schmidt
@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
Still present in 3.1. Interesting additional issue: when slaving, the hostname in an SRV record will get the trailing dot: 100 389 server1.test.com.

This means that additional data that is provided by a master may not be provided by a slave.

We can fix this in two ways:
(a) always strip the dot before lookups
(b) make sure we don't append the dot when inserting SRV (and, no doubt, other types).

Ideally we would do both.

@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
all of this is fixed in r2748!

@mind04 mind04 pushed a commit to mind04/pdns that referenced this issue Apr 26, 2013
peter make additional lookups smarter about trailing dots. make pdnssec err…
…or about trailing dots in names. make pdnssec warn about trailing dots in names inside content. strip dot from SRV hostnames during axfr. Patches by Ruben d'Arco. Fixes #289.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2748 d19b8d6e-7fed-0310-83ef-9ca221ded41b
ee85e58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment