Repository navigation
Description
✅ 2026-03-18 Update
Tailscale v1.96.2 (release) has fixed this issue.
⚠️ 2026-01-14 Update
This bug was closed, but it is not resolved. With MagicDNS disabled, any DNS query directed at the quad9 resolver causes the healthcheck to start failing after 15 seconds. Even though the menubar icon no longer shows the warning symbol, internally the status is still
$ tailscale status --json | jq -r '.Health'
[
"Tailscale can't reach the configured DNS servers. Internet connectivity may be affected."
]
So, I've opened a new issue #18436 to track it.
Bug
With MagicDNS disabled, even just a single DNS query directed towards 100.100.100.100 will result in the healthcheck warning below, which appears and never goes away:
"Tailscale can't reach the configured DNS servers. Internet connectivity may be affected."
I've been reporting this bug since around March 2025. When I reported #18101, I originally thought the bug only occurred when invalid DNS queries were passed to 100.100.100.100. But, further testing (as in the repro script below) revealed that even valid, successful queries will trigger it.
Previous reports
- TSS-68644
- dns-forward-failing warning is inaccurate and never self-corrects - Make Tailscale Healthy Again #18101
- frequent
dns-forward-failingerror with warning in menubar icon (macOS, FreeBSD) #15389
there are also many other similar or identical reports e.g. #13520, #13461, #13235, #12244
Warnings that are shown
Menubar icon
Main UI
Debug window
Steps to reproduce
This occurs when "MagicDNS" is not enabled on the client. I have a very simple and easy repro for it that I tested on a brand new macOS 26.1 virtual machine with nothing else done other than:
- Install macOS
- Log in
- Install Tailscale (tested with both release 1.90.9 and unstable 1.93.28)
- Join tailnet
- Configure settings as shown in the screenshot below
- Install the
tailscaleCLI tool (Settings → CLI integration) - Run my
tsbug(gist) zsh script which:- installs a DNS resolver override for your tailnet pointing at quad100
- selects a random peer from your Tailnet
- performs a DNS query of that peer using dscacheutil
- pauses for 1 second
- repeat
This reproduces the issue 100% of the time after 15 seconds. The bug occurs whether you use 8.8.8.8/1.1.1.1 as your DNS server, or the typical DHCP-assigned LAN server.
Steps to run repro script
Copy & paste the block below into a Terminal:
curl -Lso tsbug https://gist.github.com/luckman212/356dfc72396b838a055ec10d315b042b/raw && chmod +x tsbug
./tsbugScreen Recordings
I made 2 screen recordings of this, one from the VM:
mtha2.mp4
And one from earlier on my physical Mac (before I created the repro script, but essentially the identical test). The terminal windows below are:
- top: ping to
8.8.8.8to show stable connectivity - middle, left: DNS lookup (dig) of
tailscale.comto show working DNS - middle, right: tailscaled health status via
tailscale status --json - bottom: repro script running sequential DNS queries of host in my tailnet
mtha1.mp4
Tailscale Settings used for reproduction
OS
- macOS 15.6.1, 26.1, 26.2
- FreeBSD 16-CURRENT
Tailscale versions affected/confirmed
- 1.95.4 unstable
- 1.94.0 rc
- 1.92.5 stable
- all other prior versions (both stable and unstable) released since 2025-03
Activity
luckman212 commentedon Dec 6, 2025
ping @barnstar since you were listed as the assignee on the old bugreport of this same issue, and @nickoneill since you participated in past discussions as well.
Happy to provide any further logs, device access or literally anything else to get this fixed. Thank you 🙏
luckman212 commentedon Dec 7, 2025
Here's some output from
tailscale debug daemon-logs, executed just before triggering this failure:luckman212 commentedon Dec 9, 2025
In order to rule out this being caused by some odd setting in my Tailnet, I:
The bug was easily reproduced.
[-]dns-forward-failing health warning appears when performing simple non-failing DNS queries[/-][+]dns-forward-failing health warning appears even when performing valid DNS queries[/+]nickoneill commentedon Dec 15, 2025
We'll suppress this healthcheck warning when magicdns is off in an upcoming release. I'll ping here when we have an unstable with this for you to check
smonode commentedon Jan 13, 2026
Everyone, I'm experiencing the same behaviour in a slightly different scenario. Happy to share my insights as this might be related to this issue and could help figuring out the details.
I'm using Tailscale on macOS parallel to iCloud Private Relay which works just fine (nowadays). The only issue on macOS is (in contrast to iOS where a single DNS pipeline is being used), that Safari seems not to use iCloud Private Relay for DNS resolution but only internet traffic.
Long story short, many testings and research showed that this is due to the fact, that tailscale registers the search domain of my tailet for easy host name resolution. This lets macOS / Safari use the local DNS server instead of their ODoH implementation.
The workaround is simple: Disable Tailscale MagicDNS in the macOS client and manually configure the tailet domain without using a search domain:
This works like a charm with two downsides:
It would be great to see an option in Tailscale (either globally or in the client) not to use a search domain (in favour of enabling DNS resolution through iCloud Private Relay).
... and of course the dns-forward-failing error bugs me as everything is working just fine.
For reference:
luckman212 commentedon Jan 13, 2026
Greetings @swehrli — nice to finally find another person on the planet who is affected by this. It was getting pretty lonely in here!
Looks like as I was typing this @barnstar closed it. Don't see the commit yet so I guess it's an internal fix that hopefully shows up in unstable shortly.
As far as the drawback of "always have to use FQDN" instead of just
ping harryetc, my workaround for that is using/etc/hostswhere you can define whatever custom hostnames you want and point them at your Tailnet devices.Here's a 1-liner to automatically generate entries for all devices in your tailnet, the output of which you can copy+paste into
/etc/hostsluckman212 commentedon Jan 15, 2026
@barnstar Thanks for the progress, but this isn't quite solved.
I installed 1.94.0 rc and while the menubar icon no longer shows the warning, the healthcheck is still "failing" according to Tailscale's internal status:
nickoneill commentedon Jan 15, 2026
@luckman212 We made a decision to suppress the health warning in the UI when magicDNS is off as opposed to adjusting the triggers for the health warning itself (imo the warning is reporting correctly, if you're not using magicDNS then resolving against 100x4 has no meaningful response). Does this configuration not resolve your needs?
luckman212 commentedon Jan 15, 2026
Thanks but no, this does not resolve this issue @barnstar @nickoneill
I definitely do have MagicDNS enabled for my Tailnet. What I am NOT using is the "Use Tailscale DNS" setting below
Instead, I'm routing requests for
*.ts.netto 100.100.100.100 using a DNS override at/etc/resolver/yak-stargazer.ts.net, the contents of which areluckman212 commentedon Jan 16, 2026
@nickoneill @barnstar
I drew a rough flowchart of what the DNS healthcheck should be doing in my mind. I'm in the middle of a busy day so definitely could be errors in this logic but I wanted to put this thought down:
lmagyar commentedon Jan 18, 2026
To add insult to the injury, this SERVFAIL is "provoked" by Tailscale itself in each hour when
accept_dnsis disabled!I've made some experiment, I've put a dnsmasq proxy in front of 100.100.100.100, plus with iptables black magic any query directed to 100.100.100.100 went through this proxy, and there were nothing directed to 100.100.100.100 (nothing logged by the dnsmasq proxy), but in each hour there were these lines in the logs:
I've tried to search for (in my LAN routers logs), what TS queried at this time (I assume after 100.100.100.100 weren't able to answer, the query, it went through the normal OS resolv.conf "path"), but couldn't figure out.
TLDR: Without any external query, when
accept_dnsis disabled, TS "provokes" these log lines and health state on it's own in each hour also.zapovit commentedon Jan 22, 2026
I am also facing this issue for some weeks now with a Tailnet client who acts as DNS server for the rest of the mesh network.
Since I own the DNS server I am able to confirm that the queries are coming through fine. The DNS server does not accept Tailscale DNS settings for what I hope are obvious reasons. The next time I notice it I will generate a bug report ID and paste it here.
zapovit commentedon Jan 25, 2026
Captured two bug id's today while receiving this bunk "dns unreachable" message...
Therefore I am not sure accept-dns is implicated. Or I just happen to have a misconfiguration that surfaces this message ~ 1 hour after connecting to the tailnet. To reiterate, dns queries are being received by my tailnet dns server without issue, no immediately obvious network issues observed.
Regards,
zapovit
luckman212 commentedon Jan 25, 2026
@zapovit this issue is closed, please continue at #18436 - although I don't know if there's anything more to add. Tailscale devs know about the issue now and I think we just have to wait for a fix.
zapovit commentedon Jan 25, 2026
Thanks for the heads up, and thanks for pursuing this this bug for so long!
zapovit commentedon Apr 24, 2026
@barnstar it seems the fix is not actually working in the case of specifying a tailnet client as a DNS server...
wickedyoda commentedon Jul 1, 2026
Still not working, constantly getting this on my pixel 9xl phone and macbook mini. Neither are DNS servers, but just clients.
zapovit commentedon Jul 1, 2026
Same here but I do run my own dns server. I am also getting the odd network hang now. It's a shame this is broken because it seems like an obvious configuration.
BUG-140fb98f0d426919f1567554f1e19571faa6e69d2fd7ce34a2172a23e76291b7-20260620014441Z-3ac25f9daa5cc87f
eddiem5 commentedon Jul 25, 2026
I ran into what might be a related root cause while running Pi-hole/unbound as my tailnet's DNS server (configured via "Override DNS servers" / Global Nameservers in the admin console — a plain custom resolver, not Tailscale's own MagicDNS backend as the actual upstream).
Symptom: one of my nodes was periodically tripping Pi-hole's built-in per-client rate limiter (1000 queries/60s). Looking at the query log showed a very specific pattern: an AAAA query for the node's own hostname (both the bare form, e.g.
my-node, and the.lan-qualified form, e.g.my-node.lan) arriving every exactly 10 seconds, indefinitely, and always failing (NXDOMAIN/NODATA) — because Pi-hole (a plain custom DNS server with no built-in knowledge of tailnet device names) had no record for that hostname.Root cause, confirmed via
strace: I attachedstrace -f -e trace=networkacross every long-lived process on the box, and correlated stray thread/child-process IDs back to their owning process via/proc/<pid>/status(Tgid/PPid). This confirmedtailscaleditself (PID matched directly in one capture, plus short-lived child processes it spawns for others) is the one issuing this query, sent directly to the configured upstream DNS server (in my case100.104.180.26:53, my Pi-hole box) — not any application running on the node.The fix, and why it points at a gap: once I added a manual Local DNS Record on Pi-hole mapping the node's Tailscale IPv6 address to its own hostname (both the bare and
.lan-qualified forms), the exact same query started resolving successfully (reply=IP) instead of failing — same 10-second cadence, just now succeeding. So my fix was simple, but it suggests: if a tailnet is configured with a custom override DNS server that isn't Tailscale-aware,tailscaled's own periodic self-check query for the node's own hostname has no way to succeed unless the admin manually adds that mapping on the custom server — which isn't documented anywhere I could find, and isn't something an admin would think to add since every other domain resolves fine through that same server.This might explain part of why
dns-forward-failing(or the general DNS health signal) behaves inconsistently for people running custom upstream DNS: the check itself depends on a record most custom DNS setups won't have, through no fault of the actual DNS forwarding path.Environment:
4fb758c39ae5b208b974af14ba6bc896a250394c)Happy to share the exact
straceoutput / Pi-hole query log excerpts if useful for reproducing.jedinjapan commentedon Aug 6, 2026
This is absolutely brilliant work and I've implemented this possible fix on my Pi-hole DNS resolver as well. I'll be doing some spot testing to see if I can reproduce the error next time I'm on a remote network, as this issue doesn't occur for me when on the home network.
Hopefully Tailscale can flag the node's machine name self-health check to be disabled when the user has elected to use a custom DNS resolver, or add similar detail to your report here to the custom DNS section of the documentation.
zapovit commentedon Aug 8, 2026
I don't think the issue of tailscaled looking up the node's own hostname is relevant for the following reason: I use 100.100.100.100 as a backend for all *.ts.net dns lookups. Still, the issue persists.
I also run a healthcheck on the tailscale container per official examples (sidecar configuration), upon which the dns container (adguard home) depends. Adguard home, in my installation, uses the tailscale container's network interface directly (i.e. not 0.0.0.0 but 100.xxx.xxx.xxx).