[Dnsmasq-discuss] Cache eviction policy

Marc Branchaud marcnarc at xiplink.com
Fri Jan 23 15:42:18 GMT 2015


Hi all,

Can anyone describe (or point me to) how dnsmasq decides to evict entries
from a full cache?

We're trying to characterize dnsmasq's behaviour when its cache is full, and
we're not quite sure how it works.

Is the eviction policy strictly FIFO or is there some heuristic?

Is there a preference to evict expired entries over unexpired ones?

Does the new name (and how it hashes) affect which old entries get evicted?

What about names with multiple addresses?  Will Google's 15-address name kick
out 15 entries from the cache?  Conversely, when Google's 15-address name is
evicted, does that make space for 15 new records?

Are CNAMEs treated differently than A/AAAA records?

Any insight would be much appreciated.

Thanks!

		Marc



More information about the Dnsmasq-discuss mailing list