-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
httpresolver: Always use the fallback resolver
When the httpresolver needs to resolve the name of our upstream server (e.g. `dns.google.`), it uses the system resolver. Normally the system resover is either configured to work fine independently, or will point back to dnss, in which case dnss will use `-fallback_domains` to help identify these recursive requests and use `-fallback_upstream` to get an answer. However, in some cases, the system resolver won't work properly or send some requests to dnss that don't fall within `-fallback_domains`. An example of this was reported in #9, where `systemd-resolved` does some DNSSEC resolutions to `.` and `google.` causing it to mis-behave. This patch makes dnss always use the fallback resolver, without falling back to the system resolver at all. This should result in more predictible behaviour and simpler setups, as now dnss should be fully independent from the system resolver. Thanks to David Mandelberg ([email protected]) for finding and helping debug this issue.
- Loading branch information
Showing
8 changed files
with
368 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.