I like my DNS filtered at home, and I like that filter to follow my phone when I leave. Tailscale can do that: you point the tailnet at your own resolver, and every device asks it instead of whatever the café Wi-Fi hands out. The setup has two switches that sound alike and behave differently, so here is how I would do it, and what to check before you trust it. It applies to the current Tailscale admin console and to Unraid 7 or later, where the per-container Tailscale switch lives. At the end of this guide you have AdGuard Home answering for your tailnet, a way to prove it, and a way back if it goes wrong.
- Time
- 13 min
- Steps
- 14
- Updated
- 19 Nov 2026
You will learn
- Leave MagicDNS on
- Add the resolver as a global nameser…
- Or only send one domain (split DNS)
- Check that it works
- How to read the output
What you need
A resolver that every device on the tailnet can reach. In my case that is AdGuard Home running as a container on Unraid, with Unraid’s Use Tailscale switch turned on so the container gets its own tailnet address. Tailscale’s DNS page says that unless your nameservers are public or have Tailscale IP addresses, you probably need subnet routing to reach them. A container with its own tailnet address avoids that.
One catch from the Unraid docs: with Userspace Networking enabled on a container, that container cannot use Tailscale DNS. Leave it off for anything that should resolve tailnet names. You also need a recent Tailscale client on the devices: the tailscale dns commands I use below need v1.74.0 or later, and tailscale dns query needs v1.76.0.
Write down the container’s tailnet address before you start. In the admin console it is the 100.x address on the Machines page. You will paste it into the DNS page in a minute.
Step 1 of 14: Leave MagicDNS on
MagicDNS is on by default for tailnets created on or after 20 October 2022, and it gives every device a name under your ts.net domain, like my-server.example.ts.net. The Unraid docs recommend enabling it before you add the server. You cannot add your own records to it, so it is only for device names. Your own resolver handles everything else.
The DNS page of the admin console shows MagicDNS at the top and the nameserver settings right below it. If MagicDNS is off in your tailnet, the page shows an Enable MagicDNS button, as in the picture. MagicDNS is optional, and the other DNS settings work without it, but I would keep it on: short device names are worth more than they cost.

Step 2 of 14: Add the resolver as a global nameserver
- Open the DNS page in the admin console.
- Under Nameservers, choose Add nameserver and pick custom.
- Enter the tailnet IP of your AdGuard Home container (the 100.x address shown in the admin console under Machines).
- Save, then switch on the override under Global nameservers. The docs call it Override DNS servers; the screenshot above shows the label Override local DNS, so check the exact wording in your version.
With the override on, devices ignore their local DNS settings and always use the tailnet’s nameservers. That is what you want for filtering on the move, and it is also the dangerous bit: if a device cannot reach the resolver under your ACLs or grants, nothing resolves. Tailscale also recommends more than one global nameserver for redundancy. I would add a public one as a second entry, and accept that a few queries then skip the filter. Tailscale warns about exactly this: multiple global nameservers can bypass content restrictions if they are not the same everywhere.

This is the page as I use it. At the top is the MagicDNS resolver, a locked entry at 100.100.100.100 that you cannot edit. Below it come the global nameservers, and mine are the two tailnet addresses of my two AdGuard Home servers. The override switch next to the heading is on. Under that sits the Search Domains section, which I come back to further down.

Add nameserver opens a short menu. Google, Cloudflare, Quad9, NextDNS and Control D are one click each, which is handy for the public fallback I recommended above. For your own resolver you pick Custom at the bottom of the list.

