golang/src/net/testdata
Mateusz Poliwczak d931b3b771 net: add support for /etc/hosts aliases using go resolver
It adds support for /etc/hosts aliases and fixes the difference between the glibc cgo and the go DNS resolver.
Examples: https://pastebin.com/Fv6UcAVr

Fixes #44741

Change-Id: I98c484fced900731fbad800278b296028a45f044
GitHub-Last-Rev: 3d47e44f11c350df906d0c986e41891dd6e8d929
GitHub-Pull-Request: golang/go#51004
Reviewed-on: https://go-review.googlesource.com/c/go/+/382996
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2022-11-10 18:29:14 +00:00
..
aliases net: add support for /etc/hosts aliases using go resolver 2022-11-10 18:29:14 +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 net: reject leading zeros in IP address parsers 2021-06-08 20:23:22 +00:00
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
search-single-dot-resolv.conf net: allow single dot in resolv.conf search statement 2022-08-19 03:01:14 +00:00
single-request-reopen-resolv.conf
single-request-resolv.conf
singleline-hosts