tailscale/wgengine
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>
2020-10-29 20:05:38 -07:00
..
filter wgengine/filter: also silently drop link-local unicast traffic 2020-09-25 11:47:38 -07:00
magicsock wgengine/magicsock: make test pass on Windows and without firewall dialog box 2020-10-28 09:02:08 -07:00
monitor wgengine/monitor: fix copy/paste-o to actually monitor route changes 2020-10-09 09:04:26 -07:00
packet wgengine/filter: also silently drop link-local unicast traffic 2020-09-25 11:47:38 -07:00
router wgengine/router/dns: issue ipconfig /registerdns when applying DNS settings. 2020-10-29 20:05:38 -07:00
tsdns ipn, wgengine, magicsock, tsdns: be quieter and less aggressive when offline 2020-10-06 15:26:53 -07:00
tstun wgengine/tstun/faketun: it's a null tunnel, not a loopback. 2020-10-08 01:01:39 -04:00
winnet Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
userspace_test.go wgengine: fix lazy wireguard config bug when disco keys change 2020-10-13 12:10:51 -07:00
userspace.go wgengine: fix lazy wireguard config bug when disco keys change 2020-10-13 12:10:51 -07:00
watchdog_test.go wgengine: prevent log after exit in watchdog test 2020-07-03 10:52:39 -07:00
watchdog.go wgengine: add Engine.SetLinkChangeCallback 2020-08-27 21:25:17 -07:00
wgengine.go ipn, wgengine: disable subnet routes if network has PAC configuration 2020-10-05 21:04:23 -07:00