Setting max TTL for negative cache
-
I would like to cache negative (NXDOMAIN) responses for only 5 seconds, regardless of what is set in SOA. I tried adding the following to the DNS Resolver's Custom options:
cache-max-negative-ttl: 5
But this gave me a syntax error. Am I doing it wrong? Is pfsense using an old version of unbound?
I found the documentation for this setting here.
-
@chris-ett use such syntax in the custom options field:
server: cache-max-negative-ttl: 5
-
@viktor_g Thanks, that works.
-
Out of curiosity on my part, why would you want to do this?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.