The dialog asks for one address, IPv4 or IPv6, and has two switches under it. Restrict to domain turns the nameserver into a split DNS entry. Use with exit node keeps the nameserver in use when a device sends its traffic through an exit node. Leave both off for a plain global nameserver, and save.
Step 3 of 14: Or only send one domain (split DNS)
If you would rather not touch everything, use a restricted nameserver: the same Add nameserver dialog, but limited to a domain. Tailscale’s own example sends only *.example.com lookups to a chosen server. That suits a home domain with internal names, and everything else keeps using each device’s normal DNS. Tailscale says it cannot guarantee query order across resolvers, and points to split DNS when you need a specific resolver for specific domains.
A worked example: say your internal names live under home.example.com. You add your AdGuard Home address as a restricted nameserver for that domain. A lookup for photos.home.example.com goes to AdGuard Home, where you keep the rewrite for it. A lookup for a news site goes to whatever the device already used. You get your private names everywhere, and nobody’s browsing is filtered by accident.

Switch on Restrict to domain and the dialog grows a Domain field. Fill in the suffix, for example home.example.com, and only fully qualified queries that end in that suffix go to this nameserver. Everything else keeps following the other nameservers, or the device’s own settings. You can add the same address twice, once restricted and once global, if you want your resolver to answer for the home domain and also act as the filter.
Step 4 of 14: Check that it works
On a client with Tailscale running, query a name through the tailnet and confirm the answer comes from your resolver, for example by looking at the query log in AdGuard Home. These are the commands I would use:
tailscale dns status
tailscale dns query example.com
tailscale dns status prints the configuration of the local DNS forwarder and the tailnet-wide MagicDNS configuration, so you see which nameservers the device really got. tailscale dns query asks through the same forwarder the device uses. Tailscale warns that on some platforms nslookup does not use the system resolver and can give wrong results with split DNS or MagicDNS. On macOS its docs suggest dscacheutil -q host -a name <name> instead.
Then turn off the container and see what happens on a phone. If the phone loses all name resolution, that is the override doing its job, and your cue to add that second nameserver.

Step 5 of 14: How to read the output
The output has three blocks. The first line says whether Tailscale handles DNS on this device at all, and names the switch that turns it off. The MagicDNS block is what the coordination server sent to this device: the tailnet suffix, the name other devices use to reach this one, the resolvers in preference order, any split DNS routes and the search domains. The last block is what the operating system had before Tailscale touched it, which Tailscale only uses when the override is off or when no resolvers come from the admin console.
Two details are worth a look on your own machine. In my output the resolvers are the same two addresses as in the admin console, in the same order, which is the proof that the override reached the device. And the system block still lists my two LAN resolvers, because that is what the network hands out. They are unused while the override is on, and they are exactly what the laptop falls back to when I switch it off.

A query shows the same thing from the other side. It lists every resolver it can use, here both global nameservers, then the response code and the records. The TTL counts down between runs, so a second query a minute later shows a lower number, which tells you the answer came from a cache and not from the upstream again. If the response code is anything but success, run the query again and look at the AdGuard Home query log at the same moment.
Step 6 of 14: What happens to one lookup
The animation shows the full path with the override on. The phone asks, Tailscale’s DNS settings hand the question to the nameserver you entered, AdGuard Home decides whether to block it, and only an allowed name goes on to the upstream resolver. The answer takes the same road back.
Two things follow from that picture. The café resolver never sees the question, which is the point. And AdGuard Home is now a single stop on every lookup, so its health is your DNS health. Tailscale says that depending on your settings and operating system it either proxies all DNS requests, querying all nameservers in parallel and using the quickest response, or defers to the operating system. That is why a second nameserver changes the picture: it is not strictly a fallback, it can be asked as well.

