You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
2 months ago
..
debug.go all: use Go 1.22 range-over-int 8 months ago
doh_test.go net/dns/resolver: remove maxDoHInFlight 2 years ago
forwarder.go net/dns/resolver: update (*forwarder).forwardWithDestChan to always return an error unless it sends a response to responseChan 2 months ago
forwarder_test.go net/dns/resolver: add tests for using a forwarder with multiple upstream resolvers 2 months ago
macios_ext.go all: avoid repeated default interface lookups 2 years ago
tsdns.go net/dns/resolver: forward SERVFAIL responses over PeerDNS 2 months ago
tsdns_server_test.go all: update copyright and license headers 2 years ago
tsdns_test.go net/dns/resolver: update (*forwarder).forwardWithDestChan to always return an error unless it sends a response to responseChan 2 months ago