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

Failed lookup cache duration #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Failed lookup cache duration #13

wants to merge 5 commits into from

Conversation

whs
Copy link

@whs whs commented Dec 17, 2019

We had a production outage using dnscache. It seems that failed DNS lookups get cached indefinitely until it is manually refreshed.

This PR adds a time field to cached results so that we won't return old errors. The default duration is 1 second. It is a breaking change -- the old behavior can be somewhat emulated by setting CacheFailDuration to a very large number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant