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/net/dns
Aaron Klotz 4d5d669cd5 net/dns: unconditionally write NRPT rules to local settings
We were being too aggressive when deciding whether to write our NRPT rules
to the local registry key or the group policy registry key.

After once again reviewing the document which calls itself a spec
(see issue), it is clear that the presence of the DnsPolicyConfig subkey
is the important part, not the presence of values set in the DNSClient
subkey. Furthermore, a footnote indicates that the presence of
DnsPolicyConfig in the GPO key will always override its counterpart in
the local key. The implication of this is important: we may unconditionally
write our NRPT rules to the local key. We copy our rules to the policy
key only when it contains NRPT rules belonging to somebody other than us.

Fixes https://github.com/tailscale/corp/issues/19071

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
8 months ago
..
publicdns net/dns/{publicdns,resolver}: add start of Control D support 8 months ago
recursive all: cleanup unused code, part 2 (#10670) 11 months ago
resolvconffile clientupdate, net/dns: fix some "tailsacle" typos 8 months ago
resolver net/dns/{publicdns,resolver}: add start of Control D support 8 months ago
config.go all: update copyright and license headers 2 years ago
debian_resolvconf.go all: update copyright and license headers 2 years ago
direct.go net/dns: close ctx when close dns directManager 8 months ago
direct_linux.go all: cleanup unused code, part 2 (#10670) 11 months ago
direct_notlinux.go all: update copyright and license headers 2 years ago
direct_test.go clientupdate, net/dns: fix some "tailsacle" typos 8 months ago
flush_default.go all: update copyright and license headers 2 years ago
flush_windows.go all: update copyright and license headers 2 years ago
ini.go all: update copyright and license headers 2 years ago
ini_test.go all: update copyright and license headers 2 years ago
manager.go cmd/tailscaled: move cleanup to an implicit action during startup 8 months ago
manager_darwin.go net/dns: fix darwin dns resolver files 1 year ago
manager_default.go all: update copyright and license headers 2 years ago
manager_freebsd.go net/dns: log more info when openresolv commands fail 10 months ago
manager_linux.go net/dns: log more info when openresolv commands fail 10 months ago
manager_linux_test.go net/dns: use direct when NetworkManager has no systemd-resolved 1 year ago
manager_openbsd.go all: update copyright and license headers 2 years ago
manager_tcp_test.go net/dns: retry forwarder requests over TCP 1 year ago
manager_test.go all: cleanup unused code, part 2 (#10670) 11 months ago
manager_windows.go cmd/tailscaled, ipn/ipnlocal, wgengine: shutdown tailscaled if wgdevice is closed 9 months ago
manager_windows_test.go net/dns: unconditionally write NRPT rules to local settings 8 months ago
nm.go all: cleanup unused code, part 2 (#10670) 11 months ago
noop.go all: update copyright and license headers 2 years ago
nrpt_windows.go net/dns: unconditionally write NRPT rules to local settings 8 months ago
openresolv.go net/dns: log more info when openresolv commands fail 10 months ago
osconfig.go wgengine/magicsock, controlclient, net/dns: reduce some logspam 1 year ago
osconfig_test.go all: update copyright and license headers 2 years ago
resolvconf-workaround.sh all: update copyright and license headers 2 years ago
resolvconf.go net/dns: properly detect newer debian resolvconf 1 year ago
resolvconfpath_default.go net/dns: overwrite /tmp/resolv.conf on gokrazy 1 year ago
resolvconfpath_gokrazy.go net/dns: overwrite /tmp/resolv.conf on gokrazy 1 year ago
resolvd.go all: update copyright and license headers 2 years ago
resolved.go all: cleanup unused code, part 2 (#10670) 11 months ago
utf.go all: update copyright and license headers 2 years ago
utf_test.go all: update copyright and license headers 2 years ago
wsl_windows.go net/dns: deal with Windows wsl.exe hangs 2 years ago