mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
net/dns: align Apple resolver scoping with search-domain behavior
Apple tunnels derive global search domains from match domains. Scope simple iOS and sandboxed macOS configurations to the full MagicDNS route set; keep custom split resolvers and uncovered forward/PTR records behind a primary resolver. Respect scoping controls and reject unsafe fallback when base DNS cannot be read. Add mode-selection and reverse-coverage tests for both Apple platforms. RELNOTE: Fix MagicDNS routing and split-DNS search scoping on Apple clients. Updates tailscale/corp#48693 Change-Id: I50b5641db466f77c19f911255748e12a10d0a5fe Signed-off-by: James Tucker <[email protected]>
This commit is contained in:
1 parent
70422c917a
commit
0fe0fe4524
6 files changed
+354
-91
No files matched your search
@@ -142,12 +142,11 @@ type Knobs struct {
|
||||
// is supported by the client and storage is available.
|
||||
CacheNetworkMaps atomic.Bool
|
||||
|
||||
// ScopeQuad100OnMacOS is whether sandboxed macOS should scope quad-100 to
|
||||
// its match domains rather than installing it as the OS's primary resolver,
|
||||
// so a user's DoH system profile isn't shadowed. It has no effect on other
|
||||
// platforms. Off by default; when off, sandboxed macOS keeps the older
|
||||
// behavior of making quad-100 the default resolver, as iOS still does.
|
||||
// See tailscale/corp#45534.
|
||||
// ScopeQuad100OnMacOS lets sandboxed macOS scope quad-100 for simple DNS
|
||||
// configs, so public queries can use the OS resolver (including DoH).
|
||||
// Custom split resolvers or unrouted forward/PTR records still require
|
||||
// quad-100 as primary. Off by default; has no effect on other platforms.
|
||||
// See tailscale/corp#45534 and tailscale/corp#48693.
|
||||
ScopeQuad100OnMacOS atomic.Bool
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user