-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
DNS configuration over a VPN #665
Comments
[ Quoting <[email protected]> in "[miekg/dns] DNS configuration over ..." ]
I'm a little outside my wheelhouse here (don't know a lot about Go) but I am wondering if there were any plans to enhance the client resolution process to include client DNS configurations beyond `resolv.conf` (I'm specifically concerned with OS X). My particular issue is resolving some domains against specific DNS servers that are configured by VPN client software. On a Mac you need to run `scutil -dns` to see the true DNS configuration since a lot isn't necessarily in `resolv.conf`.
Many projects like the ease of native Go libraries for a number of reasons including simple cross compiling versus enabling cgo which solves the problem by using the native C resolution libraries.
This is out of scope for this library; you can send a DNS query to any address.
There is just a convience function to read config from /etc/resolv.conf.
/Miek
…--
Miek Gieben
|
@miekg Would you expect an external library (either 3rd party or native Go) to determine the list of DNS servers to query for a particular hostname? It seems like a DNS client isn't complete unless it is able to figure that out. For instance to know that |
If you're after a platform-native connection experience on OS X, getting a connection via the high-level socket APIs and then extracting an fd is generally the way to go. |
I took another look at |
I'm a little outside my wheelhouse here (don't know a lot about Go) but I am wondering if there were any plans to enhance the client resolution process to include client DNS configurations beyond
resolv.conf
(I'm specifically concerned with OS X). My particular issue is resolving some domains against specific DNS servers that are configured by VPN client software. On a Mac you need to runscutil -dns
to see the true DNS configuration since a lot isn't necessarily inresolv.conf
.Many projects like the ease of native Go libraries for a number of reasons including simple cross compiling versus enabling cgo which solves the problem by using the native C resolution libraries.
The text was updated successfully, but these errors were encountered: