
Tailscale Subnet Router and custom DNS
In this post we will look at how to set up Tailscale on a Windows device, such as an Intel NUC, use it as a subnet router, and adding our custom DNS settings.
I am using *.internal.leighonline.net as my internal domain and my Ubiquiti UDR7 manages my DNS. This is already set up and working.
Enable Windows IP Forwarding
By default Windows does not do IP forwarding, so lets enable it using an elevated PowerShell terminal:
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "IPEnableRouter" -Value 1
Now restart your device and then run “ipconfig /all” You should see this:

Add the Subnet Route to Tailscale
My Tailscale on my NUC is already an exit node, so I will be using that in my config going forward. Omit it if you have to.
Open a normal PowerShell terminal and run this command:
tailscale up --advertise-routes=192.168.1.0/24 --advertise-exit-node
You might get an error and Tailscale will tell you “you need to run this command” (the one in blue). Just run the command Tailscale gives you to ensure you don’t overwrite any settings.

Approve the Subnet Route
In the Tailscale admin console you will see your Tailscale node will have the “route” tag next to it but you must approve it. Click the 3 dots next to your node, and then click on Edit Route settings, and then select that IP space, and Save it.

Tailscale Custom DNS
Go to DNS in the Tailscale portal and click the “Add nameserver” dropdown and select “Custom. Add your on-prem DNS server and domain name.

Just enter the values so it looks like the above.

Now your internal domain will be used for anything *.internal.leighonline.net.