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>
2022-05-18 10:40:04 -07:00
..
debug.go net/dns/resolver: add debug HTML handler to see what DNS traffic was forwarded 2021-12-21 14:32:36 -08:00
doh_test.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 2022-04-19 12:00:22 -07:00
forwarder_test.go tailcfg,all: change structs to []*dnstype.Resolver 2022-05-06 10:58:10 -07:00
forwarder.go tailcfg,all: change structs to []*dnstype.Resolver 2022-05-06 10:58:10 -07:00
macios_ext.go all: simplify ts_macext build tags 2021-08-17 11:13:03 -07:00
tsdns_server_test.go all: use any instead of interface{} 2022-03-17 11:35:09 -07:00
tsdns_test.go tailcfg,all: change structs to []*dnstype.Resolver 2022-05-06 10:58:10 -07:00
tsdns.go net/dns{., resolver}: time out DNS queries after 10 seconds (#4690) 2022-05-18 10:40:04 -07:00