Skip to content

dns-forward-failing health warning appears even when performing valid DNS queries #18146

Closed

Description

@luckman212

✅ 2026-03-18 Update

Tailscale v1.96.2 (release) has fixed this issue.

⚠️ 2026-01-14 Update

This bug was closed, but it is not resolved. With MagicDNS disabled, any DNS query directed at the quad9 resolver causes the healthcheck to start failing after 15 seconds. Even though the menubar icon no longer shows the warning symbol, internally the status is still

$ tailscale status --json | jq -r '.Health'
[
  "Tailscale can't reach the configured DNS servers. Internet connectivity may be affected."
]

So, I've opened a new issue #18436 to track it.

Bug

With MagicDNS disabled, even just a single DNS query directed towards 100.100.100.100 will result in the healthcheck warning below, which appears and never goes away:

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

I've been reporting this bug since around March 2025. When I reported #18101, I originally thought the bug only occurred when invalid DNS queries were passed to 100.100.100.100. But, further testing (as in the repro script below) revealed that even valid, successful queries will trigger it.

Previous reports

there are also many other similar or identical reports e.g. #13520, #13461, #13235, #12244

Warnings that are shown

Menubar icon
Image
Main UI
Image
Debug window
Image

Steps to reproduce

This occurs when "MagicDNS" is not enabled on the client. I have a very simple and easy repro for it that I tested on a brand new macOS 26.1 virtual machine with nothing else done other than:

  1. Install macOS
  2. Log in
  3. Install Tailscale (tested with both release 1.90.9 and unstable 1.93.28)
  4. Join tailnet
  5. Configure settings as shown in the screenshot below
  6. Install the tailscale CLI tool (Settings → CLI integration)
  7. Run my tsbug (gist) zsh script which:
    • installs a DNS resolver override for your tailnet pointing at quad100
    • selects a random peer from your Tailnet
    • performs a DNS query of that peer using dscacheutil
    • pauses for 1 second
    • repeat

This reproduces the issue 100% of the time after 15 seconds. The bug occurs whether you use 8.8.8.8/1.1.1.1 as your DNS server, or the typical DHCP-assigned LAN server.

Steps to run repro script

Copy & paste the block below into a Terminal:

curl -Lso tsbug https://gist.github.com/luckman212/356dfc72396b838a055ec10d315b042b/raw && chmod +x tsbug
./tsbug

Screen Recordings

I made 2 screen recordings of this, one from the VM:

mtha2.mp4

And one from earlier on my physical Mac (before I created the repro script, but essentially the identical test). The terminal windows below are:

  • top: ping to 8.8.8.8 to show stable connectivity
  • middle, left: DNS lookup (dig) of tailscale.com to show working DNS
  • middle, right: tailscaled health status via tailscale status --json
  • bottom: repro script running sequential DNS queries of host in my tailnet
mtha1.mp4

Tailscale Settings used for reproduction

Image

OS

  • macOS 15.6.1, 26.1, 26.2
  • FreeBSD 16-CURRENT

Tailscale versions affected/confirmed

  • 1.95.4 unstable
  • 1.94.0 rc
  • 1.92.5 stable
  • all other prior versions (both stable and unstable) released since 2025-03

