[Pdns-users] Number of entries can be stored in cache in pdns_recursor?

Peter van Dijk peter.van.dijk at netherlabs.nl
Wed Jun 13 10:01:20 UTC 2012

Hello RBK,

On Jun 13, 2012, at 11:03 , RBK1001 wrote:

> I would like to know what is the size of the cache that can be used for
> storing the entries in pdns_recursor?
> I used below command to start the pdns_recursor
> /usr/sbin/pdns_recursor --local-address= --local-port=5300
> --log-common-errors=yes --logging-facility=7 --max-cache-ttl=14400
> --forward-zones=e164.arpa=";"
> my backend has 1 million records, so by rite if I generate 1 million
> individual request, I should have 1 million entries in cache, however, when
> I used rec_control to check, it is always around 100xxx records only.

--max-cache-entries defaults to one million. The TTL on your entries could be a factor, however. max-cache-ttl provides an upper bound on caching; a record with a TTL of 60 in the response will still only be cached for 60 seconds.

Kind regards,
Peter van Dijk
Netherlabs Computer Consulting BV - http://www.netherlabs.nl/

More information about the Pdns-users mailing list