-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
[BUG] Windows collector DNS lookup error for "localhost" #714
Comments
my understanding is that localhost is never queried against a DNS service, it always points to the current host. |
This was my understanding too, but here we are. Just reproduced this on new windows installation, with empty (default) hosts file. The only thing you need to reproduce is to set your DNS server to 8.8.8.8 |
woah, weird. You're not using docker at all right? this is all native? |
this is a little ugly, but it might work - https://stackoverflow.com/questions/66782120/docker-on-localhost-error-dial-tcp-lookup-localhost-on-8-8-8-853-no-such-hos |
No docker for client, it's native on Windows. Server is in docker within WSL2, but that's irrelevant, I suppose. I tried adding localhost to hosts file, doesn't work. In fact, hosts file seems to be completely ignored. Here I tried to use domain from the hosts file. |
My guess this is because of DNS requests handling in Go, when DNS server is prioritised over the hosts file: golang/go#33019 Maybe this behavior could be configured somehow. |
jfc 🤦 |
Describe the bug
Running collector on Windows machine where DNS server config points to 8.8.8.8 results in DNS lookup error for "localhost".
127.0.0.1 works fine, as expected.
Expected behavior
"localhost" address should work regardless of DNS settings
Log Files
The text was updated successfully, but these errors were encountered: