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
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
..
filter wgengine/filter: also silently drop link-local unicast traffic 4 years ago
magicsock wgengine/magicsock: make test pass on Windows and without firewall dialog box 4 years ago
monitor wgengine/monitor: fix copy/paste-o to actually monitor route changes 4 years ago
packet wgengine/filter: also silently drop link-local unicast traffic 4 years ago
router wgengine/router/dns: issue ipconfig /registerdns when applying DNS settings. 4 years ago
tsdns ipn, wgengine, magicsock, tsdns: be quieter and less aggressive when offline 4 years ago
tstun wgengine/tstun/faketun: it's a null tunnel, not a loopback. 4 years ago
winnet Move Linux client & common packages into a public repo. 5 years ago
userspace.go wgengine: fix lazy wireguard config bug when disco keys change 4 years ago
userspace_test.go wgengine: fix lazy wireguard config bug when disco keys change 4 years ago
watchdog.go wgengine: add Engine.SetLinkChangeCallback 4 years ago
watchdog_test.go wgengine: prevent log after exit in watchdog test 4 years ago
wgengine.go ipn, wgengine: disable subnet routes if network has PAC configuration 4 years ago