Step 7 of 14: When a device ignores your nameserver
Tailscale’s DNS page says that clients must use Tailscale DNS settings for your configuration to take effect. On the command line there is a flag for that: --accept-dns accepts the DNS configuration from the admin console and, according to the CLI docs, defaults to accepting it. So if one device does not follow the tailnet’s nameserver, check whether someone turned it off there before you blame the admin console.
tailscale set --accept-dns=true
On macOS the same switch is the Use Tailscale DNS settings entry in the Tailscale menu, and on Windows it is Use Tailscale DNS in the tray menu, which you reach by holding Shift while right-clicking the icon. The Unraid docs add a second case for containers: a container that runs with Userspace Networking cannot use Tailscale DNS. If a container with the per-container Tailscale switch resolves names the old way, that setting is the first place to look.
Step 8 of 14: Short names and search domains
MagicDNS gives devices names under your tailnet domain, and Tailscale’s page explains search domains: when MagicDNS is enabled its domain always comes first in the Search Domains list, and users cannot change that. A short name like nas is then tried against each search domain in turn. That is handy, but remember that MagicDNS cannot hold arbitrary records of your own, so a name like photos.home has to come from your own resolver, for example through a restricted nameserver for that domain.

Step 9 of 14: Exit nodes
Exit nodes change this: by default a device using an exit node resolves everything through that exit node, whatever your nameserver list says. To include a nameserver anyway, open the three dots next to it, choose the edit option and enable Use with exit node, then save. The same checkbox is in the Add nameserver dialog. If you use an exit node at home and expect AdGuard Home to keep filtering, this is the setting I would check first.
Step 10 of 14: Troubleshooting
Nothing resolves on one device: run tailscale dns status and see whether the nameserver is listed at all. If it is not, the device is not accepting the DNS configuration, see the section above. If it is, the device probably cannot reach the resolver, and the ACL or grant is the usual cause. Tailscale says explicitly that a device blocked from the global nameserver cannot resolve anything once the override is on.
Nothing resolves on any device: the container is down or its Tailscale connection is gone. Turn the override off in the admin console, and everything falls back to local DNS settings while you fix it. That is the fastest way back, so know where the toggle is before you need it.
Your own names fail but public ones work: check that the restricted nameserver lists the right domain and that the record exists in AdGuard Home. Names in MagicDNS are separate and keep working.
Step 11 of 14: A checklist for the first week
Day one: add the resolver and leave the override off, then see which devices use it. Once the resolver has run for a few days without problems, turn the override on for everyone. Keep a second global nameserver in the list so that a restart of the AdGuard container does not take the whole tailnet offline. And write down which setting you changed first, so that you can undo it quickly. Tailscale can cover the reachability for you, but it cannot save a resolver that is down. The overview below is the version for the fridge.

Step 12 of 14: How my own tailnet is set up
Two AdGuard Home instances answer for the tailnet, so a restart of one of them does not stop name resolution. Both are global nameservers, the override is on, and MagicDNS stays enabled for device names. The Search Domains section holds only the tailnet domain, which Tailscale puts first by itself. I have no restricted nameserver at the moment, so every lookup goes to the two global ones.
That is the setup I would copy if you run two resolvers: two global nameservers, override on, and a status check from a laptop and a phone after every change. When something looks wrong, the order I follow is the order of this guide. First the admin console, then tailscale dns status on the device, then a query, then the AdGuard Home log.
Step 13 of 14: My advice
I would start with split DNS for a single domain, watch it for a few days, and only then flip the global override. Locking every device to one container is a nice idea until that container needs a restart. Tailscale does not cause such failures, but it makes them hit every device at once.
Step 14 of 14: Where to go next
DNS reachability depends on your access rules, so read my guide on Tailscale ACLs and tags if the resolver sits behind a tag. Containers on Unraid that lose their login are a separate problem, covered in key expiry and auth keys: an expired key on the AdGuard container is also a DNS outage.
Further reading
- Tailscale: DNS in Tailscale
- Tailscale: MagicDNS
- Tailscale: CLI reference (dns, –accept-dns)
- Unraid docs: Tailscale
- Noted: Tailscale Part 3, Make Remote Access Easier With MagicDNS
- AdGuard Home on GitHub
- On this site: AdGuard Home with Unbound: resolve DNS yourself instead of asking Cloudflare or your ISP
- On this site: Manage your Unraid server from anywhere with Tailscale and no open ports
- On this site: Lock down your tailnet with Tailscale ACLs and tags
