Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: native unix dns lookup retries unnecessarily #8616
In dnsclient_unix.go, the lookup function needs to be cleaned up. Currently, in certain cases, lookups are tried twice unnecessarily. A lookup is tried twice if it 1 - has more dots than ndots 2 - is not rooted (doesn't end with .) 3 - returns any error(including NXDOMAIN). This leads to ALL nosuchhost lookups being tried twice necessarily basically.