John DeLuca
Regular Contributor
Hello does anyone know why my unbound would be close to 40 cache misses I had a previous setup on my old router and I was close 90%+ hit rate. Could there be something wrong with my settings?
I believe it has something to do with new 3.0.0.6 firmware and/or if using GuestNetworkPro:Hello does anyone know why my unbound would be close to 40 cache misses I had a previous setup on my old router and I was close 90%+ hit rate. Could there be something wrong with my settings?
Thank you for reply.Unbound made changes to the way serve-expired is now handled.
By default, the serve-expired-ttl is now 86400 seconds (rather than 0 - ie infinite), and serve-expired-client-timeout is now 1800ms (Time in milliseconds before replying to the client with expired data. This essentially enables the serve-stale behavior as specified in RFC 8767 that first tries to resolve before immediately responding with expired data. Setting this to 0 will disable this behavior and instead serve the expired record immediately from the cache before attempting to refresh it via resolution.)
This means if DNS can’t resolve with a “clean” reply within 1800ms it will then (and only then) serve the expired/cached reply.
serve-expired: yes
serve-expired-ttl: 86400
Thank you for reply.
În my case I checked the backup of Unbound.conf before update to 1.23.0 and is the same with the current. In both I have:
Code:serve-expired: yes serve-expired-ttl: 86400
That setting is not part of the default unbound.conf file, at least ours here. Does that mean it needs to be added?You need to override this one and set to 0 in your config, otherwise it will default to 1800ms:
serve-expired-client-timeout: 0
Yes.That setting is not part of the default unbound.conf file, at least ours here. Does that mean it needs to be added?
Awesome, thanks for the tips. I have added that line.Yes.
Anything you don’t manually override in the Unbound config file will always use the default values as stipulated here:
unbound.conf(5) — Unbound 1.23.0 documentation
unbound.docs.nlnetlabs.nl
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!