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

Adds new feature for caching dns scenario when upstream goes down #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wynnw
Copy link

@wynnw wynnw commented Dec 15, 2016

This might be controversial, but after suffering through another aws dns outage I really want this capability in dnsmasq. I found your project and it was much easier to grok and work with than the original. Hopefully this type of feature will be interesting to you.

  • The new --rcache-preserve-upstream-error command line option
    changes the cache behavior so that we only delete expired cache
    entries if the upstream is still giving us answers. This provides
    a way for systems to continue to work if their primary dns server
    goes down. We continue to use the last known result for requests
    until the upstream starts to answer queries again. This is off by
    default as it's a departure from standard ttl behavior, but can be
    a very helpful solution in cloud environments where a system has no
    control over the upstream dns server.

- The new --rcache-preserve-upstream-error command line option
changes the cache behavior so that we only delete expired cache
entries if the upstream is still giving us answers. This provides
a way for systems to continue to work if their primary dns server
goes down. We continue to use the last known result for requests
until the upstream starts to answer queries again. This is off by
default as it's a departure from standard ttl behavior, but can be
a very helpful solution in cloud environments where a system has no
control over the upstream dns server.
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