Page MenuHomeVyOS Platform

Configurable Negative TTL caching in forwarder
Closed, ResolvedPublicFEATURE REQUEST

Description

Currently we don't have a way to set this,
so in Active Directory environment, when you use VyOS as dns forwarder,
in case when VyOS resolves some fqdn to NXDOMAIN it will cache it for long time,
that makes troubles in certain situations.
We need to have this configurable

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

syncer triaged this task as Normal priority.Feb 27 2018, 2:13 PM

@syncer this seems to be the option, plese correct if wrong.

max-negative-ttl

Integer
Default: 3600
A query for which there is authoritatively no answer is cached to quickly deny a record's existence later on, without putting a heavy load on the remote server. In practice, caches can become saturated with hundreds of thousands of hosts which are tried only once. This setting, which defaults to 3600 seconds, puts a maximum on the amount of time negative entries are cached.

If that‘s rhe case adding is done in 10 minutes

Yes, that is correct option

Commands will be:

cpo@LR1# set service dns forwarding
Possible completions:
   negative-ttl Maximum amount of time negative entries are cached

cpo@LR1# set service dns forwarding negative-ttl
Possible completions:
   0-7200       Seconds to cache NXDOMAIN entries

This adds the following snipped to recursor.conf if value set to 7200

# negative TTL for NXDOMAIN
max-negative-ttl=7200