tailscale/net/dns/resolver
Nick Khyl f07ff47922 net/dns/resolver: add tests for using a forwarder with multiple upstream resolvers
If multiple upstream DNS servers are available, quad-100 sends requests to all of them
and forwards the first successful response, if any. If no successful responses are received,
it propagates the first failure from any of them.

This PR adds some test coverage for these scenarios.

Updates #13571

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-10-11 12:02:27 -05:00
..
debug.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
doh_test.go net/dns/resolver: remove maxDoHInFlight 2023-02-03 17:07:12 -08:00
forwarder_test.go net/dns/resolver: add tests for using a forwarder with multiple upstream resolvers 2024-10-11 12:02:27 -05:00
forwarder.go net/dns/resolver: update (*forwarder).forwardWithDestChan to always return an error unless it sends a response to responseChan 2024-10-11 12:02:27 -05:00
macios_ext.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
tsdns_server_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
tsdns_test.go net/dns/resolver: update (*forwarder).forwardWithDestChan to always return an error unless it sends a response to responseChan 2024-10-11 12:02:27 -05:00
tsdns.go net/dns/resolver: forward SERVFAIL responses over PeerDNS 2024-10-11 12:02:27 -05:00