Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: go 1.5.1 does not use all nameservers for DNS lookups #14025
On ubuntu , my app can't reslove the domains that can not be find in the first dns but the second.
domain a.com is defined in nameserver 10.27.227.194 , and b.com is defined in 10.27.227.195 .
Also try the following:
If your DNS servers return RCODE=3 (known as NXDOMAIN), the builtin DNS stub resolver in Go 1.5 and above stops querying for avoiding some trap using NXDOMAIN such as NXDOMAIN substitution. The bug exists in Go 1.4 and below.