net: Dial timeout reports incorrect problem DNS entry #17329
Closed
Milestone
Comments
I think this was fixed in 1.7.1 by https://golang.org/cl/28057 I was able to reproduce this with the Go resolver on 1.7:
With Go 1.7.1 the sample program correctly resolves the address:
(The cgo resolver did not exhibit the issue for 1.7 or 1.7.1) Note that I modified the demo program to just do the DNS lookup: package main
import (
"fmt"
"net"
"os"
)
func main() {
ips, err := net.LookupIP("www.google.ca")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Println(ips)
} |
@vcabbage, oh, thanks. I missed the "go1.7" in the original report. |
This is a duplicate of #16865. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go version go1.7 linux/amd64
What operating system and processor architecture are you using (
go env
)?linux_amd64, scilinux 6.3
What did you do?
What did you expect to see?
Timeout message reporting the invalid nameserver IP
What did you see instead?
Timeout message erroneously reporting the second valid nameserver IP
The text was updated successfully, but these errors were encountered: