Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsdist: Add SetReducedTTLResponseAction #12400

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

rgacogne
Copy link
Member

@rgacogne rgacogne commented Jan 9, 2023

Short description

Reduce the TTL of records in a response to a percentage of the original TTL. For example, passing 50 means that the original TTL will be cut in half.
One use-case for this action is when dnsdist is in front of a recursor with the "refresh almost expired" feature enabled: dnsdist will then cache the packet for shorter duration than the recursor, allowing the recursor to re-fetch before the record has expired.

Related to #10600.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@rgacogne rgacogne added this to the dnsdist-1.8.0 milestone Jan 9, 2023
@rgacogne rgacogne marked this pull request as ready for review January 9, 2023 13:22
pdns/dnsdist-lua-actions.cc Outdated Show resolved Hide resolved
Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
@rgacogne rgacogne merged commit 6097824 into PowerDNS:master Jan 10, 2023
@rgacogne rgacogne deleted the ddist-reduce-ttl branch January 10, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants