go/src/net/testdata
jfbus 825ff1e317 net: use DNS over TCP when use-vc is set in resolv.conf
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: 70bc00fe41
GitHub-Pull-Request: golang/go#29594
Reviewed-on: https://go-review.googlesource.com/c/go/+/156366
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-04-18 18:51:13 +00:00
..
case-hosts
domain-resolv.conf
empty-resolv.conf
freebsd-usevc-resolv.conf net: use DNS over TCP when use-vc is set in resolv.conf 2019-04-18 18:51:13 +00:00
hosts
igmp
igmp6
invalid-ndots-resolv.conf
ipv4-hosts
ipv6-hosts
large-ndots-resolv.conf
linux-use-vc-resolv.conf net: use DNS over TCP when use-vc is set in resolv.conf 2019-04-18 18:51:13 +00:00
negative-ndots-resolv.conf
openbsd-resolv.conf
openbsd-tcp-resolv.conf net: use DNS over TCP when use-vc is set in resolv.conf 2019-04-18 18:51:13 +00:00
resolv.conf
search-resolv.conf
single-request-reopen-resolv.conf
single-request-resolv.conf
singleline-hosts