Understanding unbound Caching

Started by Meg, August 19, 2025, 09:10:14 PM

Previous topic - Next topic
Hello I am trying to under stand my statistics for caching in unbound. I am running adguard home with unbound as the recursive resolver. I have caching off in adguard. I am finding that only about 50% of my queries get cached results. I tried opening a list of urls several times assuming that once the are resolved by unbound they would be cached and my cache hits stats would increase to a higher percentage as the exact same sites are being requested over and over.
Am I correct in assuming that the number of cache hits should be significantly higher when repeatedly opening the same urls and can anyone explain this behavior.

Go to Reporting > Unbound DNS > Details (tab)

There is a column which title is "TTL".

Thas is the time left for each particular entry to expire. Once it's expired, Unbound must ask for it again. Some sites gives long TTLs while others are very short, that's up to the domain name's owner.

So yes, it's fine, all the records will eventually expire and will have to be asked again.

Regards.