You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[macos] Tailscale unable to resolve DNS hosts on wake #14867
Lately I've noticed that tailscale seems to be breaking DNS resolution. I'm on a M2 Max Macbook.
When I wake up my computer, I'm connected to my wifi, but am unable to browse the web or ping anything. If I ping anything it reports back saying that it's unable to resolve host.
I guess Tailscale takes DNS precedence on my machine? Kinda strange that my computer isn't doing any fallbacks, but unclear how all of that works.
The fix it I typically disable tailscale, which immediately fixes the problem. Upon re-enabling tailscale, my network also continues to function on my laptop.
I saw in the tailscale settings my mac is configured to use tailscale as a dns server, which I will disable I think because this has become a persistent issue.
Steps to reproduce
It's intermittent but:
leave tailscale enabled on macbook
close laptop to go to sleep
??
open laptop
try to browse internet or ping a website via terminal
Are there any recent changes that introduced the issue?
Okay, had my laptop asleep for about an hour. Came back and was unable to connect to the internet until I disabled tailscale.
Here is the bug id during that time before I disabled tailscale: BUG-04a65461f836ece559ee358ceaacc8a9909a30f44d298f76966560714066a0f4-20250221181223Z-20504761619c0495
I am having a similar issue when waking the Mac however connectivity seems to start working after about 10/15 seconds.
I have the same issue on my iPhone as well so it is probably Apple related somehow.
In my case, I tested that I can ping devices in my Tailscale network directly after waking the device meaning the network connectivity of Tailscale appears to be working, including pinging 100.100.100.100.
However when I try to do a DNS lookup by pinging google.com -or- perform a "dig google.com", the terminal seems to hang for a moment (about 10 seconds) and then either it times out or I eventually do get the correct results.
While I can ping 100.100.100.100 immediately after waking, DNS requests seems to take a while before it starts working after waking up.
As long as the device remains awake, the issue does not return until it has gone to standby/sleep again and wakes.
We've pushed a potential fix for this to macOS, iOS and tvOS unstable v1.81.135.
I have tested this release on macOS and it seems my issues are resolved. I will keep monitoring it but for now it looks good :-)
Any idea when this release is expected to go main? I take we cannot do any testing on iOS yet? never mind, just noticed it is on TestFlight, will test that as well.
Until this issue is tracked down, is there any way to trigger the same thing that toggling the menubar switch off and back on does, using the commandline?
I monkeyed around a bit, and believe I came up with a way to roughly approximate toggling that GUI knob via shell on macOS (call _ts_bounce after sourcing the file below or adding the functions to your profile):
#!/usr/bin/env bash_ts_get_vpn_guid() {
local guid
guid=$(scutil --nc list | awk '/io.tailscale.ipn.mac/ && $3 ~ /[A-F0-9]{8}/ { print $3 }')if [[ -n$guid ]];thenexport TS_GUID=$guidreturn 0
fireturn 1
}
_ts_stop() {
local cnt STATUS
_ts_get_vpn_guid ||return 1
cnt=5
while(( cnt--));do
scutil --nc stop "$TS_GUID"read -r STATUS <<(scutil --nc status "$TS_GUID")if [[ $STATUS=="Disconnected" ]];thenbreakfi
sleep 1
done
[[ $STATUS=="Disconnected" ]]
}
_ts_start() {
local STATUS
_ts_get_vpn_guid ||return 1
tailscale up
read -r STATUS <<(scutil --nc status "$TS_GUID")
[[ $STATUS=="Connected" ]]
}
_ts_bounce() {
_ts_stop
sleep 2
_ts_start
}
@nickoneill I just posted a large amount of DNS-related debug info over at #15389 (comment) if you wouldn't mind taking a look there when you can.
I'm experiencing the same issue on the latest version of Tailscale (1.88.3) and macOS. Almost every time I put my MacBook to sleep while Tailscale is active, the connection breaks upon waking. In some cases, even quitting the app doesn’t resolve it and I have to restart the entire laptop.
What specific DNS lookups or tests are being performed by Tailscale in order to determine when to show the healthcheck warning? I've asked this several times here on GH issues as well as via private communications, and never received an answer. If we can at least know this then I can do some more troubleshooting as to why those lookups might be failing. It seems to be something quite rare but very persistent about our network configuration.
For the past few days this happens every single time I come back to my computer. For some reason toggling the enable switch didn't work for me, to fix it I have to fully quit the tailscale app and restart it and everything goes back to normal.
I'm guessing based on the clustering of reports here that something in a recent version made things worse. Is there anything we can try to help debug and get this fixed?
I tried used tailscale from the terminal while it was happening and tailscale status, tailscale dns status, tailscale bugreport, and tailscale down all hung indefinitely until I restart the app.
After the app restart tailscale status fell back to: 2025/10/30 19:54:04 failed to connect to local Tailscale service; is Tailscale running?
tailscale dns status fell back to: 2025/10/30 19:54:04 Get "http://local-tailscaled.sock/localapi/v0/status": EOF
tailscale bugreport fell back to: 2025/10/30 19:54:04 Post "http://local-tailscaled.sock/localapi/v0/bugreport?": EOF
and tailscale down fell back to: 2025/10/30 19:54:04 error fetching current status: Get "http://local-tailscaled.sock/localapi/v0/status": EOF
Not sure if any of that is helpful. Let me know if there is anything else I can debug next time it happens, cause I'm having it happen multiple times a day so I have plenty of opportunities.
Since last week when I reported the issue Tailscale has done two rounds of updates. Since the upgrade to 1.90.6 i have yet to experience the DNS issue. 🤞 🤞 🤞
I discovered today that (at least in my case) it occurs not only when the system wakes from sleep, but when the WiFi / network connection is toggled off and back on.
Same issue with 1.90.6, but I was able to fix the issue as it happens.
[EDIT]
This is what worked for me on MacOS:
Install the standalone variant
In Tailscale settings enable the CLI integration
When the issue occurs, sudo tailscale down then sudo tailscale up
For some reason, the off/on switch on the Tailscale GUI does not work for me (I cannot toggle Tailscale off using that switch), so the CLI up/down command was really key.
System resolver (getaddrinfo), curl https://www.apple.com
FAIL
scutil --dns while broken looks correct (100.100.100.100 on utun as resolver #1, gateway resolver on en0 as #2, both Reachable). sudo killall -HUP mDNSResponder alone fixes it immediately, without touching Tailscale (same as @switz reported). So 100.100.100.100 is healthy; mDNSResponder seems to keep the resolvers marked dead from the offline period, and nothing re-applies or pokes the DNS config after the link comes back.
Bug report taken right after the repro: BUG-d8d7a95deb3d924363982086e65378738815c13c78bb0473e5adb4d4fc82ab13-20261022025446Z-b64103fa215edc11 (repro window 2026-10-22 ~02:48–02:50 UTC).
Activity
nickoneill commentedon Feb 3, 2025
Can you attempt this same thing with the latest 1.80 version? Also please provide a bug report, it's available in the menu under Settings > About
nickzelei commentedon Feb 21, 2025
I added a bug report. However I've since updated to 1.80.2 and am on the latest maccos 15.3.1. It seems to be occasionally still occuring.
nickzelei commentedon Feb 21, 2025
BUG-04a65461f836ece559ee358ceaacc8a9909a30f44d298f76966560714066a0f4-20250221181223Z-20504761619c0495
tailscale-mac-diagnostics-42E63C0A-E06F-4003-AB8F-CE5A0D20BC58.tar.gz
nickzelei commentedon Feb 21, 2025
Okay, had my laptop asleep for about an hour. Came back and was unable to connect to the internet until I disabled tailscale.
Here is the bug id during that time before I disabled tailscale:
BUG-04a65461f836ece559ee358ceaacc8a9909a30f44d298f76966560714066a0f4-20250221181223Z-20504761619c0495Attached are the extended logs:
tailscale-mac-diagnostics-95587654-5390-4902-8B10-C149707F371F.tar.gz
colinator19 commentedon Mar 2, 2025
I am having a similar issue when waking the Mac however connectivity seems to start working after about 10/15 seconds.
I have the same issue on my iPhone as well so it is probably Apple related somehow.
In my case, I tested that I can ping devices in my Tailscale network directly after waking the device meaning the network connectivity of Tailscale appears to be working, including pinging 100.100.100.100.
However when I try to do a DNS lookup by pinging google.com -or- perform a "dig google.com", the terminal seems to hang for a moment (about 10 seconds) and then either it times out or I eventually do get the correct results.
While I can ping 100.100.100.100 immediately after waking, DNS requests seems to take a while before it starts working after waking up.
As long as the device remains awake, the issue does not return until it has gone to standby/sleep again and wakes.
jimmybrancaccio commentedon Mar 6, 2025
A customer in TSS-54115 has also reported this issue. Included in that are bug reports and a macOS configuration report.
barnstar commentedon Mar 7, 2025
We've pushed a potential fix for this to macOS, iOS and tvOS unstable v1.81.135.
colinator19 commentedon Mar 8, 2025
I have tested this release on macOS and it seems my issues are resolved. I will keep monitoring it but for now it looks good :-)
Any idea when this release is expected to go main?
I take we cannot do any testing on iOS yet?never mind, just noticed it is on TestFlight, will test that as well.barnstar commentedon Apr 11, 2025
This should be resolved as of 1.82.0
13 remaining items
luckman212 commentedon Jun 26, 2025
Until this issue is tracked down, is there any way to trigger the same thing that toggling the menubar switch off and back on does, using the commandline?
luckman212 commentedon Jul 6, 2025
I monkeyed around a bit, and believe I came up with a way to roughly approximate toggling that GUI knob via shell on macOS (call
_ts_bounceafter sourcing the file below or adding the functions to your profile):@nickoneill I just posted a large amount of DNS-related debug info over at #15389 (comment) if you wouldn't mind taking a look there when you can.
agent0022 commentedon Oct 13, 2025
I'm experiencing the same issue on the latest version of Tailscale (1.88.3) and macOS. Almost every time I put my MacBook to sleep while Tailscale is active, the connection breaks upon waking. In some cases, even quitting the app doesn’t resolve it and I have to restart the entire laptop.
timball commentedon Oct 30, 2025
This just started happening to me as well. boucing tailscale on/off from the apple network settings is the only way to temporarily solve symptoms
luckman212 commentedon Oct 30, 2025
What specific DNS lookups or tests are being performed by Tailscale in order to determine when to show the healthcheck warning? I've asked this several times here on GH issues as well as via private communications, and never received an answer. If we can at least know this then I can do some more troubleshooting as to why those lookups might be failing. It seems to be something quite rare but very persistent about our network configuration.
tailscale/net/dns/resolver/forwarder.go
Lines 964 to 969 in d68513b
mmenanno commentedon Oct 31, 2025
For the past few days this happens every single time I come back to my computer. For some reason toggling the enable switch didn't work for me, to fix it I have to fully quit the tailscale app and restart it and everything goes back to normal.
I'm guessing based on the clustering of reports here that something in a recent version made things worse. Is there anything we can try to help debug and get this fixed?
I tried used
tailscalefrom the terminal while it was happening andtailscale status,tailscale dns status,tailscale bugreport, andtailscale downall hung indefinitely until I restart the app.After the app restart
tailscale statusfell back to:2025/10/30 19:54:04 failed to connect to local Tailscale service; is Tailscale running?tailscale dns statusfell back to:2025/10/30 19:54:04 Get "http://local-tailscaled.sock/localapi/v0/status": EOFtailscale bugreportfell back to:2025/10/30 19:54:04 Post "http://local-tailscaled.sock/localapi/v0/bugreport?": EOFand
tailscale downfell back to:2025/10/30 19:54:04 error fetching current status: Get "http://local-tailscaled.sock/localapi/v0/status": EOFNot sure if any of that is helpful. Let me know if there is anything else I can debug next time it happens, cause I'm having it happen multiple times a day so I have plenty of opportunities.
tylerburleigh commentedon Nov 5, 2025
I'm also experiencing this issue with the current version of Tailscale.
Restarting tailscale did not solve the issue.
Removing the VPN configuration only partially restored my network access.
I had to reboot my Mac to get things working again.
timball commentedon Nov 5, 2025
Since last week when I reported the issue Tailscale has done two rounds of updates. Since the upgrade to 1.90.6 i have yet to experience the DNS issue. 🤞 🤞 🤞
luckman212 commentedon Nov 5, 2025
@timball I'm glad to hear that, now hopefully #15389 will get some attention...
tylerburleigh commentedon Nov 6, 2025
I discovered today that (at least in my case) it occurs not only when the system wakes from sleep, but when the WiFi / network connection is toggled off and back on.
I will give 1.90.6 a shot.
tylerburleigh commentedon Nov 7, 2025
Same issue with 1.90.6, but I was able to fix the issue as it happens.
[EDIT]
This is what worked for me on MacOS:
sudo tailscale downthensudo tailscale upFor some reason, the off/on switch on the Tailscale GUI does not work for me (I cannot toggle Tailscale off using that switch), so the CLI
up/downcommand was really key.switz commentedon Jan 17, 2026
this happens to me quite often.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderfixes it temporarilydanielefranceschi commentedon May 8, 2026
I don't know if relates, but my Mac cannot resolve machines on my ts.net domain, while the linux machines do resolve the Mac.scutil --dnscorrectly lists the TS resolver at the second place with the correct ts.net domain.Restarting, rebooting, flushing DNS cache, nothing works.EDIT: solved, it was the Little Snitch encrypted DNS feature.
nickoneill commentedon May 8, 2026
Hi @danielefranceschi, please reach out to support, this doesn't seem like the same bug described in this issue.
qdrs commentedon Oct 22, 2026
Still happening on 1.102.2 (standalone), macOS 27.0 (26A428), Mac15,8. I can reproduce it reliably without sleep:
While broken I probed every few seconds; the failure is only in the system resolver:
en0→ gateway,ping 1.1.1.1,curl https://1.1.1.1dig @<gateway> apple.comdig @100.100.100.100 apple.comgetaddrinfo),curl https://www.apple.comscutil --dnswhile broken looks correct (100.100.100.100 on utun as resolver #1, gateway resolver on en0 as #2, bothReachable).sudo killall -HUP mDNSResponderalone fixes it immediately, without touching Tailscale (same as @switz reported). So 100.100.100.100 is healthy; mDNSResponder seems to keep the resolvers marked dead from the offline period, and nothing re-applies or pokes the DNS config after the link comes back.Bug report taken right after the repro:
BUG-d8d7a95deb3d924363982086e65378738815c13c78bb0473e5adb4d4fc82ab13-20261022025446Z-b64103fa215edc11(repro window 2026-10-22 ~02:48–02:50 UTC).