[Pdns-users] pdns-recursor 0.0.759g02abb90-1 (4.0 master) vs. getent?

Pieter Lexis pieter.lexis at powerdns.com
Tue Mar 8 17:57:31 UTC 2016

Hello Michael,

On Tue, 8 Mar 2016 16:32:26 +0100
Bit World Computing - Michael Mertel <michael.mertel at bwc.de> wrote:

> I was wondering why an apt-get update cannot resolve repo.powerdns.com, but a ping is able to do so. This only happens if /etc/resolv.conf points to my recursor. If I use as nameserver everything works as expected.
> This is somewhat strange, because is the forwarding dns for my local recursor.

Do you use the `forward-zones-recurse`[1] or the `forward-zones`[2] option? When forwarding to google (, the `forward-zone-recurse` option is needed (i.e. `forward-zones-recurse=.=` in your recursor.conf). This will set the Recursion Desired-bit on the query sent out. Google sends SERVFAIL to clients without the RD-bit set.

If this is the case and you still have these issues, could you enable the `trace`[3] option and query your local resolver for repo.powerdns.com and email the traces?

> Maybe it’s how the apt-get tries to resolve the name? The only thing I found was, that getent is not returning the correct results.

apt, ping and getent all seem to use the getaddrinfo(3) call.

> Is this a known bug? Never had any trouble with the 3.7.3 release.

This is not a known bug. We'll await your test results.

Best regards,


1 - https://doc.powerdns.com/md/recursor/settings/#forward-zones-recurse
2 - https://doc.powerdns.com/md/recursor/settings/#forward-zones
3 - https://doc.powerdns.com/md/recursor/settings/#trace

Pieter Lexis
PowerDNS.COM BV -- https://www.powerdns.com

More information about the Pdns-users mailing list