[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


Hi,

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
available.

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

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

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

Hmm, I got the option "forward-zones" just now. It's much better than
"export-etc-hosts".
-------------- 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