-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Does the DNS package support domain scoped resolvers? #20
Comments
Hey @tristanmorgan 👋 Thanks for opening Right now, That's odd though. It looks like your test shows |
There's a little extra in here but the output is as follows, I'm expecting resolver No. 9 to be what responds.
P.S. 127.0.0.1:53 is a DoH resolver for general web. |
@JohnStarich I think the difference is the system library looks for the longest domain suffix match first then makes the requests from that pool. |
I think you're right, I've come to the same conclusion while looking through. I think Also, there's a weird part in the You're welcome to open a PR to prioritize domain-specific resolvers 👍 (If not, I may have time to look at this soon.) |
Looks like Go 1.20 will get a new libc based DNS resolver for macOS 🎉 golang/go#12524 (comment) That should fix any DNS inconsistencies completely 🙏 |
Agreed, the usage of libc calls to allow cross compiling without CGO is the best resolution for this issue. |
In the macOS resolver configuration you can specify a domain scoped resolver by creating a file in the /etc/resolver directory. it allows you to resolve domains not available publicly.
See
man 5 resolver
and scutil.The text was updated successfully, but these errors were encountered: