tailscale/net/dnsfallback
Andrew Dunham e33bc64cff net/dnsfallback: add singleflight to recursive resolver
This prevents running more than one recursive resolution for the same
hostname in parallel, which can use excessive amounts of CPU when called
in a tight loop. Additionally, add tests that hit the network (when
run with a flag) to test the lookup behaviour.

Updates tailscale/corp#15261

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I39351e1d2a8782dd4c52cb04b3bd982eb651c81e
2023-11-15 13:57:49 -05:00
..
dns-fallback-servers.json net/netaddr: start migrating to net/netip via new netaddr adapter package 2022-07-25 16:20:43 -07:00
dnsfallback.go net/dnsfallback: add singleflight to recursive resolver 2023-11-15 13:57:49 -05:00
dnsfallback_test.go net/dnsfallback: add singleflight to recursive resolver 2023-11-15 13:57:49 -05:00
update-dns-fallbacks.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00