[Pdns-users] Reducing max cache time for specific domain
bert hubert
bert.hubert at powerdns.com
Sat Aug 25 18:28:55 UTC 2018
On Sat, Aug 25, 2018 at 06:15:05PM +0000, Mark K. Murdock wrote:
> The challenge I'm having, is I'd like the Recursor to have a rich cache of
> Internet records, according to the TTL set by those zones/records, but for
> our internal domains I would like the Recursor to do pretty limited
> caching. Basically I am looking for a per-domain "max-cache-ttl" setting.
The only out-of-the-box solution is to run two recursors, one with
max-cache-ttl=300, the other one setup as the default. Your users talk to
the recursor with the default settings, and in the configuration there you
setup the max-cache-ttl limited recursor as a forwarder for your internal
domains (forward-zones-recurse= for forward-zones-file with the syntax
described on doc.powerdns.com).
You can bind the max-cache-ttl limited recursor to port 5353 for example so
it does not take up another IP address.
To run two recursors, use the --config-name option.
Good luck!
Bert
More information about the Pdns-users
mailing list