[Pdns-users] pdns recursor do not always use records in /etc/hosts

Conan conanmind at gmail.com
Wed Dec 29 07:20:13 UTC 2010


We know the option "export-etc-hosts=on" will export records from
"/etc/hosts" to pdns recursor. But I found the records are not always

For example, I register a domain "test.com" whose nameserver is "ns.test.com",
and the glue record for "ns.test.com" is

Now in "/etc/hosts" I have " ns.test.com". When I lookup "
ns.test.com" at recursor right after recursor starts, I will get "
ns.test.com IN". And then I lookup "www.test.com", the recursor
will try to lookup the record from, which is what I expected.

However, if I first lookup "www.test.com" after recursor starts, the
recursor will finally go to to lookup the record. At the same time,
recursor will cache the record "ns.test.com IN" in stead of

Hmm, I got the option "forward-zones" just now. It's much better than
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20101229/2c3556ed/attachment.html>

More information about the Pdns-users mailing list