tailscale/net/dns
David Anderson 38a83e937f net/dns: don't use interfaces.Tailscale to find the tailscale interface index.
interfaces.Tailscale only returns an interface if it has at least one Tailscale
IP assigned to it. In the resolved DNS manager, when we're called upon to tear
down DNS config, the interface no longer has IPs.

Instead, look up the interface index on construction and reuse it throughout
the daemon lifecycle.

Fixes #1892.

Signed-off-by: David Anderson <dave@natulte.net>
(cherry picked from commit cfde997699)
2021-05-10 15:27:36 -07:00
..
resolver net/dns/resolver: remove unnecessary/racy WaitGroup. 2021-04-22 19:17:37 -07:00
config.go util/dnsname: add FQDN type, use throughout codebase. 2021-04-10 17:58:13 -07:00
debian_resolvconf.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
direct.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
flush_windows.go Move DNS flush logic to net/dns. 2021-03-25 17:40:52 -07:00
manager_default.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
manager_freebsd.go net/dns: fix freebsd DNS manager selection. 2021-04-14 15:34:59 -07:00
manager_linux.go net/dns: don't use interfaces.Tailscale to find the tailscale interface index. 2021-05-10 15:27:36 -07:00
manager_openbsd.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
manager_test.go net/dns: work around WSL DNS implementation flaws. 2021-04-26 16:54:50 -07:00
manager_windows.go net/dns: on windows, skip site-local v6 resolvers. 2021-04-27 18:24:54 -07:00
manager.go net/dns: work around WSL DNS implementation flaws. 2021-04-26 16:54:50 -07:00
nm.go Revert "net/dns: set IPv4 auto mode in NM, so it lets us set DNS." 2021-05-10 13:08:10 -07:00
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 2021-04-12 15:51:37 -07:00
openresolv.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
osconfig.go net/dns: make debian_resolvconf correctly clear DNS configs. 2021-04-20 15:51:14 -07:00
registry_windows.go wgengine/router/dns: move to net/dns. 2021-03-25 16:25:30 -07:00
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 2021-04-10 23:01:11 -07:00
resolvconf.go net/dns: add GOOS build tags 2021-04-29 21:34:55 -07:00
resolved.go net/dns: don't use interfaces.Tailscale to find the tailscale interface index. 2021-05-10 15:27:36 -07:00