tailscale/net/dns
Renato Aguiar 5d07c17b93
net/dns: fix blank lines being added to resolv.conf on OpenBSD (#13928)
During resolv.conf update, old 'search' lines are cleared but '\n' is not
deleted, leaving behind a new blank line on every update.

This adds 's' flag to regexp, so '\n' is included in the match and deleted when
old lines are cleared.

Also, insert missing `\n` when updated 'search' line is appended to resolv.conf.

Signed-off-by: Renato Aguiar <renato@renatoaguiar.net>
2024-10-28 08:00:48 -07:00
..
publicdns
recursive
resolvconffile
resolver net/dns/resolver: fix test flake 2024-10-24 13:36:57 -05:00
config.go
debian_resolvconf.go
direct.go
direct_linux.go net/dns: updated gonotify dependency to v2 that supports closable context 2024-08-22 12:36:26 -07:00
direct_notlinux.go
direct_test.go
direct_unix_test.go
flush_default.go
flush_windows.go
ini.go
ini_test.go
manager.go health: remove SysDNSOS, add two Warnables for read+set system DNS config (#13874) 2024-10-21 13:40:43 -07:00
manager_darwin.go net/dns: support GetBaseConfig on Darwin OSS tailscaled (#13351) 2024-09-04 10:31:58 -07:00
manager_default.go
manager_freebsd.go
manager_linux.go
manager_linux_test.go
manager_openbsd.go
manager_tcp_test.go net/dns, health: raise health warning for failing forwarded DNS queries (#12888) 2024-07-29 13:48:46 -04:00
manager_test.go
manager_windows.go net/dns: disable DNS registration for Tailscale interface on Windows 2024-09-07 19:00:38 +01:00
manager_windows_test.go
nm.go
noop.go
nrpt_windows.go
openresolv.go
osconfig.go net/dns: fix IsZero and Equal methods on OSConfig 2024-09-05 00:05:36 -04:00
osconfig_test.go net/dns: fix IsZero and Equal methods on OSConfig 2024-09-05 00:05:36 -04:00
resolvconf-workaround.sh
resolvconf.go
resolvconfpath_default.go
resolvconfpath_gokrazy.go
resolvd.go net/dns: fix blank lines being added to resolv.conf on OpenBSD (#13928) 2024-10-28 08:00:48 -07:00
resolved.go health: remove SysDNSOS, add two Warnables for read+set system DNS config (#13874) 2024-10-21 13:40:43 -07:00
utf.go
utf_test.go
wsl_windows.go