Give the ability to change the negative cache ttl.

This commit is contained in:
Andrea Dell'Amico 2019-11-12 13:47:13 +01:00
parent faf5b50aef
commit 88610faf0c
2 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,8 @@ unbound_so_reuseport: 'yes'
unbound_outgoing_range: 8192
unbound_num_queries_per_thread: 4096
unbound_max_negative_ttl: 3600
# Stub zones
# One of stub_host or stub_addr must be defined
# stub_prime and stub_first are both optional, default 'yes'

View File

@ -32,6 +32,9 @@ server:
so-rcvbuf: {{ unbound_so_rcvbuf }}
so-sndbuf: {{ unbound_so_sndbuf }}
# Negative TTL
cache-max-negative-ttl: {{ unbound_max_negative_ttl }}
# Faster UDP with multithreading (only on Linux).
so-reuseport: {{ unbound_so_reuseport }}
# with libevent
@ -52,7 +55,7 @@ stub-zone:
{% if zone.stub_addr is defined %}
stub-addr: {{ zone.stub_addr }}
{% endif %}
stub-prime: {{ zone.stub_prime | default('yes') }}
stub-prime: {{ zone.stub_prime | default('no') }}
stub-first: {{ zone.stub_first | default('yes') }}
{% endfor %}