unbound: Added cache-max-negative-ttl setting (#6554)

See: https://forum.opnsense.org/index.php?topic=23747.0

Co-authored-by: Henry <henry@mixict.nl>
This commit is contained in:
Henry 2023-06-28 09:53:59 +02:00 committed by GitHub
parent 0c550fc0d9
commit 377446e920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -325,6 +325,17 @@
not trust (very large) TTL values.
</help>
</field>
<field>
<id>unbound.advanced.cachemaxnegativettl</id>
<label>Maximum Negative TTL for RRsets and messages</label>
<type>text</type>
<help>
Configure a maximum Negative Time to live in seconds for RRsets and messages in the cache.
When the internal TTL expires the negative response cache item is expired.
This can be configured to force the resolver to query for data more often in case you wont
get a valid answer.
</help>
</field>
<field>
<id>unbound.advanced.cacheminttl</id>
<label>Minimum TTL for RRsets and messages</label>

View File

@ -186,6 +186,8 @@
</jostletimeout>
<cachemaxttl type="NumericField">
</cachemaxttl>
<cachemaxnegativettl type="NumericField">
</cachemaxnegativettl>
<cacheminttl type="NumericField">
</cacheminttl>
<infrahostttl type="NumericField">

View File

@ -31,6 +31,7 @@ log-local-actions: {{ set_boolean(OPNsense.unboundplus.advanced.loglocalactions)
{{ set_numeric_value('outgoing-range', OPNsense.unboundplus.advanced.outgoingrange) }}
{{ set_numeric_value('jostle-timeout', OPNsense.unboundplus.advanced.jostletimeout) }}
{{ set_numeric_value('cache-max-ttl', OPNsense.unboundplus.advanced.cachemaxttl) }}
{{ set_numeric_value('cache-max-negative-ttl', OPNsense.unboundplus.advanced.cachemaxnegativettl) }}
{{ set_numeric_value('cache-min-ttl', OPNsense.unboundplus.advanced.cacheminttl) }}
{{ set_numeric_value('infra-host-ttl', OPNsense.unboundplus.advanced.infrahostttl) }}
infra-keep-probing: {{ set_boolean(OPNsense.unboundplus.advanced.infrakeepprobing) }}