tailscale/net/dns/resolver
Brad Fitzpatrick ecea6cb994 net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer
Simplify the ability to reason about the DoH dialing code by reusing the
dnscache's dialer we already have.

Also, reduce the scope of the "ip" variable we don't want to close over.

This necessarily adds a new field to dnscache.Resolver:
SingleHostStaticResult, for when the caller already knows the IPs to be
returned.

Change-Id: I9f2aef7926f649137a5a3e63eebad6a3fffa48c0
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-04-18 13:18:39 -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, util/publicdns: extract public DNS mapping into own package (#4405) 2022-04-14 17:15:54 -04:00
forwarder_test.go net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 2022-04-18 13:18:39 -07:00
forwarder.go net/dns/resolver: make DoH dialer use existing dnscache happy eyeball dialer 2022-04-18 13:18:39 -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 net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364) 2022-04-08 12:17:31 -07:00
tsdns.go net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364) 2022-04-08 12:17:31 -07:00