Skip to content

[macos] Tailscale unable to resolve DNS hosts on wake #14867

Open

Description

@nickzelei

What is the issue?

Hey there,

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:

  1. leave tailscale enabled on macbook
  2. close laptop to go to sleep
  3. ??
  4. open laptop
  5. try to browse internet or ping a website via terminal

Are there any recent changes that introduced the issue?

No response

OS

macOS

OS version

macOS Sequoia 15.1.1

Tailscale version

1.76.6 Mac Store Variant

Other software

No response

Bug report

BUG-04a65461f836ece559ee358ceaacc8a9909a30f44d298f76966560714066a0f4-20250221165947Z-e374a98028f70bb5

Activity

  1. added
    OS-macos
    on Feb 3, 2025
  2. nickoneill commented on Feb 3, 2025

    @nickoneill
    Contributor

    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

  3. nickzelei commented on Feb 21, 2025

    @nickzelei
    Author

    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.

  4. nickzelei commented on Feb 21, 2025

    @nickzelei
    Author

    BUG-04a65461f836ece559ee358ceaacc8a9909a30f44d298f76966560714066a0f4-20250221181223Z-20504761619c0495

    tailscale-mac-diagnostics-42E63C0A-E06F-4003-AB8F-CE5A0D20BC58.tar.gz

  5. nickzelei commented on Feb 21, 2025

    @nickzelei
    Author

    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

    Attached are the extended logs:
    tailscale-mac-diagnostics-95587654-5390-4902-8B10-C149707F371F.tar.gz

  6. colinator19 commented on Mar 2, 2025

    @colinator19

    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.

  7. jimmybrancaccio commented on Mar 6, 2025

    @jimmybrancaccio

    A customer in TSS-54115 has also reported this issue. Included in that are bug reports and a macOS configuration report.

  8. barnstar commented on Mar 7, 2025

    @barnstar
    Member

    We've pushed a potential fix for this to macOS, iOS and tvOS unstable v1.81.135.

  9. colinator19 commented on Mar 8, 2025

    @colinator19

    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.

  10. barnstar commented on Apr 11, 2025

    @barnstar
    Member

    This should be resolved as of 1.82.0

  11. 13 remaining items

  12. luckman212 commented on Jun 26, 2025

    @luckman212

    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?

  13. luckman212 commented on Jul 6, 2025

    @luckman212

    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 ]]; then
        export TS_GUID=$guid
        return 0
      fi
      return 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" ]]; then
          break
        fi
        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.

  14. agent0022 commented on Oct 13, 2025

    @agent0022

    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.

  15. timball commented on Oct 30, 2025

    @timball

    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

  16. luckman212 commented on Oct 30, 2025

    @luckman212

    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.

    if len(resolvers) == 0 {
    resolvers = f.resolvers(domain)
    if len(resolvers) == 0 {
    metricDNSFwdErrorNoUpstream.Add(1)
    f.health.SetUnhealthy(dnsForwarderFailing, health.Args{health.ArgDNSServers: ""})
    f.logf("no upstream resolvers set, returning SERVFAIL")

  17. mmenanno commented on Oct 31, 2025

    @mmenanno

    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.

  18. tylerburleigh commented on Nov 5, 2025

    @tylerburleigh

    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.

  19. timball commented on Nov 5, 2025

    @timball

    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. 🤞 🤞 🤞

  20. luckman212 commented on Nov 5, 2025

    @luckman212

    @timball I'm glad to hear that, now hopefully #15389 will get some attention...

  21. tylerburleigh commented on Nov 6, 2025

    @tylerburleigh

    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.

  22. tylerburleigh commented on Nov 7, 2025

    @tylerburleigh

    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.

  23. switz commented on Jan 17, 2026

    @switz

    this happens to me quite often. sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder fixes it temporarily

  24. danielefranceschi commented on May 8, 2026

    @danielefranceschi

    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 --dns correctly 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.

  25. nickoneill commented on May 8, 2026

    @nickoneill
    Contributor

    Hi @danielefranceschi, please reach out to support, this doesn't seem like the same bug described in this issue.

  26. qdrs commented on Oct 22, 2026

    @qdrs

    Still happening on 1.102.2 (standalone), macOS 27.0 (26A428), Mac15,8. I can reproduce it reliably without sleep:

    1. Tailscale connected, "Use Tailscale DNS" on, no exit node.
    2. Turn Wi‑Fi off, wait ~20 s.
    3. Turn Wi‑Fi on and join a network (iPhone hotspot here).
    4. System DNS fails until Tailscale is toggled.

    While broken I probed every few seconds; the failure is only in the system resolver:

    Check Result
    Default route en0 → gateway, ping 1.1.1.1, curl https://1.1.1.1 ok
    dig @<gateway> apple.com ok
    dig @100.100.100.100 apple.com ok
    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

OS-macosbugdns

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions