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
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
..
dns wgengine/router/dns: issue ipconfig /registerdns when applying DNS settings. 4 years ago
ifconfig_windows.go wgengine/router: fix bug where getInterfaceRoutes always returned an empty list 4 years ago
ifconfig_windows_test.go wgengine/router: unfork winipcfg-go package, use upstream 4 years ago
router.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_darwin.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_default.go Remove tuntap references. We only use TUN. 4 years ago
router_fake.go wgengine/router: rename config.Settings to config.Config, make pointer. 5 years ago
router_freebsd.go all: dns refactor, add Proxied and PerDomain flags from control (#615) 4 years ago
router_linux.go wgengine/router: fix configuration of loopback netfilter rules for v6. 4 years ago
router_linux_test.go wgengine/router: make v6-ness configurable in test, for consistent results. 4 years ago
router_openbsd.go wgengine/router: remove unnecessary newlines in log.Printf formats 4 years ago
router_userspace_bsd.go wgengine/router: remove unnecessary newlines in log.Printf formats 4 years ago
router_windows.go wgengine/router: make Windows firewall configuration async 4 years ago
runner.go wgengine/router: set up basic IPv6 routing/firewalling. 4 years ago