Skip to content

frequent dns-forward-failing error with warning in menubar icon (macOS, FreeBSD) #15389

Closed

Description

@luckman212

⚠️ 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:

https://gist.github.com/luckman212/6924d1f2d4ecedd11af62203ae8da37b

Save, chmod +x and run the script. As long as you have --accept-dns=false, after ~15 seconds, you should get:

Image
  • 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-xxx IDs 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

Image
Image

⚠️N.B. Despite this warning, DNS resolution both inside and outside of my Tailnets works perfectly fine.

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:

Image

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/ directing ts.net queries to quad-100 as well as some statically defined entries in /etc/hosts for 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

  1. changed the title [-]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[/+] on Mar 22, 2025
  2. luckman212 commented on Mar 26, 2025

    @luckman212
    Author

    This comment is to track BUG IDs 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 ID
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251010122131Z-81ed164cfa8fb888
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251019160739Z-2676a1100334d324
    BUG-64f4ae8bfccbbe3ffa6ec7ce916785b2cb0e4bb2d6bbb4b752a5b1d892fe2059-20251110151748Z-7744a34cb8adfa48
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251115030852Z-a4e2c5dc3cd1a191
    BUG-e0515129401397cf3a171177d14f9fdebb128a3a4ff073f9fb96615220b54d60-20251123151957Z-5e99911585b040f0
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251124154151Z-cf2d32ed1f374485
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251125124413Z-ca5cb9ee4fb9182a
    BUG-e0515129401397cf3a171177d14f9fdebb128a3a4ff073f9fb96615220b54d60-20251125214835Z-cdbb9af33a73cff1
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251126132156Z-d9525645c7d651a4
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251126211756Z-3f5b45b20a5690cb
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251127115059Z-49bb0e567ba09b04
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251127181748Z-667ce8b476dd5fd6
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251130155711Z-18699b7f43524262
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251130174901Z-de5c201f510eb436
    BUG-e0515129401397cf3a171177d14f9fdebb128a3a4ff073f9fb96615220b54d60-20251202155636Z-b52490d5784e8c46
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251203023257Z-5038c7ac744251c2
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251204145502Z-3da9b322b6672671
    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251204150803Z-febe2c9e533ea299
  3. luckman212 commented on Mar 31, 2025

    @luckman212
    Author

    I just updated my macOS nodes to 1.82.0, so I will re-test and report back if this bug persists.

  4. luckman212 commented on Apr 1, 2025

    @luckman212
    Author

    While I continue to see the warning icon and get the dns-forward-failing message, for now it seems version 1.82 is a bit better about correcting itself. I will report back again.

  5. luckman212 commented on Apr 10, 2025

    @luckman212
    Author

    After a week or so, I can confidently say that this bug is still present!

  6. h1t35h commented on May 4, 2025

    @h1t35h

    I recently upgraded to mac sequoia 15.4.1 I can confirm I'm seeing this.

  7. mschoeffmann commented on May 17, 2025

    @mschoeffmann

    +1 on macOS 15.5 and iOS 18.5

  8. luckman212 commented on Jun 26, 2025

    @luckman212
    Author

    Likely related (or identical) issue: #14867

  9. luckman212 commented on Jul 6, 2025

    @luckman212
    Author

    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 in net/dns/resolver/forwarder.go:

    if len(resolvers) == 0 {
    resolvers = f.resolvers(domain)
    if len(resolvers) == 0 {
    metricDNSFwdErrorNoUpstream.Add(1)
    f.health.SetUnhealthy(dnsForwarderFailing, health.Args{health.ArgDNSServers: ""})

    case <-ctx.Done():
    metricDNSFwdErrorContext.Add(1)
    metricDNSFwdErrorContextGotError.Add(1)
    var resolverAddrs []string
    for _, rr := range resolvers {
    resolverAddrs = append(resolverAddrs, rr.name.Addr)
    }
    f.health.SetUnhealthy(dnsForwarderFailing, health.Args{health.ArgDNSServers: strings.Join(resolverAddrs, ",")})

    // If we haven't got an error or a successful response,
    // include all resolvers in the error message so we can
    // at least see what what servers we're trying to
    // query.
    var resolverAddrs []string
    for _, rr := range resolvers {
    resolverAddrs = append(resolverAddrs, rr.name.Addr)
    }
    f.health.SetUnhealthy(dnsForwarderFailing, health.Args{health.ArgDNSServers: strings.Join(resolverAddrs, ",")})

    The conditions to hit these codepaths appear to be

    1. No DNS resolvers present at all
    2. None of the configured resolvers are returning valid responses
    3. Timeout (no valid OR error response at all from any resolvers)?

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

    Or, a bit nicer:

    TAILSCALE_BE_CLI=1 /Applications/Tailscale.app/Contents/MacOS/Tailscale status --json \
    | jq -r '.Health |
      if length == 0 then
        "healthy"
      else
        "\(.[0])\n" | halt_error(1)
      end'

    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:

    # tailscale debug daemon-logs
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    magicsock: derp-1 does not know about peer [5DokL], removing route
    (continues forever...)
    

    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

    $ log show --last 10m --predicate 'composedMessage contains "5DokL"'
    2025-07-06 17:33:36.473077-0400 0x82f01d   Default     0x0                  22402  0    IPNExtension: magicsock: derp-1 does not know about peer [5DokL], removing route
    2025-07-06 17:33:40.227246-0400 0x82f047   Default     0x0                  22402  0    IPNExtension: open-conn-track: timeout opening (TCP 100.114.101.103:22000 => 100.84.155.68:22000) to node [5DokL]; online=no, lastseen=recent, lastRecv=5m55s
    

    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.

    Related "derp-N does not know about peer" issues: #14623 and #11565

    4. "No Search Domains Found"

    tailscale dns status always says no search domains found even when my machine clearly has them:

    Image Image Image

    Is Tailscale referring to the global search domains here, or the scoped ones for its utun interface? Because I do see that there aren't any applied there... maybe that's why?

    Image
  10. changed the title [-]macOS: fairly frequent `dns-forward-failing` error with warning in menubar icon[/-] [+]macOS: frequent `dns-forward-failing` error with warning in menubar icon[/+] on Jul 6, 2025
  11. luckman212 commented on Jul 7, 2025

    @luckman212
    Author

    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:

    • BUG ID (tailscale bugreport)
    • Status (tailscale status --json)
    • DNS status (tailscale dns status --all)
    • Netcheck (tailscale netcheck --verbose --format json)
    • Ping to an online peer, that's not self (tailscale ping w.x.y.z)
    • Dump from dns-osconfig (serveDNSOSConfig) via local API
    • DNS query for tailscale.com to every server listed in the Nameserver[] JSON object from the dns-osconfig above
    • DNS query for random tailnet peer using Quad100 (tailscale dns query <peer_hostname>)
    • Output from each of the following scutil commands:
      • scutil --dns
      • scutil --nwi
      • scutil --nc list
      • scutil --nc status Tailscale
      • scutil --nc show Tailscale
    • Full macOS .logarchive (log 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?

  12. luckman212 commented on Jul 18, 2025

    @luckman212
    Author

    I've got over 40 of these bugreports full of debug info collected now. Anything I can do with these?

  13. luckman212 commented on Jul 19, 2025

    @luckman212
    Author

    Found this in the logarchive. Here's the predicate I use to filter for Tailscale-related entries:

    log repack \
      --archive "system_logs.logarchive" \
      --predicate 'eventMessage CONTAINS[c] "tailscale" || process=="Tailscale"'
    

    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?

    Image
  14. added
    OS-macos
    bug
    on Jul 22, 2025
  15. 5 remaining items

  16. luckman212 commented on Oct 10, 2025

    @luckman212
    Author

    Submitted TSS-68644

    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251010122131Z-81ed164cfa8fb888
    
  17. luckman212 commented on Oct 14, 2025

    @luckman212
    Author

    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.

  18. luckman212 commented on Oct 19, 2025

    @luckman212
    Author

    Added another bugreport (TSS-69225) (update: Tailscale closed that issue as a duplicate of TSS-68644)

    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251019160739Z-2676a1100334d324
    

    Now running 1.89.267 unstable

  19. barnstar commented on Oct 20, 2025

    @barnstar
    Member

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

  20. luckman212 commented on Oct 20, 2025

    @luckman212
    Author

    Thanks @barnstar - to clarify again, there is no DNS problem. Lookups to *.ts.net as 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:

    Image

    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.

  21. luckman212 commented on Oct 21, 2025

    @luckman212
    Author

    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.

  22. hoffmang9 commented on Oct 21, 2025

    @hoffmang9

    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.

  23. luckman212 commented on Nov 10, 2025

    @luckman212
    Author

    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)

    # tailscale status --json | jq -r '.Version, .Health[0]'
    1.90.6
    Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    

    Bugreport from the router itself

    BUG-64f4ae8bfccbbe3ffa6ec7ce916785b2cb0e4bb2d6bbb4b752a5b1d892fe2059-20251110151748Z-7744a34cb8adfa48
    
    # tailscale netcheck
    2025/11/10 10:20:07 portmap: monitor: gateway and self IP changed: gw=70.x.y.1 self=70.x.y.71
    
    Report:
    	* Time: 2025-11-10T15:20:08.06660394Z
    	* UDP: true
    	* IPv4: yes, 70.x.y.71:18704
    	* IPv6: yes, [2001:470:xxxx:yyyy::2]:15356
    	* MappingVariesByDestIP: false
    	* PortMapping:
    	* Nearest DERP: New York City
    	* DERP latency:
    		- nyc: 5.9ms   (New York City)
    		- iad: 10.7ms  (Ashburn)
    		- tor: 15.4ms  (Toronto)
    		- ord: 21.8ms  (Chicago)
    		- mia: 33.4ms  (Miami)
    		- den: 40.4ms  (Denver)
    		- dfw: 42.5ms  (Dallas)
    		- sea: 60.5ms  (Seattle)
    		- lax: 63.4ms  (Los Angeles)
    		- sfo: 66.7ms  (San Francisco)
    		- lhr: 72.6ms  (London)
    		- par: 76.2ms  (Paris)
    		- ams: 77.8ms  (Amsterdam)
    		- fra: 83.5ms  (Frankfurt)
    		- mad: 85.1ms  (Madrid)
    		- waw: 93.7ms  (Warsaw)
    		- nue: 95.6ms  (Nuremberg)
    		- hel: 96.7ms  (Helsinki)
    		- hnl: 109.7ms (Honolulu)
    		- sao: 115.6ms (São Paulo)
    		- tok: 160.5ms (Tokyo)
    		- dbi: 186.6ms (Dubai)
    		- hkg: 186.7ms (Hong Kong)
    		- syd: 199.5ms (Sydney)
    		- nai: 206.5ms (Nairobi)
    		- jnb: 221.2ms (Johannesburg)
    		- sin: 223.9ms (Singapore)
    		- blr: 233.3ms (Bangalore)
    
  24. changed the title [-]macOS: frequent `dns-forward-failing` error with warning in menubar icon[/-] [+]frequent `dns-forward-failing` error with warning in menubar icon (macOS, FreeBSD)[/+] on Nov 10, 2025
  25. luckman212 commented on Nov 12, 2025

    @luckman212
    Author

    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.

  26. luckman212 commented on Nov 14, 2025

    @luckman212
    Author

    I installed and am now testing Tailscale-1.91.85-macos.pkg

  27. luckman212 commented on Nov 15, 2025

    @luckman212
    Author

    Well, new menubar icon, but same old bug apparently

    BUG-ee42d157ab8ce6bbf56dd6cc4f79b83b4310b9571f2271bfb35c7294a331b9da-20251115030852Z-a4e2c5dc3cd1a191
    
    Image

    I collected an extended debug archive, and attached it to the internal bug.

  28. luckman212 commented on Dec 1, 2025

    @luckman212
    Author

    I found a reliable way to repro this. See #18101

    And now #18146

  29. luckman212 commented on Dec 6, 2025

    @luckman212
    Author

    Closing in favor of #18146

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

Metadata

Metadata

Assignees

Labels

OS-macosbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions