-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
logcli on OSX does not respect VPN DNS #1161
Comments
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Reopening since the PR to fix is also marked keepalive. |
Does the dns-heaven tool work to workaround this? Not a good solution for sure, but something that might help ease the pain. |
yes |
I'm going to close this issue (and the associated PR) with the suggested Please feel free to add comments or thumbs up this issue if the workaround doesn't work for you or you have other ideas, thanks! |
Describe the bug
When connected over a VPN, on OSX, the logcli binary doesn't use the scutil resolvers configured by the vpn, instead it tries to parse /etc/resolv.conf and use the native go resolver. This is due to the way the go resolver system works on OSX.
To Reproduce
Steps to reproduce the behavior:
Connect with vpn.
use logcli
observe host not found error
Expected behavior
logcli connected to the appropriate server and working
Let's just cut to the resolution here, many go cli tools have suffered the same problem, including kubectl. The solution is to compile cgo support when building for darwin/osx. Here are the relevant kubectl issues:
kubernetes/kubernetes#23130
kubernetes/release#469
and some linked background material:
https://inconshreveable.com/04-30-2014/cross-compiling-golang-programs-with-native-libraries/
The text was updated successfully, but these errors were encountered: