aboutsummaryrefslogtreecommitdiff
path: root/net/unbound/files
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-05-07 15:55:52 -0700
committerGitHub <noreply@github.com>2021-05-07 15:55:52 -0700
commit94858ece3120a866da97e0b891f313fd032c7bc6 (patch)
tree0af90e15c84e4b3da1350e94b164c889e5e02ed6 /net/unbound/files
parentff76ee78967c83cf25e99e6c1b0daabf540918d3 (diff)
parent9296409e886ebd937fd702057737add0d97e0dfa (diff)
Merge pull request #15474 from ja-pa/unbound-ttl-neg
unbound: add cache-max-negative-ttl config option
Diffstat (limited to 'net/unbound/files')
-rw-r--r--net/unbound/files/unbound.sh2
-rw-r--r--net/unbound/files/unbound.uci1
2 files changed, 3 insertions, 0 deletions
diff --git a/net/unbound/files/unbound.sh b/net/unbound/files/unbound.sh
index c6e891f49..419248f7e 100644
--- a/net/unbound/files/unbound.sh
+++ b/net/unbound/files/unbound.sh
@@ -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
diff --git a/net/unbound/files/unbound.uci b/net/unbound/files/unbound.uci
index 432332e6e..d921e3cd0 100644
--- a/net/unbound/files/unbound.uci
+++ b/net/unbound/files/unbound.uci
@@ -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'