-
Notifications
You must be signed in to change notification settings - Fork 54
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
Proposal for --upstream flag #53
Comments
I started working on an implementation of this, but ran into a snag: specifically what I can do is accept an If the recursive was implemented in raw C here in So I'm wondering if you have any other ideas about this. I can try a few more things (like adding multiple "stub-zones", which is allowed and I think unbound will try them in order...). Another thought I had is a bit hacky but we could instantiate a second unbound instance with forwarding set to Also in your issue you mention the possibility of udp:53 being captured or redirected in a hostile WiFi environment (I actually experienced this in a hotel last week and had to use a VPN to get my laptop's HNS resolver to work...). I don't think an Sorry this issue was on my backlog for so long, I hope you are still interested in Handshake and curious if you have any new thoughts about this particular goal. |
Thanks for your work on this. Does Unfortunately I don't know much about unbound internals so I don't have any additional ideas for implementation. Edit: Also to respond to your note about LANs with DNS blocked, my personal use case for that is the fact that my LAN is set up to redirect all DNS to my local recursive resolver, which breaks the hnsd recursive resolver. I would solve it by just setting the upstream DNS to my gateway where my local unbound is running. |
OK @stephen304 I got a branch for you ;-) #62 I think it still needs work, but it's a good start! |
The forwarding part seems to work as expected - though I'm still unable to resolve hns domains for some reason on either my home network or tethered to my phone. As I noted in the PR, I think it might be a separate bug since I had the same issue before and never figured out what was wrong. I can open a separate issue for that. |
This issue is a proposal for a new flag which would control the behavior of hnsd for queries that were not resolvable by handshake.
The current behavior of hnsd is to attempt to resolve a domain using handshake, and then use a recursive resolver as a fallback to handle ICANN domains.
Motivations:
Alternate solutions:
Proposal:
Adding an
--upstream
flag to change the destination of queries that failed to be resolved by handshake.--upstream recursive
the current would be default--upstream x.x.x.x
would use the specified DNS server instead of the built in recursive resolver--upstream 2001::0
should accept ipv6 as wellThis would avoid interfering with any existing unbound config use case and also not require maintaining a dump of ICANN TLDs while making it easier to handle different network environments.
The text was updated successfully, but these errors were encountered: