[dnsdist] Packetcache expiring

Nemanja Zeljkovic nocturo at gmail.com
Thu Mar 8 18:08:31 UTC 2018


Hi Remi,

I think I narrowed this down to cache cleanup. Specifically:
https://github.com/PowerDNS/pdns/blob/master/pdns/dnsdist.cc#L1713

default is 60, my TTL was 60 so that’s why I got about two minutes of
“availability”. Setting setCacheCleaningPercentage to 0 seems to do what I
want, however that would mean cache will not get expunged at all. Does this
have some negative side effects? i.e if we hit the limit, and new query
needs to go in, what will happen?

Thanks,
Nick

On March 8, 2018 at 6:52:37 PM, Remi Gacogne (remi.gacogne at powerdns.com)
wrote:

Hi Nick,

On 03/08/2018 06:41 PM, nocturo wrote:
> Sent message too early. To recap, I would assume the config to leave
> things in cache for up to 86400 seconds but looks like cache get
> expunged after those two minutes:
> [...]
> I don't know where that time would come from and quickly searching
> trough source doesn't seem to indicate any such value. (120)

The cache respects the TTLs present in the DNS response, so my
assumption is that the response you are looking for has a TTL of 120s.

Cheers,
-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

_______________________________________________
dnsdist mailing list
dnsdist at mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20180308/56bbd144/attachment-0001.html>


More information about the dnsdist mailing list