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
Brad Fitzpatrick 001f482aca net/dns: make "direct" mode on Linux warn on resolv.conf fights
Run an inotify goroutine and watch if another program takes over
/etc/inotify.conf. Log if so.

For now this only logs. In the future I want to wire it up into the
health system to warn (visible in "tailscale status", etc) about the
situation, with a short URL to more info about how you should really
be using systemd-resolved if you want programs to not fight over your
DNS files on Linux.

Updates #4254 etc etc

Change-Id: I86ad9125717d266d0e3822d4d847d88da6a0daaa
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
publicdns net/dns/publicdns: permit more NextDNS profile bits in its IPv6 suffix 2 years ago
resolvconffile all: convert more code to use net/netip directly 2 years ago
resolver net/dns/resolver: add yet another 4via6 DNS form that's hopefully more robust 2 years ago
config.go net/dns/{publicdns,resolver}: add NextDNS DoH support 2 years ago
debian_resolvconf.go all: remove old +build tags 2 years ago
direct.go net/dns: make "direct" mode on Linux warn on resolv.conf fights 2 years ago
direct_linux.go net/dns: make "direct" mode on Linux warn on resolv.conf fights 2 years ago
direct_notlinux.go net/dns: make "direct" mode on Linux warn on resolv.conf fights 2 years ago
direct_test.go all: convert more code to use net/netip directly 2 years ago
flush_default.go all: remove old +build tags 2 years ago
flush_windows.go wgengine: flush DNS cache after major link change. 3 years ago
ini.go all: remove old +build tags 2 years ago
ini_test.go all: remove old +build tags 2 years ago
manager.go net/dns: always attempt to read the OS config on macOS/iOS 2 years ago
manager_darwin.go net/dns: getting base DNS config is not supported on macOS 2 years ago
manager_default.go all: remove old +build tags 2 years ago
manager_freebsd.go refactor: move from io/ioutil to io and os packages 2 years ago
manager_linux.go net/dns: print systemd-resolved ResolvConfMode 2 years ago
manager_linux_test.go net/dns: print systemd-resolved ResolvConfMode 2 years ago
manager_openbsd.go net/dns: teach OpenBSD's manager to talk to resolvd(8). (#2789) 2 years ago
manager_tcp_test.go all: convert more code to use net/netip directly 2 years ago
manager_test.go net/dns, types/dnstypes: update some comments, tests for DoH 2 years ago
manager_windows.go envknob: support changing envknobs post-init 2 years ago
manager_windows_test.go all: fix spelling mistakes 2 years ago
nm.go all: remove old +build tags 2 years ago
noop.go net/dns: return error from NewOSManager, use it to initialize NM. 3 years ago
nrpt_windows.go all: fix spelling mistakes 2 years ago
openresolv.go all: remove old +build tags 2 years ago
osconfig.go net/dns: format OSConfig correctly with no pointers (#5766) 2 years ago
osconfig_test.go net/dns: format OSConfig correctly with no pointers (#5766) 2 years ago
resolvconf-workaround.sh net/dns: also include 'tail' and 'base' files when fixing up resolv.conf. 3 years ago
resolvconf.go all: remove old +build tags 2 years ago
resolvd.go all: remove old +build tags 2 years ago
resolved.go all: remove old +build tags 2 years ago
utf.go net/dns: detect and decode UTF-16 from wsl.exe earlier. 3 years ago
utf_test.go net/dns: detect and decode UTF-16 from wsl.exe earlier. 3 years ago
wsl_windows.go net/dns: fix checking for wrapped error when attempting to read wsl.conf for Windows WSL2 3 years ago