qtype=any messages are cached especially in bind9 resolver?

zhanglikun zhanglikun at cnnic.cn
Tue May 8 10:42:47 UTC 2012


When I dig at my bind9 resolver with qtype=ANY,  I find the message never
expire and being refetched until the last rrset expire, if there are several
rrsets in answer section, when one rrset in answer section expires,  the
query client will get one cached message just without the expired rrset.
It's different with unbound and google dns, which will refetch the
entire message from authoritative server when any rrset in answer section

You can do the same test with qname=cnnic.cn, cnnic.cn mx record's ttl is
only 10s.

But, Bind9 resolver will refetch the qtype!=ANY message which have cname and
other type records in answer section, when any rrset expires. 

So my question is why bind9 do like that?


Zhang Likun
Software Department, CNNIC 
Phone: 8610-58813250
Email: zhanglikun at cnnic.cn
MSN: kerryzhang1227 at hotmail.com

More information about the bind-users mailing list