-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add support for NextDNS resolver #940
Conversation
dns.go
Outdated
resolver.Addr = fmt.Sprintf( | ||
"%s?device_name=%s&device_model=%s&device_ip=%s", | ||
resolver.Addr, | ||
machine.GivenName, | ||
machine.HostInfo.OS, | ||
machine.IPAddresses[0], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated some of the code as I wasn't happy with everything and I realized that in What do you think would be more appropriate to resolve that.
I personally think the second would be better as the DoH resolvers don't have much to do with magic DNS. |
As far as I understand the code in tailscale you should just be able to provide a nexdns ipv6 ip in the headscale dns configuration, and it should work without any changes |
Yeah you are correct. I had not seen this. This will at least make it possible to use NextDNS DoH resolver as is, good to know! However, from a usability point of view I would still argue that Do you think you'd be open for adding this feature at all or not? |
@arnarg looks good now, can you add a CHANGELOG entry and some docs? |
I have added to the CHANGELOG and I couldn't find any good place for this in docs except as comments in the example config. Is this acceptable? |
This adds support for easily using NextDNS as a DoH resolver in tailscale network controlled by Headscale. More info in #939
To enable you would put the following in config:
Fixes #939