Skip to content

DNS issue #13235

Closed
Closed

Description

What is the issue?

I have set up Tailscale on Raspberry Pi 5. It runs well but I am concerned about this in my log:
health(warnable=dns-forward-failing): error: Tailscale can't reach the configured DNS servers. Internet connectivity may be affec>
Anyone else seen this and know how to fix it? Is it a bug or is it on my side? I'm running everything with defaults.

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

No response

OS version

No response

Tailscale version

No response

Other software

No response

Bug report

No response

Activity

  1. ghost added
    bug
    on Aug 22, 2024
  2. karolgrudzinski commented on Aug 23, 2024

    @karolgrudzinski

    Something happens with the latest version because tailscale hijacks /etc/resolv.conf making it regular file and not a symlink to /var/run/systemd/resolve/stub-resolv.conf (yes, I've read https://tailscale.com/kb/1235/resolv-conf) and sets 100.100.100.100 as the only DNS server even though I have systemd-resolved running. The solution is to restart systemd-resolved manually and restore symlink.

  3. irbekrm commented on Aug 23, 2024

    @irbekrm
    Contributor

    Thank you for reporting the issue.

    Could you folks confirm:

    • in what version you observe the issue
    • from what version you upgraded
    • the OS you're on

    Would it also be possible to produce a bugreport?

    @chillout23 is it just the message in your logs or do you experience any actual connectivity issues?

    On Ubuntu 22.04, it seems that upgrade 1.72.0 -> 1.72.1 can result in the can't reach the configured DNS servers health check warning, however I can still connect to other tailnet nodes. /etc/resolv.conf remains a symlink as expected for me.
    Steps to reproduce:

    • upgrade from Tailscale 1.72.0 -> 1.72.1
      sudo apt-get update && sudo apt-get install tailscale=1.72.1
    • sudo tailscale down
    • sudo tailscale up
    • obseve the health check warning:
    $ tailscale status
    ...
    # Health check:
    #     - Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    
    

    It seems like the warning remains present, but I am not observing any issues with connectivity either to the Internet or other tailnet nodes, so perhaps we're just not clearing the warning in some edge case? (cc @barnstar )

  4. irbekrm commented on Aug 23, 2024

    @irbekrm
    Contributor

    Thank you for the additonal info 🙏🏼

    It's strange, however I have no connectivity issues and DNS works fine, including Magic DNS.

    I think this might be just an issue of a lingering warning

  5. sevenrats commented on Aug 27, 2024

    @sevenrats

    if you are on linux and "tailscale is making weird dns things happen" a good idea is to just look at the contents of resolv.conf. often times that will make the problem obvious.

  6. joelgriffiths commented on Aug 30, 2024

    @joelgriffiths

    I have a developer getting this same warning when trying to add dns entries to docker's daemon.json file for DNS 100.100.100.100:

    # Health check:
    #     - Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    

    We were trying to add the DNS entries because docker images are trying to use the non-tailscale DNS to resolve internal container registries. Since we have the same name resolving externally and internally for different IP addresses (don't ask me why), containers are getting the external IP instead of the internal IP.

    Also, the resolv.conf if not getting updated. It is staying at the default ArchLinux nameserver 127.0.0.53 using a symlink.

    1.72.1

  7. stark1tty commented on Oct 7, 2024

    @stark1tty

    I have also suddenly started to get this warning on Ubuntu and resolution has been an absolute nightmare to fix.

  8. leogaggl commented on Dec 4, 2024

    @leogaggl

    I have also suddenly started to get this warning on Ubuntu and resolution has been an absolute nightmare to fix.

    I can also confirm this has become an issue for me on Ubuntu as well.

  9. chan-a commented on Dec 7, 2024

    @chan-a

    I have also suddenly started to get this warning on Ubuntu and resolution has been an absolute nightmare to fix.

    I can also confirm this has become an issue for me on Ubuntu as well.

    Same issue here on Ubuntu 24

    a@NAS:~$ tailscale status
    
    # Health check:
    #     - exit status 1
    #     - Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    #     - exit status 1
    
    a@NAS:~$ nslookup google.com 100.100.100.100
    ;; Got SERVFAIL reply from 100.100.100.100
    Server:		100.100.100.100
    Address:	100.100.100.100#53
    
    ** server can't find google.com: SERVFAIL
    

    I have set Google DNS as an option in the admin panel. I have not ticked "Override local DNS"

    To have working DNS on my server, I have had to manually edit /etc/resolv.conf to not use 100.100.100.100

    Edit:
    I seem to have fixed it by recreating the symlink to systemd-resolved

    sudo rm /etc/resolv.conf
    sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
    
  10. mug-book-droid commented on Dec 19, 2024

    @mug-book-droid

    Hey, same problem here on Ubuntu Server 22.04.5, managing roughly 400+ machines, it's only become an issue in the last couple weeks?
    Here's some journal output from an offending unit.

    Dec 19 09:44:55 EXAMPLE tailscaled[2908312]: netcheck: DetectCaptivePortal(found=false)                                                                                                   
    Dec 19 09:44:55 EXAMPLE tailscaled[2908312]: magicsock: endpoints changed: 82.132.213.37:18985 (stun), 82.132.213.37:21842 (stun), 82.132.213.37:41641 (stun4localport), 82.132.213.37:207>
    Dec 19 09:45:51 EXAMPLE tailscaled[2908312]: magicsock: [0xc00026e140] derp.Recv(derp-8): derp.Recv: read tcp4 10.67.167.32:49890->176.58.88.183:443: i/o timeout                          
    Dec 19 09:45:51 EXAMPLE tailscaled[2908312]: derphttp.Client.Recv: connecting to derp-8 (lhr)                                                                                             
    Dec 19 09:45:51 EXAMPLE tailscaled[2908312]: magicsock: derp-8 connected; connGen=2                                                                                                       
    Dec 19 09:45:51 EXAMPLE tailscaled[2908312]: health(warnable=no-derp-connection): ok                                                                                                      
    
    Dec 19 09:45:52 EXAMPLE tailscaled[2908312]: magicsock: adding connection to derp-18 for [gV4Ie]                                                                                          
    Dec 19 09:45:52 EXAMPLE tailscaled[2908312]: magicsock: 2 active derp conns: derp-8=cr15m0s,wr2m0s derp-18=cr0s,wr0s                                                                       
    Dec 19 09:45:52 EXAMPLE tailscaled[2908312]: derphttp.Client.Recv: connecting to derp-18 (par)                                                                                             
    Dec 19 09:45:52 EXAMPLE tailscaled[2908312]: magicsock: derp-18 connected; connGen=1                                                                                                      
    

    The odd thing is that it says it's connected but it isn't reachable via tailscale. I know that the units have a working connection because otherwise I wouldn't be able to ssh into them.

  11. clone545 commented on Dec 19, 2024

    @clone545

    I've also been having this issue lately starting in the last 3 days or so. Post on Reddit with more info here

    Journal:

    Dec 19 13:32:40 nuci5 tailscaled[10813]: wgengine: Reconfig: configuring userspace WireGuard config (with 1/13 peers)
    Dec 19 13:32:40 nuci5 tailscaled[10813]: wgengine: Reconfig: configuring router
    Dec 19 13:32:40 nuci5 tailscaled[10813]: wgengine: Reconfig: configuring DNS
    Dec 19 13:32:40 nuci5 tailscaled[10813]: dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:16}
    Dec 19 13:32:40 nuci5 tailscaled[10813]: dns: Resolvercfg: {Routes:{} Hosts:16 LocalDomains:[]}
    Dec 19 13:32:40 nuci5 tailscaled[10813]: dns: OScfg: {}
    Dec 19 13:32:41 nuci5 tailscaled[10813]: magicsock: disco: node [CIe03] d:6915d94617aca69e now using 192.168.86.95:41641 mtu=1360 tx=b9af138aef4a
    Dec 19 13:32:51 nuci5 tailscaled[10813]: wgengine: idle peer [3OlR+] now active, reconfiguring WireGuard
    Dec 19 13:32:51 nuci5 tailscaled[10813]: wgengine: Reconfig: configuring userspace WireGuard config (with 2/13 peers)
    Dec 19 13:32:51 nuci5 tailscaled[10813]: magicsock: disco: node [3OlR+] d:4bf3a94b93b0002c now using 192.168.86.50:44282 mtu=1360 tx=808de43bfeac
    Dec 19 13:33:04 nuci5 tailscaled[10813]: dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    Dec 19 13:33:04 nuci5 tailscaled[10813]: dns: DNS resolution failed due to missing upstream nameservers.  Recompiling DNS configuration.
    Dec 19 13:33:04 nuci5 tailscaled[10813]: dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:16}
    Dec 19 13:33:04 nuci5 tailscaled[10813]: dns: Resolvercfg: {Routes:{} Hosts:16 LocalDomains:[]}
    Dec 19 13:33:04 nuci5 tailscaled[10813]: dns: OScfg: {}
    Dec 19 13:33:19 nuci5 tailscaled[10813]: health(warnable=dns-forward-failing): error: Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    Dec 19 13:33:19 nuci5 tailscaled[10813]: health: connectivity impacted; triggering captive portal detection
    Dec 19 13:33:26 nuci5 tailscaled[10813]: DetectCaptivePortal(found=false)
    Dec 19 13:33:54 nuci5 tailscaled[10813]: dns: resolver: forward: no upstream resolvers set, returning SERVFAIL
    Dec 19 13:33:54 nuci5 tailscaled[10813]: dns: DNS resolution failed due to missing upstream nameservers.  Recompiling DNS configuration.
    Dec 19 13:33:54 nuci5 tailscaled[10813]: dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:16}
    Dec 19 13:33:54 nuci5 tailscaled[10813]: dns: Resolvercfg: {Routes:{} Hosts:16 LocalDomains:[]}
    Dec 19 13:33:54 nuci5 tailscaled[10813]: dns: OScfg: {}
    Dec 19 13:33:54 nuci5 tailscaled[10813]: dns: resolver: forward: no upstream resolvers set, returning SERVFAIL```
    
  12. dftzippo commented on Jan 18, 2025

    @dftzippo

    Hi, I also have this problem, Tailscale definitely does not resolve DNS.

    I am using Ubuntu Server 22.04.5 LTS with Tailscale 1.78.1

  13. 14 remaining items

  14. vuxuanhungg commented on Dec 6, 2025

    @vuxuanhungg

    I have this issue on Android for months now, noticeably if not on my home network. Restarting the app only fixes it for a while and it will recur. I don't even configured Global Nameservers in admin panel.

  15. ksylvan commented on Dec 13, 2025

    @ksylvan

    I'm having the same issue on two different Debian/Ubuntu-based systems, both
    running the latest tailscale:

    lsb_release -a
    No LSB modules are available.
    Distributor ID:	Linuxmint
    Description:	Linux Mint 22.2
    Release:	22.2
    Codename:	zara
    tailscale version
    1.92.1
      tailscale commit: fb55d39055de6bb41a76cefebc923f2a7fe3dfec
      long version: 1.92.1-tfb55d3905-g9ac7fadc0
      other commit: 9ac7fadc0bb77ed38a4c7ca463af06e21002bbdb
      go version: go1.25.5
    tailscale status 2>&1 | grep -A5 "Health"
    # Health check:
    #     - Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    

    And another:

    lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 25.10
    Release:	25.10
    Codename:	questing
    tailscale version
    1.92.1
      tailscale commit: fb55d39055de6bb41a76cefebc923f2a7fe3dfec
      long version: 1.92.1-tfb55d3905-g9ac7fadc0
      other commit: 9ac7fadc0bb77ed38a4c7ca463af06e21002bbdb
      go version: go1.25.5
    # Health check:
    #     - Tailscale can't reach the configured DNS servers. Internet connectivity may be affected.
    
  16. NazarkinRoman commented on Dec 27, 2025

    @NazarkinRoman

    Experiencing same thing when --accept-dns=false. dig google.com @100.100.100.100 returns SERVFAIL and this error appears in the log: dns: resolver: forward: no upstream resolvers set, returning SERVFAIL.

    Once --accept-dns is true, issue disappears.

    No LSB modules are available.
    Distributor ID:	Debian
    Description:	Debian GNU/Linux 12 (bookworm)
    Release:	12
    Codename:	bookworm
    
    1.92.1
      tailscale commit: fb55d39055de6bb41a76cefebc923f2a7fe3dfec
      long version: 1.92.1-tfb55d3905-g9ac7fadc0
      other commit: 9ac7fadc0bb77ed38a4c7ca463af06e21002bbdb
      go version: go1.25.5
    
  17. luckman212 commented on Dec 27, 2025

    @luckman212

    I'd like to refer you to #18146

  18. sslyxhz commented on Feb 27, 2026

    @sslyxhz

    Just had the same issue on same version:

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 24.04.2 LTS
    Release: 24.04
    Codename: noble

    tailscale --version
    1.84.0
    tailscale commit: 160c11f37850a7e0a50f5efec48cacc333e69a00
    other commit: bf604245899ff9c164ad9236bd52faab03a60faa
    go version: go1.24.2

    Same DNS issue led me here. Restarting tailscaled.service fixes it, for a short period.

    Can confirm sudo systemctl restart tailscaled.service followed by a new sudo tailscale up restored connectivity to me, thanks! Not sure for how long it will last though.

    It works for me ! thanks a lot!

  19. the-lab-guy commented on May 7, 2026

    @the-lab-guy

    I'd like to refer you to #18146

    not fixed on Android. Am running 1.96.4.

  20. added theissue type on Jun 15, 2026
  21. added
    OS-macos
    OS-ios
    OS-android
    on Jun 15, 2026
  22. self-assigned this
    on Nov 6, 2026
  23. bcreane commented on Nov 6, 2026

    @bcreane
    Contributor

    Closing this one out. The original report was a single log line with no connectivity impact and no version or steps. Since then the thread has collected several unrelated causes behind the same "Tailscale can't reach the configured DNS servers" warning. Each of those has been tracked and fixed on its own issue:

    On a current release the warning only appears when Tailscale has upstream resolvers configured and gets no answer from them, and it clears on the next successful query. If you still see it on v1.100.0 or later, please open a new issue with a bug report (tailscale bugreport) and the output of tailscale dns status, so we can look at that setup on its own.

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

Metadata

Metadata

Assignees

Labels

OS-androidOS-iosOS-linuxOS-macosbug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions