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
CGO_ENABLED=0 dial tcp: lookup example.com on 75.75.75.75:53: no such host #40686
Comments
The DNS server at 75.75.75.75:53 told your program that it did not have a record for example.com. Why do you think this is a problem with Go? |
I changed a real hostname for security reasons. |
I can't reproduce this problem using this program:
It succeeds with and without CGO_ENABLED=0. Do other host names resolve? Is the problem specific to 75.75.75.75? |
We use akamai EAA client, that's when the error occurs. Only CGO_ENABLED=1 fixes this issue. |
It sounds like this specific client injects itself NSS, which requires your go binary to use the system libc name resolver. When cgo is disabled the system libc name resolver cannot be used as that requires cgo. Does this answer your question? |
Closing old issues that still have the WaitingForInfo label where enough details to investigate weren't provided. Feel free to leave a comment with more details and we can reopen. |
This error happens when the binary compiled with CGO_ENABLED=0 for darwin platform.
Possibly the same issue with linux & windows.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
CGO_ENABLED=0 go run main.go
What did you expect to see?
No error
What did you see instead?
FATA[2020-08-11T00:13:51-07:00] Get example.com: dial tcp: lookup example.com on 75.75.75.75:53: no such host
The text was updated successfully, but these errors were encountered: