tailscale/net/dns
Fran Bull bdf3419e7d net/dns: add custom scheme resolvers
If another part of the client code registers a custom scheme with the
forwarder, the forwarder will check resolver addresses to see if they
match the scheme. If they do, the corresponding custom scheme handler
will be called to find the actual address for the resolver at this
moment. If the handler returns the empty string then that resolver will
be ignored.

This is useful if you want to dynamically determine where to send
certain DNS requests. It is being added to support new app connector
(conn25) work that would like to make sure it sends DNS requests to the
current connector peer in a high availability configuration.

Updates tailscale/corp#39858

Signed-off-by: Fran Bull <fran@tailscale.com>
2026-05-01 14:01:10 -07:00
..
publicdns net/dns: add test for DoH upgrade of system DNS 2026-01-26 14:14:39 -05:00
resolvconffile all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolver net/dns: add custom scheme resolvers 2026-05-01 14:01:10 -07:00
config.go net/dns: make MagicDNS IPv6 registration opt-out now, not opt-in 2026-02-17 07:29:12 -10:00
dbus.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
debian_resolvconf.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
direct_linux_test.go net/dns: fix TestDNSTrampleRecovery failure under flakestress 2026-04-14 06:55:35 -07:00
direct_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
direct_unix_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
direct.go net/dns: fix TestDNSTrampleRecovery failure under flakestress 2026-04-14 06:55:35 -07:00
dns_clone.go cmd/cloner: deep-clone pointer elements in map-of-slice values 2026-04-17 11:36:05 -04:00
dns_view.go net/dns, ipn/local: skip health warnings in dns forwarder when accept-dns is false (#18572) 2026-02-10 09:29:14 -05:00
flush_default.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
flush_windows.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ini_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ini.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_darwin_test.go net/dns: use os.Root to prevent path traversal in darwin resolver 2026-04-28 11:08:22 -04:00
manager_darwin.go net/dns: use os.Root to prevent path traversal in darwin resolver 2026-04-28 11:08:22 -04:00
manager_default.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_freebsd.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_linux_test.go net/dns: fix TestDNSTrampleRecovery failure under flakestress 2026-04-14 06:55:35 -07:00
manager_linux.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
manager_openbsd.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_plan9_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_plan9.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_solaris.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_tcp_test.go net/dns: make MagicDNS IPv6 registration opt-out now, not opt-in 2026-02-17 07:29:12 -10:00
manager_test.go net/dns: make MagicDNS IPv6 registration opt-out now, not opt-in 2026-02-17 07:29:12 -10:00
manager_windows_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
manager_windows.go control/controlknobs,net/dns,tailcfg: add a control knob that disables hosts file updates on Windows 2026-02-13 11:59:37 -06:00
manager.go net/dns: fix duplicate search line entries (OpenBSD, primarily) 2026-03-25 10:19:02 -07:00
nm.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
noop.go net/dns: skip DNS base config when using userspace networking (#18355) 2026-01-30 12:14:47 -05:00
nrpt_windows.go net/dns: use the correct separator for multiple servers in the same NRPT rule on Windows 2026-03-19 09:07:39 -05:00
openresolv.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
osconfig_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
osconfig.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolvconf-workaround.sh all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolvconf.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolvconfpath_default.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolvconfpath_gokrazy.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolvd.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
resolved.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
utf_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
utf.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
wsl_windows.go net/dns: fix TestDNSTrampleRecovery failure under flakestress 2026-04-14 06:55:35 -07:00