Skip to content

dns-forward-failing warning is inaccurate and never self-corrects - Make Tailscale Healthy Again #18101

Closed

Description

@luckman212

⚠️ see #18146 for the latest info about this bug


this is an update of my bugreport at #15389, which is so old that as of 2025-12-01, is buried 56 pages deep likely never to be seen again


I Am Human

Despite the occasional emoji, and carefully written/formatted text, I assure you that this issue was not AI-generated. I resisted the urge to use an em-dash.

Summary

Tailscale has a builtin healthcheck that monitors the failure rate of DNS queries routed through its native resolver (100.100.100.100 aka quad9).

If that failure percentage crosses above a certain (unknown) watermark AND the node is configured with --accept-dns=false, the following warning starts to appear in various places (menubar icon, tailscale status output etc):

Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.

That warning never self-corrects, even if conditions return to normal. The only way to clear it is to restart Tailscale or reboot the entire machine.

This has been tested and reproduced on several systems/platforms:

  • macOS 26.1 + Tailscale (pkg) 1.92.0
  • Debian 13 (Trixie) + Tailscale 1.90.9
  • pfSense 25.11 + Tailscale 1.90.6

Repro

I created a simple POC script that reliably reproduces this bug:

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

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

Image Image

Problems

I see 2 main problems here:

  • There is no log of WHAT queries failed (thus no way to troubleshoot or take corrective action e.g. fix DNS server)
  • Even after the "problem" is cleared, the health warning never resets. The only way to reset it is to toggle Tailscale off and back on, or do a full reboot

I have collected extensive debug logs, and am happy to provide them if requested. But, due to the simple repro I doubt that will be necessary.

Activity

  1. luckman212 commented on Dec 1, 2025

    @luckman212
    Author
    TSS-68644
    
  2. luckman212 commented on Dec 3, 2025

    @luckman212
    Author

    Here's the reference to the 15-second sliding window

    // dnsForwarderFailing should be raised when the forwarder is unable to reach the
    // upstream resolvers. This is a high severity warning as it results in "no internet".
    // This warning must be cleared when the forwarder is working again.
    //
    // We allow for 5 second grace period to ensure this is not raised for spurious errors
    // under the assumption that DNS queries are relatively frequent and a subsequent
    // successful query will clear any one-off errors.
    var dnsForwarderFailing = health.Register(&health.Warnable{
    Code: "dns-forward-failing",
    Title: "DNS unavailable",
    Severity: health.SeverityMedium,
    DependsOn: []*health.Warnable{health.NetworkStatusWarnable},
    Text: health.StaticMessage("Tailscale can't reach the configured DNS servers. Internet connectivity may be affected."),
    ImpactsConnectivity: true,
    TimeToVisible: 15 * time.Second,
    })

  3. luckman212 commented on Dec 3, 2025

    @luckman212
    Author

    And here is what I think may be the codepath that is never being hit, resulting in a "stuck" dns-forward-failing state:

    case responseChan <- packet{v, query.family, query.addr}:
    if f.verboseFwd {
    f.logf("response(%d, %v, %d) = %d, nil", fq.txid, typ, len(domain), len(v))
    }
    metricDNSFwdSuccess.Add(1)
    f.health.SetHealthy(dnsForwarderFailing)
    return nil
    }

    f.health.SetHealthy(dnsForwarderFailing) is never triggering (at least on my systems)

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions