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
Brad Fitzpatrick cc575fe4d6 net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion
Two changes in one:

* make DoH upgrades an explicitly scheduled send earlier, when we come
  up with the resolvers-and-delay send plan. Previously we were
  getting e.g.  four Google DNS IPs and then spreading them out in
  time (for back when we only did UDP) but then later we added DoH
  upgrading at the UDP packet layer, which resulted in sometimes
  multiple DoH queries to the same provider running (each doing happy
  eyeballs dialing to 4x IPs themselves) for each of the 4 source IPs.
  Instead, take those 4 Google/Cloudflare IPs and schedule 5 things:
  first the DoH query (which can use all 4 IPs), and then each of the
  4 IPs as UDP later.

* clean up the dnstype.Resolver.Addr confusion; half the code was
  using it as an IP string (as documented) as half was using it as
  an IP:port (from some prior type we used), primarily for tests.
  Instead, document it was being primarily an IP string but also
  accepting an IP:port for tests, then add an accessor method on it
  to get the IPPort and use that consistently everywhere.

Change-Id: Ifdd72b9e45433a5b9c029194d50db2b9f9217b53
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
publicdns net/dns/publicdns: add missing call to sync.Once.Do (#4410) 3 years ago
resolvconffile all: use strings.Cut even more 3 years ago
resolver net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 3 years ago
config.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 3 years ago
debian_resolvconf.go
direct.go net/dns: ignore permission errors on Synology DSM7 for now 3 years ago
direct_test.go
flush_default.go
flush_windows.go wgengine: flush DNS cache after major link change. 3 years ago
ini.go
ini_test.go all: gofmt -w -s (simplify) tests 3 years ago
manager.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 3 years ago
manager_default.go
manager_freebsd.go
manager_linux.go net/dns: add health check for particular broken-ish Linux DNS config 3 years ago
manager_linux_test.go all: use any instead of interface{} 3 years ago
manager_openbsd.go net/dns: teach OpenBSD's manager to talk to resolvd(8). (#2789) 3 years ago
manager_test.go net/dns: schedule DoH upgrade explicitly, fix Resolver.Addr confusion 3 years ago
manager_windows.go envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 3 years ago
nm.go all: use any instead of interface{} 3 years ago
noop.go
openresolv.go
osconfig.go
registry_windows.go
resolvconf-workaround.sh
resolvconf.go
resolvd.go net/dns/resolvconffile: unify three /etc/resolv.conf parsers into new package 3 years ago
resolved.go all: use any instead of interface{} 3 years ago
utf.go
utf_test.go
wsl_windows.go