I have two sites connected via Tailscale subnet routers. Each site has its own local DNS server, and Tailscale Split DNS is configured so that the internal zones (home, dts.home, kog.home) are resolved through my DNS server at the primary site.
For roaming purposes, I use local DNS overrides on the gateways so that certain hostnames (e.g. smb.home and drive.home) resolve to the local NAS at each site. This works perfectly for clients without Tailscale, since they use the local gateway as their DNS server.
The problem is with Tailscale clients. When connected to the tailnet, they use Tailscale Split DNS, so smb.home is always resolved by the DNS server configured in Tailscale, bypassing the local gateway DNS overrides. As a result, roaming clients always resolve smb.home to the same NAS, regardless of which site they are physically connected to.
Is there any supported way to achieve the following behavior?
- At site A:
smb.home→ local NAS A - At site B:
smb.home→ local NAS B - Outside both sites:
smb.home→ remote NAS A
In other words, is there a way for Tailscale clients to prefer the local DNS server when they are physically inside one of the LANs, while still using Tailscale Split DNS automatically when they are outside the local networks, without requiring manual DNS configuration changes?
submitted by /u/The-Ninth-7 to r/Tailscale
[link] [comments]
Source: r/Tailscale · by /u/The-Ninth-7