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
Tom acfe5bd33b
net/dns{., resolver}: time out DNS queries after 10 seconds (#4690)
Fixes https://github.com/tailscale/corp/issues/5198

The upstream forwarder will block indefinitely on `udpconn.ReadFrom` if no
reply is recieved, due to the lack of deadline on the connection object.

There still isn't a deadline on the connection object, but the automatic closing
of the context on deadline expiry will close the connection via `closeOnCtxDone`,
unblocking the read and resulting in a normal teardown.

Signed-off-by: Tom DNetto <tom@tailscale.com>
3 years ago
..
debug.go net/dns/resolver: add debug HTML handler to see what DNS traffic was forwarded 3 years ago
doh_test.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 3 years ago
forwarder.go tailcfg,all: change structs to []*dnstype.Resolver 3 years ago
forwarder_test.go tailcfg,all: change structs to []*dnstype.Resolver 3 years ago
macios_ext.go
tsdns.go net/dns{., resolver}: time out DNS queries after 10 seconds (#4690) 3 years ago
tsdns_server_test.go all: use any instead of interface{} 3 years ago
tsdns_test.go tailcfg,all: change structs to []*dnstype.Resolver 3 years ago