Activity

  1. luckman212 commented on Dec 6, 2025

    @luckman212
    Author

    ping @barnstar since you were listed as the assignee on the old bugreport of this same issue, and @nickoneill since you participated in past discussions as well.

    Happy to provide any further logs, device access or literally anything else to get this fixed. Thank you 🙏

  2. luckman212 commented on Dec 7, 2025

    @luckman212
    Author

    Here's some output from tailscale debug daemon-logs, executed just before triggering this failure:

    [logtap connected]
    dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    health(warnable=dns-forward-failing): error: Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    health: connectivity impacted; triggering captive portal detection
    gui: Adding health warning: dns-forward-failing
    DetectCaptivePortal(found=false)
    Received error: PollNetMap: unexpected EOF
    control: sockstats: trace "ControlClientAuto" was overwritten by another
    control: controlhttp: forcing port 443 dial due to recent noise dial
    control: netmap: got new dial plan from control
    
  3. luckman212 commented on Dec 9, 2025

    @luckman212
    Author

    In order to rule out this being caused by some odd setting in my Tailnet, I:

    • created a completely NEW Tailscale acocunt & tailnet
    • created 2 new macOS 15.6.1 VMs
    • installed Tailscale 1.90.9 pkg version on each of them
    • disabled MagicDNS in the app Settings (not on the Tailnet itself)
    • ran the tsbug script above

    The bug was easily reproduced.

  4. changed the title [-]dns-forward-failing health warning appears when performing simple non-failing DNS queries[/-] [+]dns-forward-failing health warning appears even when performing valid DNS queries[/+] on Dec 9, 2025
  5. self-assigned this
    on Dec 15, 2025
  6. nickoneill commented on Dec 15, 2025

    @nickoneill
    Contributor

    We'll suppress this healthcheck warning when magicdns is off in an upcoming release. I'll ping here when we have an unstable with this for you to check

  7. smonode commented on Jan 13, 2026

    @smonode

    Everyone, I'm experiencing the same behaviour in a slightly different scenario. Happy to share my insights as this might be related to this issue and could help figuring out the details.

    I'm using Tailscale on macOS parallel to iCloud Private Relay which works just fine (nowadays). The only issue on macOS is (in contrast to iOS where a single DNS pipeline is being used), that Safari seems not to use iCloud Private Relay for DNS resolution but only internet traffic.

    Long story short, many testings and research showed that this is due to the fact, that tailscale registers the search domain of my tailet for easy host name resolution. This lets macOS / Safari use the local DNS server instead of their ODoH implementation.

    The workaround is simple: Disable Tailscale MagicDNS in the macOS client and manually configure the tailet domain without using a search domain:

    sudo mkdir -p /etc/resolver
    sudo sh -c 'echo "nameserver 100.100.100.100" > /etc/resolver/tailXXXXXX.ts.net'
    sudo dscacheutil -flushcache
    sudo killall -HUP mDNSResponder
    

    This works like a charm with two downsides:

    • Always have to use FQDN instead of hostname (obviously)
    • The warning dns-forward-failing is being displayed in the macOS menu bar

    It would be great to see an option in Tailscale (either globally or in the client) not to use a search domain (in favour of enabling DNS resolution through iCloud Private Relay).

    ... and of course the dns-forward-failing error bugs me as everything is working just fine.

    For reference:

    • macOS 26.2 (25C56)
    • Tailscale App Store version (1.92.3)
    • Safari Version 26.2 (21623.1.14.11.9)
  8. luckman212 commented on Jan 13, 2026

    @luckman212
    Author

    Greetings @swehrli — nice to finally find another person on the planet who is affected by this. It was getting pretty lonely in here!

    Looks like as I was typing this @barnstar closed it. Don't see the commit yet so I guess it's an internal fix that hopefully shows up in unstable shortly.

    As far as the drawback of "always have to use FQDN" instead of just ping harry etc, my workaround for that is using /etc/hosts where you can define whatever custom hostnames you want and point them at your Tailnet devices.

    Here's a 1-liner to automatically generate entries for all devices in your tailnet, the output of which you can copy+paste into /etc/hosts

    tailscale status --json | jq -r '.Peer | map(select(.HostName!="funnel-ingress-node")) | sort_by(.HostName)[] | "\(.TailscaleIPs[0])\t\(.HostName|ascii_downcase)"'
    
  9. luckman212 commented on Jan 15, 2026

    @luckman212
    Author

    @barnstar Thanks for the progress, but this isn't quite solved.

    I installed 1.94.0 rc and while the menubar icon no longer shows the warning, the healthcheck is still "failing" according to Tailscale's internal status:

    $ tailscale status --json | jq -r '.Health'
    [
      "Tailscale can't reach the configured DNS servers. Internet connectivity may be affected."
    ]
    
    $ tsbug
    elapsed: [  0s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  1s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  2s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  3s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  4s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  5s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  6s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  7s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  8s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [  9s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [ 10s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [ 11s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [ 12s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    elapsed: [ 14s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    elapsed: [ 15s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    elapsed: [ 16s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    elapsed: [ 17s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    elapsed: [ 18s]  querying pdm.yak-stargazer.ts.net using dscacheutil: ip_address: 100.69.153.96
    ^C
    
  10. nickoneill commented on Jan 15, 2026

    @nickoneill
    Contributor

    @luckman212 We made a decision to suppress the health warning in the UI when magicDNS is off as opposed to adjusting the triggers for the health warning itself (imo the warning is reporting correctly, if you're not using magicDNS then resolving against 100x4 has no meaningful response). Does this configuration not resolve your needs?

  11. luckman212 commented on Jan 15, 2026

    @luckman212
    Author

    Thanks but no, this does not resolve this issue @barnstar @nickoneill

    I definitely do have MagicDNS enabled for my Tailnet. What I am NOT using is the "Use Tailscale DNS" setting below

    Image

    Instead, I'm routing requests for *.ts.net to 100.100.100.100 using a DNS override at /etc/resolver/yak-stargazer.ts.net, the contents of which are

    nameserver 100.100.100.100
    
  12. luckman212 commented on Jan 16, 2026

    @luckman212
    Author

    @nickoneill @barnstar

    I drew a rough flowchart of what the DNS healthcheck should be doing in my mind. I'm in the middle of a busy day so definitely could be errors in this logic but I wanted to put this thought down:

    Image
  13. lmagyar commented on Jan 18, 2026

    @lmagyar
    Contributor

    To add insult to the injury, this SERVFAIL is "provoked" by Tailscale itself in each hour when accept_dns is disabled!

    I've made some experiment, I've put a dnsmasq proxy in front of 100.100.100.100, plus with iptables black magic any query directed to 100.100.100.100 went through this proxy, and there were nothing directed to 100.100.100.100 (nothing logged by the dnsmasq proxy), but in each hour there were these lines in the logs:

    2026/01/18 08:44:31 [RATELIMIT] format("dns: resolver: forward: no upstream resolvers set, returning SERVFAIL") (1 dropped)
    2026/01/18 08:44:31 dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    2026/01/18 08:44:31 dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    2026/01/18 08:44:31 dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    2026/01/18 08:44:31 dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    2026/01/18 08:44:31 dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    2026/01/18 08:44:31 [RATELIMIT] format("dns: resolver: forward: no upstream resolvers set, returning SERVFAIL")
    

    I've tried to search for (in my LAN routers logs), what TS queried at this time (I assume after 100.100.100.100 weren't able to answer, the query, it went through the normal OS resolv.conf "path"), but couldn't figure out.

    TLDR: Without any external query, when accept_dns is disabled, TS "provokes" these log lines and health state on it's own in each hour also.

  14. zapovit commented on Jan 22, 2026

    @zapovit

    I am also facing this issue for some weeks now with a Tailnet client who acts as DNS server for the rest of the mesh network.

    Since I own the DNS server I am able to confirm that the queries are coming through fine. The DNS server does not accept Tailscale DNS settings for what I hope are obvious reasons. The next time I notice it I will generate a bug report ID and paste it here.

  15. zapovit commented on Jan 25, 2026

    @zapovit

    Captured two bug id's today while receiving this bunk "dns unreachable" message...

    • bug report id from client with --accept-dns=true set on Tailscale dns server: BUG-32e299da915cca24c753fded6fc0578ff86cb68cc53a328dbed52ebec0dd3528-20260125010818Z-2d50a5aa98313666
    • bug report id from client with --accept-dns=false set on Tailscale dns server: BUG-32e299da915cca24c753fded6fc0578ff86cb68cc53a328dbed52ebec0dd3528-20260125034636Z-c240a1de9ee50a0e

    Therefore I am not sure accept-dns is implicated. Or I just happen to have a misconfiguration that surfaces this message ~ 1 hour after connecting to the tailnet. To reiterate, dns queries are being received by my tailnet dns server without issue, no immediately obvious network issues observed.

    Regards,
    zapovit

  16. luckman212 commented on Jan 25, 2026

    @luckman212
    Author

    @zapovit this issue is closed, please continue at #18436 - although I don't know if there's anything more to add. Tailscale devs know about the issue now and I think we just have to wait for a fix.

  17. zapovit commented on Jan 25, 2026

    @zapovit

    Thanks for the heads up, and thanks for pursuing this this bug for so long!

  18. zapovit commented on Apr 24, 2026

    @zapovit

    @barnstar it seems the fix is not actually working in the case of specifying a tailnet client as a DNS server...

    Image Image
  19. wickedyoda commented on Jul 1, 2026

    @wickedyoda

    Still not working, constantly getting this on my pixel 9xl phone and macbook mini. Neither are DNS servers, but just clients.

  20. zapovit commented on Jul 1, 2026

    @zapovit

    Same here but I do run my own dns server. I am also getting the odd network hang now. It's a shame this is broken because it seems like an obvious configuration.

    BUG-140fb98f0d426919f1567554f1e19571faa6e69d2fd7ce34a2172a23e76291b7-20260620014441Z-3ac25f9daa5cc87f

  21. eddiem5 commented on Jul 25, 2026

    @eddiem5

    I ran into what might be a related root cause while running Pi-hole/unbound as my tailnet's DNS server (configured via "Override DNS servers" / Global Nameservers in the admin console — a plain custom resolver, not Tailscale's own MagicDNS backend as the actual upstream).

    Symptom: one of my nodes was periodically tripping Pi-hole's built-in per-client rate limiter (1000 queries/60s). Looking at the query log showed a very specific pattern: an AAAA query for the node's own hostname (both the bare form, e.g. my-node, and the .lan-qualified form, e.g. my-node.lan) arriving every exactly 10 seconds, indefinitely, and always failing (NXDOMAIN/NODATA) — because Pi-hole (a plain custom DNS server with no built-in knowledge of tailnet device names) had no record for that hostname.

    Root cause, confirmed via strace: I attached strace -f -e trace=network across every long-lived process on the box, and correlated stray thread/child-process IDs back to their owning process via /proc/<pid>/status (Tgid/PPid). This confirmed tailscaled itself (PID matched directly in one capture, plus short-lived child processes it spawns for others) is the one issuing this query, sent directly to the configured upstream DNS server (in my case 100.104.180.26:53, my Pi-hole box) — not any application running on the node.

    The fix, and why it points at a gap: once I added a manual Local DNS Record on Pi-hole mapping the node's Tailscale IPv6 address to its own hostname (both the bare and .lan-qualified forms), the exact same query started resolving successfully (reply=IP) instead of failing — same 10-second cadence, just now succeeding. So my fix was simple, but it suggests: if a tailnet is configured with a custom override DNS server that isn't Tailscale-aware, tailscaled's own periodic self-check query for the node's own hostname has no way to succeed unless the admin manually adds that mapping on the custom server — which isn't documented anywhere I could find, and isn't something an admin would think to add since every other domain resolves fine through that same server.

    This might explain part of why dns-forward-failing (or the general DNS health signal) behaves inconsistently for people running custom upstream DNS: the check itself depends on a record most custom DNS setups won't have, through no fault of the actual DNS forwarding path.

    Environment:

    • tailscaled 1.98.9 (4fb758c39ae5b208b974af14ba6bc896a250394c)
    • Linux (Raspberry Pi OS / Debian, aarch64)
    • Custom DNS server: Pi-hole Core v6.4.3 + unbound (recursive resolver), reached via Tailscale's "Override DNS servers" global nameserver setting

    Happy to share the exact strace output / Pi-hole query log excerpts if useful for reproducing.

  22. jedinjapan commented on Aug 6, 2026

    @jedinjapan

    The fix, and why it points at a gap: once I added a manual Local DNS Record on Pi-hole mapping the node's Tailscale IPv6 address to its own hostname (both the bare and .lan-qualified forms), the exact same query started resolving successfully (reply=IP) instead of failing — same 10-second cadence, just now succeeding. So my fix was simple, but it suggests: if a tailnet is configured with a custom override DNS server that isn't Tailscale-aware, tailscaled's own periodic self-check query for the node's own hostname has no way to succeed unless the admin manually adds that mapping on the custom server — which isn't documented anywhere I could find, and isn't something an admin would think to add since every other domain resolves fine through that same server.

    This might explain part of why dns-forward-failing (or the general DNS health signal) behaves inconsistently for people running custom upstream DNS: the check itself depends on a record most custom DNS setups won't have, through no fault of the actual DNS forwarding path.

    This is absolutely brilliant work and I've implemented this possible fix on my Pi-hole DNS resolver as well. I'll be doing some spot testing to see if I can reproduce the error next time I'm on a remote network, as this issue doesn't occur for me when on the home network.

    Hopefully Tailscale can flag the node's machine name self-health check to be disabled when the user has elected to use a custom DNS resolver, or add similar detail to your report here to the custom DNS section of the documentation.

  23. zapovit commented on Aug 8, 2026

    @zapovit

    I don't think the issue of tailscaled looking up the node's own hostname is relevant for the following reason: I use 100.100.100.100 as a backend for all *.ts.net dns lookups. Still, the issue persists.

    I also run a healthcheck on the tailscale container per official examples (sidecar configuration), upon which the dns container (adguard home) depends. Adguard home, in my installation, uses the tailscale container's network interface directly (i.e. not 0.0.0.0 but 100.xxx.xxx.xxx).

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions