You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use mobile data before enabling Tailscale, DNS is broken.
Could you generate a Bugreport when using mobile data and enabling Tailscale, when DNS is broken? Ideally, generate the bugreport immediately after enabling Tailscale. That gives us a specific point in the telemetry to look at.
If I use mobile data before enabling Tailscale, DNS is broken.
Could you generate a Bugreport when using mobile data and enabling Tailscale, when DNS is broken? Ideally, generate the bugreport immediately after enabling Tailscale. That gives us a specific point in the telemetry to look at.
Enabling "Override local DNS" does fix the DNS issue for my Android device, but it would also override the DNS setting for other devices. Is it possible to enable this setting for one specific device instead of a whole tailnet?
Reacted by hkpanchani, Oliver Marshall, Pan, Miika Henttonen, ezek1el and Shashwat Kumar
Is there a fix for this? I don't have deep knowledge what's going on, but anyway, when I disconnect from wifi, my internet (websites etc) no longer works.
I have a similar problem on my windows machine - connections are very slow, as it looks like it is forcing some usual traffic through the tunnel.
I have this same issue, have to stop and restart Tailscale to resolve. The issue seems to only happen occasionally when moving between networks, but not always. Most commonly I notice it when I've left my home wifi and then attempt to connect to the Internet from mobile networks like LTE.
Reacted by Charlton Stanley, soulflyman, Bryan Roessler, Alejandro Angulo, jade and fsnuxer
Since the issue is related with the DNS, I've disabled the MagicDNS as a temporary workaround, then it seems the tailscale will recover from any situation(Wifi -> cellular regardless whether I keep the connection or not).
I've been using Tailscale on Android for a couple of weeks now and didn't encounter this problem until I switched to a different wireless carrier. With my previous carrier, I left Tailscale connected 24/7 without issue but after switching to another carrier a few days ago, the DNS will not resolve domain names even with Private DNS set to off or automatic whilst using my cellular connection.
Disabling MagicDNS or enabling the local DNS override both solve the issue for me. For me, it makes the most sense to disable MagicDNS, and in this configuration I can still use a Private DNS on Android without issue.
I think I've got the same issue (Pixel 7a, Android 14), always reproducible: switching from wifi in my home network to cellular breaks resolving hostnames with MagicDNS enabled. Toggling Tailscale or briefly switching to Flight Mode resolves it. Very annoying.
I've made a bugreport directly after DNS broke: BUG-0a78adbf819fc5a54b46874b03ec6d7ea87b01c55ec2bcde7cf753dd3c3f8b32-20240202191158Z-68b850446d0a04cf
When using my tab of Android 13 with only the WIFI network, the DNS cannot be resolved, while directly using the IP is fine.
After disabling the MagicDNS, the DNS issue is resolved.
It's weird that there is no problem on my phone, which is based on Android 12.
Activity
Akeboshiwind commentedon Apr 29, 2023
I've got the same issue I think.
I've only reproduced it by navigating in Firefox though.
I'm on Tailscale version 1.38.2.
When I disable MagicDNS I'm able to navigate to new URLs again.
maple3142 commentedon Apr 29, 2023
I found some new info:
If I switched to wifi before enabling Tailscale, DNS works.
If I use mobile data before enabling Tailscale, DNS is broken.
DentonGentry commentedon Apr 29, 2023
Could you generate a Bugreport when using mobile data and enabling Tailscale, when DNS is broken? Ideally, generate the bugreport immediately after enabling Tailscale. That gives us a specific point in the telemetry to look at.
maple3142 commentedon Apr 30, 2023
DentonGentry commentedon Apr 30, 2023
The tailnet in its https://login.tailscale.com/admin/dns has "Override local DNS" turned off, which means Tailscale is supposed to find the DNS servers which were already present in the underlying OS and use those.
Android makes this difficult: starting in Android 8, apps are not allowed to retrieve the DNS server properties like
net.dns1ornet.dns4. We instead implement a series of mechanisms in https://github.com/tailscale/tailscale-android/blob/main/android/src/main/java/com/tailscale/ipn/DnsConfig.javaShortly before the bugreport while on mobile data, all of those mechanisms fail to find a DNS server:
Earlier, on Wi-fi, it did find the DNS servers in use:
One way to work around the issue would be to set "Override local DNS" in https://login.tailscale.com/admin/dns
maple3142 commentedon May 1, 2023
Thanks for replying!
Enabling "Override local DNS" does fix the DNS issue for my Android device, but it would also override the DNS setting for other devices. Is it possible to enable this setting for one specific device instead of a whole tailnet?
cmd/tailscale: use Google as DNS of last resort
8 remaining items
LinAGKar commentedon Jul 15, 2023
That won't help with connecting to things on the internet
elektrinis commentedon Sep 26, 2023
Is there a fix for this? I don't have deep knowledge what's going on, but anyway, when I disconnect from wifi, my internet (websites etc) no longer works.
I have a similar problem on my windows machine - connections are very slow, as it looks like it is forcing some usual traffic through the tunnel.
mishley commentedon Nov 10, 2023
I have this same issue, have to stop and restart Tailscale to resolve. The issue seems to only happen occasionally when moving between networks, but not always. Most commonly I notice it when I've left my home wifi and then attempt to connect to the Internet from mobile networks like LTE.
lxdlam commentedon Dec 23, 2023
Since the issue is related with the DNS, I've disabled the MagicDNS as a temporary workaround, then it seems the tailscale will recover from any situation(Wifi -> cellular regardless whether I keep the connection or not).
versita commentedon Dec 29, 2023
I've been using Tailscale on Android for a couple of weeks now and didn't encounter this problem until I switched to a different wireless carrier. With my previous carrier, I left Tailscale connected 24/7 without issue but after switching to another carrier a few days ago, the DNS will not resolve domain names even with Private DNS set to off or automatic whilst using my cellular connection.
Disabling MagicDNS or enabling the local DNS override both solve the issue for me. For me, it makes the most sense to disable MagicDNS, and in this configuration I can still use a Private DNS on Android without issue.
fd0 commentedon Feb 2, 2024
I think I've got the same issue (Pixel 7a, Android 14), always reproducible: switching from wifi in my home network to cellular breaks resolving hostnames with MagicDNS enabled. Toggling Tailscale or briefly switching to Flight Mode resolves it. Very annoying.
I've made a bugreport directly after DNS broke: BUG-0a78adbf819fc5a54b46874b03ec6d7ea87b01c55ec2bcde7cf753dd3c3f8b32-20240202191158Z-68b850446d0a04cf
Does that help? Is there anything else I can do?
kansson commentedon Mar 24, 2024
Same problem but switching from GitHub to Google account worked.
46319943 commentedon Mar 29, 2024
When using my tab of Android 13 with only the WIFI network, the DNS cannot be resolved, while directly using the IP is fine.
After disabling the MagicDNS, the DNS issue is resolved.
It's weird that there is no problem on my phone, which is based on Android 12.
agottardo commentedon Apr 25, 2024
@maple3142 @46319943 @hanssonduck @fd0 Does this issue still occur on the latest beta version of the Android app?
Please attach a bug report identifier if so, we cannot identify the root cause without one.
NimecShady commentedon Apr 26, 2024
I have been experiencing the internet drop after switching from Wifi to Cellular as well. Will give the beta app a try tomorrow and see how it does.
maple3142 commentedon Apr 26, 2024
I am testing it on latest stable version using Cellular network with
Override local DNSturned off, and it currently works.lxdlam commentedon Apr 26, 2024
It works as expected now, even after I re-enabled MagicDNS.
agottardo commentedon Apr 26, 2024
Thanks for the feedback. Please keep opening issues for any other problem with the beta app, it's much appreciated! :)
cmd/tailscale: use Google as DNS of last resort