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.