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

2010-12-28 Thread Conan
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.
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


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

2010-12-28 Thread bert hubert
On Wed, Dec 29, 2010 at 03:20:13PM +0800, Conan wrote:
 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.

Hi Conan,

The export-etc-hosts feature is not meant to override the internet, but to
supplement it.

 Hmm, I got the option forward-zones just now. It's much better than
 export-etc-hosts.

But forward-zones is ;-) 

Good luck!

Bert
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users