Skip to content

Force the recursor to not decrease the TTL #14428

Answered by omoerbeek
soulbreak asked this question in Q&A
Discussion options

You must be logged in to vote

Disabling the recursor cache completely is not possible in general. The recursor needs its cache to be able to store records it needs for resolving, like delegations. With forwarding everything you might get away with it, though. See https://docs.powerdns.com/recursor/settings.html#max-cache-entries

It could be that dnsdist might be a better (part of a) solution for you: https://dnsdist.org/guides/cache.html#caching-responses . It's cache has a "dontAge" setting, in addtion to a minimum TTL.

Another possible solution that comes to my mind is disabling the packetcache and let Lua postresolve modify the TTL. But this is all ugly and might have unwanted side effects.

The root cause is a misb…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@soulbreak
Comment options

@omoerbeek
Comment options

Answer selected by soulbreak
Comment options

You must be logged in to vote
2 replies
@omoerbeek
Comment options

@soulbreak
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants