mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-03 08:04:40 -05:00
Since7e609b258(v1.102), quad-100 looks up MagicDNS names in nodeBackend.nodeByName, which also holds short-name keys for in-process dials. So a query for "foo." matched peer "foo.tail-scale.ts.net" and was answered with its Tailscale IP.1ec348784fixed that for MagicDNS off; this fixes it for MagicDNS on, too, matching pre-1.102 behavior. The OS applies the search domain to short names before they reach quad-100, so a single-label query is a root zone name, not a tailnet name, and must be forwarded (e.g. to LAN mDNS/LLMNR or a global nameserver). Short names still work for in-process dials via NodeByName. Updates #20789 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: Ic8199a96cf79178210c9a85e0cebfb46567a894a