Project

General

Profile

Actions

Feature #4667

closed

DNS Resolver - ability to save/restore cache went missing

Added by Kill Bill almost 9 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DNS Resolver
Target version:
-
Start date:
04/30/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:

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.

Actions #1

Updated by Kill Bill over 6 years ago

Just close this, this one's better left as-is.

Actions #2

Updated by Anonymous over 6 years ago

  • Status changed from New to Closed
Actions #3

Updated by Josh Stompro about 2 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.

Actions

Also available in: Atom PDF