unbound: add cache-max-negative-ttl config option
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
(cherry picked from commit 9296409e88
)
This commit is contained in:
parent
1b6abeb46f
commit
8f15e531f9
2 changed files with 3 additions and 0 deletions
|
@ -990,6 +990,7 @@ unbound_conf() {
|
|||
# Adaptive infrastructure info kept for 15 minutes
|
||||
echo " cache-min-ttl: $UB_TTL_MIN"
|
||||
echo " cache-max-ttl: 72000"
|
||||
echo " cache-max-negative-ttl: $UB_NEG_TTL_MAX"
|
||||
echo " val-bogus-ttl: 300"
|
||||
echo " infra-host-ttl: 900"
|
||||
echo
|
||||
|
@ -1364,6 +1365,7 @@ unbound_uci() {
|
|||
|
||||
config_get UB_TTL_MIN "$cfg" ttl_min 120
|
||||
config_get UB_TXT_DOMAIN "$cfg" domain lan
|
||||
config_get UB_NEG_TTL_MAX "$cfg" ttl_neg_max 1000
|
||||
|
||||
config_list_foreach "$cfg" domain_insecure bundle_domain_insecure
|
||||
config_list_foreach "$cfg" iface_lan bundle_lan_networks
|
||||
|
|
|
@ -26,6 +26,7 @@ config unbound 'ub_main'
|
|||
option resource 'default'
|
||||
option root_age '9'
|
||||
option ttl_min '120'
|
||||
option ttl_neg_max '1000'
|
||||
option unbound_control '0'
|
||||
option validator '0'
|
||||
option validator_ntp '1'
|
||||
|
|
Loading…
Reference in a new issue