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
net: Lookup fails if Internet connection is not available from the beginning #5833
Labels
Comments
Works here as expected on debian 7.1 and ubuntu 13.04, though on ubuntu is the err message slightly wrong: 2013/07/03 17:44:39 [173.194.112.142 173.194.112.128 173.194.112.129 173.194.112.130 173.194.112.131 173.194.112.132 173.194.112.133 173.194.112.134 2a00:1450:4001:804::1003] 2013/07/03 17:44:40 [173.194.112.142 173.194.112.128 173.194.112.129 173.194.112.130 173.194.112.131 173.194.112.132 173.194.112.133 173.194.112.134 2a00:1450:4001:804::1003] 2013/07/03 17:44:46 lookup google.com: no such file or directory 2013/07/03 17:44:47 lookup google.com: no such file or directory 2013/07/03 17:44:48 lookup google.com: no such file or directory 2013/07/03 17:44:49 lookup google.com: no such file or directory 2013/07/03 17:44:50 lookup google.com: no such file or directory 2013/07/03 17:44:51 lookup google.com: no such file or directory 2013/07/03 17:44:52 lookup google.com: no such file or directory 2013/07/03 17:44:53 [173.194.112.142 173.194.112.128 173.194.112.129 173.194.112.130 173.194.112.131 173.194.112.132 173.194.112.133 173.194.112.134 2a00:1450:4001:804::1003] 2013/07/03 17:44:54 [173.194.112.142 173.194.112.128 173.194.112.129 173.194.112.130 173.194.112.131 173.194.112.132 173.194.112.133 173.194.112.134 2a00:1450:4001:804::1003] |
one way to diagnose this problem is to use ltrace(1): wget http://play.golang.org/p/WtWXjbVc7K.go go build WtWXjbVc7K.go ltrace ./WtWXjbVc7K the result will at least show the return value of getaddrinfo(3). if it constantly returns -2 (EAI_NONAME), then it's not Go's problem, and you should check your system's gai settings and DNS caches. Status changed to WaitingForReply. |
FYI #4 is an ubuntu bug: getaddrinfo("google.com", NULL, 0xc21002e4e0, 0xc2100000d8) = -11 https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1154599/comments/8 |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: