Feature #4667
closedDNS Resolver - ability to save/restore cache went missing
0%
Description
In the 2.1.x unbound package, there is this dumpcache variable to control saving and restoring the cache (https://github.com/pfsense/pfsense-packages/blob/master/config/unbound/unbound.xml#L179). E.g., everytime a DHCP Registration occurs, the cache is lost. It looks like all the required code it still there in /etc/inc/unbound.inc etc., at least on a quick look, just the toggle went AWOL.
This is needed since even a graceful unbound-control reload flushes the cache - which, frankly, is just broken upstream design - https://www.freebsd.org/cgi/man.cgi?query=unbound-control&apropos=0&sektion=0&manpath=FreeBSD+10.1-RELEASE&arch=default&format=html
:(
Related forum discussion: https://forum.pfsense.org/index.php?topic=89589.msg517047#msg517047 and posts that follow.
Updated by Kill Bill over 7 years ago
Just close this, this one's better left as-is.
Updated by Josh Stompro almost 3 years ago
I'm wondering if we can open this back up. I did some testing and couldn't replicate having any problems when dumping and reloading the cache. The local dns data wasn't effected, or even stored in the cache in my testing on 2.5.
I have a unique use case where we are paying per upstream dns request. So making changes to the dns config and flushing the cache can cost us money. So I would like to see that feature restored.
Right now I'm dumping and restoring from the command line when I need to make config changes.
My testing notes are at
https://forum.netgate.com/post/1015079
If this cannot be re-opened, I can start a new ticket if that is preferable.