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/wgengine/router/dns
David Anderson 68ddf134d7 wgengine/router/dns: issue ipconfig /registerdns when applying DNS settings.
Amazingly, there doesn't seem to be a documented way of updating network
configuration programmatically in a way that Windows takes notice of.
The naturopathic remedy for this is to invoke ipconfig /registerdns, which
does a variety of harmless things and also invokes the private API that
tells windows to notice new adapter settings. This makes our DNS config
changes stick within a few seconds of us setting them.

If we're invoking a shell command anyway, why futz with the registry at
all? Because netsh has no command for changing the DNS suffix list, and
its commands for setting resolvers requires parsing its output and
keeping track of which server is in what index. Amazingly, twiddling
the registry directly is the less painful option.

Fixes #853.

Signed-off-by: David Anderson <danderson@tailscale.com>
4 years ago
..
config.go tailcfg, tsdns: derive root domains from list of nodes (#708) 4 years ago
direct.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager.go wgengine/router/dns: appease staticcheck (again) 4 years ago
manager_default.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_freebsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_linux.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_openbsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
manager_windows.go wgengine/router/dns: issue ipconfig /registerdns when applying DNS settings. 4 years ago
nm.go router/dns: detect host endianness for NetworkManager. 4 years ago
noop.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
resolvconf.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
resolved.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago