Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional records missing when referenced with trailing dot #289

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

Additional records missing when referenced with trailing dot #289

Habbie opened this issue Apr 26, 2013 · 4 comments
Assignees

Comments

@Habbie
Copy link
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)

@ghost ghost assigned Habbie Apr 26, 2013
@Habbie Habbie closed this as completed Apr 26, 2013
Habbie pushed a commit that referenced this issue Apr 26, 2013
…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
@Habbie
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

Habbie commented Apr 26, 2013

Author: peter
all of this is fixed in r2748!

mind04 pushed a commit to mind04/pdns that referenced this issue Apr 26, 2013
…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 PowerDNS#289.

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

No branches or pull requests

1 participant