Maintained by: NLnet Labs

[Unbound-users] Prefetch

Scott A. Johnson
Wed Dec 7 07:08:50 CET 2011


My understanding of setting prefetch to "yes" in unbound.conf will
cause unbound, after replying with the answer to a quarry, to re-fetch
the requested record if the TTL is 10% or lower of the record's normal
TTL so as to be ready for the next request for the same record.

Is this how the prefetch setting is supposed to work?  If so, I now
have another question..... where is this 10% calculation in the code?
I looked through unbound.c and a couple other files in the SVN
repository but couldn't find the code.  I want to make a few changes
to the calculation and recompile for my system.  Any pointers on where
I can find this (calculation in the) code?

Thanks!

Scott

-- 
Scott A. Johnson
scott.a.johnson at gmail.com