Repository navigation
Description
⚠️ Last update 2025-12-06
I have a simplified repro and updated info in new issue #18146
I finally found a way to reliably reproduce this bug (see #18101) and created this simple POC:
Save, chmod +x and run the script. As long as you have --accept-dns=false, after ~15 seconds, you should get:
- The information below is current as of Tailscale 1.92.0 rc running on macOS 26.1 (25B78)
- The internal JIRA ticket is TSS-68644
- I also experience this error on my pfSense router (FreeBSD) running Tailscale 1.90.6 so it is NOT macOS-specific (N.B. that macOS is loosely related to FreeBSD)
- I'm tracking all of the
BUG-xxxIDs in a separate comment below - I am happy to provide anything needed to help Tailscale debug this, including: direct access to the affected machine(s), remote access to a dedicated VM on my LAN that can reproduce this issue, any other logs or command output requested
Bug
Quite often (multiple times throughout the day, every day) I get the following warning:
DNS Unavailable
Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.Code: dns-forward-failing
This occurs on both my MacBook Air M4 laptop (which often roams from network to network, WiFi to hotspot and various VPN connections) as well as on my Mac Mini M4 desktop.
It NEVER self-corrects after entering this state. Running tailscale down; sleep 5; tailscale up does NOT resolve it. Only switching the main connection toggle to the OFF position and then back on clears it:
After doing so, and without making any other configuration changes, Tailscale reports that all is well:
Platform and Configuration
- macOS 26.1
- Tailscale 1.91.150 (Standalone pkg version, but AppStore version is also affected)
- "Use Tailscale DNS settings" NOT checked
- I use a combination of a custom resolver file at
/etc/resolver/directingts.netqueries to quad-100 as well as some statically defined entries in/etc/hostsfor DNS resolution inside my tailnet
Here's a screenshot of my Tailscale settings:
Here is some output from scutil --dns in case it's relevant:
$ scutil --dns
DNS configuration
resolver #1
search domain[0] : lan
search domain[1] : internal
nameserver[0] : 192.168.20.1
if_index : 16 (en0)
flags : Request A records, Request AAAA records
reach : 0x00020002 (Reachable,Directly Reachable Address)
resolver #2
domain : local
options : mdns
timeout : 5
flags : Request A records, Request AAAA records
reach : 0x00000000 (Not Reachable)
order : 300000
resolver #3
domain : 254.169.in-addr.arpa
options : mdns
timeout : 5
flags : Request A records, Request AAAA records
reach : 0x00000000 (Not Reachable)
order : 300200
resolver #4
domain : 8.e.f.ip6.arpa
options : mdns
timeout : 5
flags : Request A records, Request AAAA records
reach : 0x00000000 (Not Reachable)
order : 300400
resolver #5
domain : 9.e.f.ip6.arpa
options : mdns
timeout : 5
flags : Request A records, Request AAAA records
reach : 0x00000000 (Not Reachable)
order : 300600
resolver #6
domain : a.e.f.ip6.arpa
options : mdns
timeout : 5
flags : Request A records, Request AAAA records
reach : 0x00000000 (Not Reachable)
order : 300800
resolver #7
domain : b.e.f.ip6.arpa
options : mdns
timeout : 5
flags : Request A records, Request AAAA records
reach : 0x00000000 (Not Reachable)
order : 301000
resolver #8
domain : ts.net
nameserver[0] : 100.100.100.100
flags : Request A records, Request AAAA records
reach : 0x00000003 (Reachable,Transient Connection)
DNS configuration (for scoped queries)
resolver #1
search domain[0] : lan
search domain[1] : internal
nameserver[0] : 192.168.20.1
if_index : 16 (en0)
flags : Scoped, Request A records, Request AAAA records
reach : 0x00020002 (Reachable,Directly Reachable Address)
resolver #2
search domain[0] : lan
search domain[1] : internal
nameserver[0] : 192.168.20.1
if_index : 18 (en1)
flags : Scoped, Request A records, Request AAAA records
reach : 0x00020002 (Reachable,Directly Reachable Address)
resolver #3
nameserver[0] : 192.168.20.1
if_index : 35 (utun12)
flags : Scoped, Request A records, Request AAAA records
reach : 0x00000003 (Reachable,Transient Connection)
Activity
[-]macOS: occasional (fairly frequent) `dns-forward-failing` error with warning in menubar icon[/-][+]macOS: fairly frequent `dns-forward-failing` error with warning in menubar icon[/+]luckman212 commentedon Mar 26, 2025
This comment is to track
BUGIDs over time. I omit the date since it's embedded in the third segment of the Bug ID. Along with this table, I'm keeping a folder of the Extended diagnostic report (tgz) files, and will provide them if Tailscale ever requests them.BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251010122131Z-81ed164cfa8fb888BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251019160739Z-2676a1100334d324BUG-64f4ae8bfccbbe3ffa6ec7ce916785b2cb0e4bb2d6bbb4b752a5b1d892fe2059-20251110151748Z-7744a34cb8adfa48BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251115030852Z-a4e2c5dc3cd1a191BUG-e0515129401397cf3a171177d14f9fdebb128a3a4ff073f9fb96615220b54d60-20251123151957Z-5e99911585b040f0BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251124154151Z-cf2d32ed1f374485BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251125124413Z-ca5cb9ee4fb9182aBUG-e0515129401397cf3a171177d14f9fdebb128a3a4ff073f9fb96615220b54d60-20251125214835Z-cdbb9af33a73cff1BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251126132156Z-d9525645c7d651a4BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251126211756Z-3f5b45b20a5690cbBUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251127115059Z-49bb0e567ba09b04BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251127181748Z-667ce8b476dd5fd6BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251130155711Z-18699b7f43524262BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251130174901Z-de5c201f510eb436BUG-e0515129401397cf3a171177d14f9fdebb128a3a4ff073f9fb96615220b54d60-20251202155636Z-b52490d5784e8c46BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251203023257Z-5038c7ac744251c2BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251204145502Z-3da9b322b6672671BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251204150803Z-febe2c9e533ea299luckman212 commentedon Mar 31, 2025
I just updated my macOS nodes to 1.82.0, so I will re-test and report back if this bug persists.
luckman212 commentedon Apr 1, 2025
While I continue to see the warning icon and get the
dns-forward-failingmessage, for now it seems version 1.82 is a bit better about correcting itself. I will report back again.luckman212 commentedon Apr 10, 2025
After a week or so, I can confidently say that this bug is still present!
h1t35h commentedon May 4, 2025
I recently upgraded to mac sequoia 15.4.1 I can confirm I'm seeing this.
mschoeffmann commentedon May 17, 2025
+1 on macOS 15.5 and iOS 18.5
luckman212 commentedon Jun 26, 2025
Likely related (or identical) issue: #14867
luckman212 commentedon Jul 6, 2025
Been working all day on trying to get more info on this problem.
1. Finding the code that triggers this error
I dug through the code to find the area that sets this
dns-forward-failing(dnsForwarderFailing) error condition. There are 3 places, all innet/dns/resolver/forwarder.go:tailscale/net/dns/resolver/forwarder.go
Lines 951 to 955 in 92a114c
tailscale/net/dns/resolver/forwarder.go
Lines 1047 to 1054 in 92a114c
tailscale/net/dns/resolver/forwarder.go
Lines 1071 to 1079 in 92a114c
The conditions to hit these codepaths appear to be
Not sure which case (cases?) I'm hitting, but I'm starting to collect better debug info (read on)
2. Getting daemon health via CLI
I found a way to check for Tailscale daemon health via the Terminal.
TAILSCALE_BE_CLI=1 /Applications/Tailscale.app/Contents/MacOS/Tailscale status --json | jq .HealthOr, a bit nicer:
I've now wired up a daemon to check every 10 minutes for the issue and dump diagnostic output if/when it occurs. Hopefully this will lead to a solution.
3. "derp-1 does not know about peer"
As I was looking at my daemon logs for clues, and noticed an unusual amount of logspam about a specific peer:
5DokL:Not sure if this is important (I think "no"). Can't find any documented way to map that 5DokL to a specific peer–it's not in the UI or JSON output of any command I can find. I did figure out that it is my laptop though, by poring over the macOS ULS logs
22000 is my Syncthing port so I figure this is just syncthing constantly trying to connect to my sleeping laptop, and Tailscale reporting that it isn't online. The logspam stops when I wake my laptop up from sleep.
4. "No Search Domains Found"
tailscale dns statusalways saysno search domains foundeven when my machine clearly has them:Is Tailscale referring to the global search domains here, or the scoped ones for its
utuninterface? Because I do see that there aren't any applied there... maybe that's why?[-]macOS: fairly frequent `dns-forward-failing` error with warning in menubar icon[/-][+]macOS: frequent `dns-forward-failing` error with warning in menubar icon[/+]luckman212 commentedon Jul 7, 2025
The automation is working well. I wired it up to automatically bounce Tailscale when this condition is detected. It's also generating nice logs and debug info every time this occurs, which is multiple times throughout the day.
As of now, here's what the script collects every time an unhealthy state is detected:
tailscale bugreport)tailscale status --json)tailscale dns status --all)tailscale netcheck --verbose --format json)tailscale ping w.x.y.z)dns-osconfig(serveDNSOSConfig) via local APItailscale.comto every server listed in theNameserver[]JSON object from thedns-osconfigabovetailscale dns query <peer_hostname>)scutilcommands:scutil --dnsscutil --nwiscutil --nc listscutil --nc status Tailscalescutil --nc show Tailscalelog collect --last 10m) from the last 10 minutes (healthcheck runs every 10 minutes, so theoretically there should be something in the logs to indicate what caused the current failure)All of these are saved in a timestamped folder. So far I've collected 8 "unhealthy" and 8 "healthy" reports. @nickoneill Anything useful I can do with these, or additional info to collect at the time of the issue?
luckman212 commentedon Jul 18, 2025
I've got over 40 of these bugreports full of debug info collected now. Anything I can do with these?
luckman212 commentedon Jul 19, 2025
Found this in the logarchive. Here's the predicate I use to filter for Tailscale-related entries:
There are several hundred other log messages that precede it. Let me know if I can provide these logs to someone to help track this down?
5 remaining items
luckman212 commentedon Oct 10, 2025
Submitted
TSS-68644luckman212 commentedon Oct 14, 2025
Anything I can do to help troubleshoot this @barnstar ? I've collected hundreds of debug logs at this point, so I've turned off that sentry sript for now as I don't think there's any more useful info that will be collected until I can get some interaction from Tailscale's side.
luckman212 commentedon Oct 19, 2025
Added another bugreport (TSS-69225) (update: Tailscale closed that issue as a duplicate of TSS-68644)
Now running 1.89.267 unstable
barnstar commentedon Oct 20, 2025
@luckman212 Can you clarify if there's actually a problem with DNS?
This is an information warning that we have seen some unexpected DNS failures. If DNS is working - the resolver is finding another path or retries succeed - then there's nothing to be concerned about here and you can ignore the warning. It should disappear once we stop failing queries.
Swapping networks can definitely trigger this.
luckman212 commentedon Oct 20, 2025
Thanks @barnstar - to clarify again, there is no DNS problem. Lookups to
*.ts.netas well as non-tailnet hosts continue to work fine.I will say that this error is very persistent on my systems, and occurs often on my Desktop Mac which does not change networks. So something else seems to also trigger this. It's happening literally as I write this:
As for ignoring it- that's what I'm doing but honestly it is bothersome to always see Tailscale in a state of distress, and if there was an actual problem I would be oblivious to it. I'd like to help track this down and get it solved, just let me know what else I can do.
luckman212 commentedon Oct 21, 2025
As of 2025-10-22 I've updated to 1.91.1 unstable, and the issue persists.As of 2025-11-02 I'm running 1.90.6 and continue to experience the bug.
hoffmang9 commentedon Oct 21, 2025
Also note that @luckman212 is not the only person seeing this exact behavior on MacOS. I will note that it's only happening in my personal login - when logged into my corporate account things are fine.
luckman212 commentedon Nov 10, 2025
Today I found that I apparently also experience this error on my local pfSense router (FreeBSD) running 1.90.6 so it is NOT macOS-specific (although macOS is loosely related to FreeBSD)
Bugreport from the router itself
[-]macOS: frequent `dns-forward-failing` error with warning in menubar icon[/-][+]frequent `dns-forward-failing` error with warning in menubar icon (macOS, FreeBSD)[/+]luckman212 commentedon Nov 12, 2025
Wondering if e8d2f96 may move the needle on this bug. If anyone could let me know when that commit lands in an unstable build, I would like to test.
luckman212 commentedon Nov 14, 2025
I installed and am now testing Tailscale-1.91.85-macos.pkg
luckman212 commentedon Nov 15, 2025
Well, new menubar icon, but same old bug apparently
I collected an extended debug archive, and attached it to the internal bug.
luckman212 commentedon Dec 1, 2025
I found a reliable way to repro this. See #18101
And now #18146
luckman212 commentedon Dec 6, 2025
Closing in favor of #18146