mirror of https://github.com/golang/go.git
There is a DNS resolution bug in Kubernetes (UDP response packets get dropped by conntrack, causing timeouts in DNS queries).
The recommended workaround on Linux is to configure the resolver to use TCP for DNS queries, by setting the use-vc option in resolv.conf.
With this PR, the pure Go resolver searches for "use-vc" in resolv.conf and switches to TCP when found.
Fixes #29358
Change-Id: I26b935cae2c80e5bb9955da83299a8dea84591de
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| case-hosts | ||
| domain-resolv.conf | ||
| empty-resolv.conf | ||
| freebsd-usevc-resolv.conf | ||
| hosts | ||
| igmp | ||
| igmp6 | ||
| invalid-ndots-resolv.conf | ||
| ipv4-hosts | ||
| ipv6-hosts | ||
| large-ndots-resolv.conf | ||
| linux-use-vc-resolv.conf | ||
| negative-ndots-resolv.conf | ||
| openbsd-resolv.conf | ||
| openbsd-tcp-resolv.conf | ||
| resolv.conf | ||
| search-resolv.conf | ||
| single-request-reopen-resolv.conf | ||
| single-request-resolv.conf | ||
| singleline-hosts | ||