[Pdns-users] wiping the packet cache

Aki Tuomi cmouse at youzen.ext.b2.fi
Thu Sep 22 04:36:42 UTC 2011


On Wed, Sep 21, 2011 at 10:18:54PM +0200, Christof Meerwald wrote:
> On Wed, 21 Sep 2011 01:51:28 +0200, Stefan Schmidt wrote:
> > On Tue, Sep 20, 2011 at 11:49 AM, Peter Gervai
> ><grinapo+pdnsdevel at gmail.com> wrote:
> >> which reminds me: is there a way to wipe the packet cache? rec_control
> >> wipe-cache simply doesn't.
> > It does if you specify something that it would wipe off the cache.
> 
> I don't see any evidence that it does wipe anything from the packet
> cache.
> 
> E.g. do (with threads=1 to only have a single packet cache):
> 
> $ host -vt a www.powerdns.com
> 
> www.powerdns.com. 3600 IN CNAME powerdns.com.
> powerdns.com. 3600 IN A 85.17.219.140
> 
> $ host -vt a Www.powerdns.com
> 
> Www.powerdns.com. 3593 IN CNAME powerdns.com.
> powerdns.com. 3593 IN A 85.17.219.140
> 
> Ok, so this one must have come from the cache (as TTL < 3600).
> 
> $ rec_control wipe-cache www.powerdns.com Www.powerdns.com
> wiped 1 records, 0 negative records
> 
> $ host -vt a www.powerdns.com
> 
> www.powerdns.com. 3566 IN CNAME powerdns.com.
> powerdns.com. 3566 IN A 85.17.219.140
> 
> $ host -vt a www.powerdns.com
> 
> Www.powerdns.com. 3564 IN CNAME powerdns.com.
> powerdns.com. 3564 IN A 85.17.219.140
> 
> Although I just wiped the cache, the responses still came from some
> cache (presumably the packet cache as a dump-cache confirms that the
> entry is gone there).
> 
> $ host -vt a www.powerdns.com
> 
> WWW.powerdns.com. 3600 IN CNAME powerdns.com.
> powerdns.com. 3600 IN A 85.17.219.140
> 
> This finally got around the packet cache (which I guess is case
> sensitive) and retrieved it again from the auth server. 
> 
> 
> Christof
>

Please see http://wiki.powerdns.com/trac/ticket/333
for wiping the packet cache.

Aki Tuomi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20110922/1e677964/attachment-0001.sig>


More information about the Pdns-users mailing list