Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private DNS on Android with Tailscale Breaks Internet #4252

Closed
gregg098 opened this issue Mar 21, 2022 · 7 comments
Closed

Private DNS on Android with Tailscale Breaks Internet #4252

gregg098 opened this issue Mar 21, 2022 · 7 comments

Comments

@gregg098
Copy link

What is the issue?

I have been testing out NextDNS for DNS services at home and on mobile devices. For my Tailscale setup, I also have MagicDNS hand out NextDNS DNS servers with force override set to ON. Now devices are connected to those DNS servers just by connecting to Tailscale.

I also tried adding the NextDNS server to my phone's Private DNS options. This works great until I connect to Tailscale. Then, all network connectivity stops and I get a pop up saying "Network has no internet access. Private DNS server cannot be accessed." I CAN connect by IP to other devices if on the same network, but DNS stops working, period.

If I disconnect from Tailscale OR change Private DNS to automatic, everything works again.

I tried connecting to a number of other VPN services (Home OpenVPN, Home Wireguard, Private Internet Access), all with full internet redirection turned on, and nothing broke on any of those.

I suspect Private DNS and Tailascale Magic DNS force override are fighting each other, so I'm not sure there is a fix. This does seem to be an issue that pops up on other forums for some VPN services, so definitely not entirely Tailscale, but I know you guys are clever at work arounds.

Steps to reproduce

On my Samsung Galaxy S21+, I went to the Private DNS settings and set "Private DNS provider hostname" to the address given by NextDNS for my account (xxxxxxx.dns.nextdns.io). Hit save.

Check internet - Works
Goto NextDNS website - Detects proper DNS settings being used.
Enable Tailscale - All DNS stops, get error messages mentioned above. Direct IP connections only.
Turn off Private DNS OR disconnect from Tailscale - everything works as expected.

Are there any recent changes that introduced the issue?

Did not used to have an Android Private DNS server setup. Used to be Automatic.

OS

Android

OS version

12

Tailscale version

1.23.53-t012098ec3-gb0f1428443

Bug report

BUG-8dd4ea6cea51806722166c345916f663b8e6bf9e64a82e4501f6d214ab034ce2-20220321232924Z-98551623d602e07c

@gregg098
Copy link
Author

Looks like this is already reported. Missed it on my first search.

#915

Can close.

@bluegizmo83
Copy link

bluegizmo83 commented Jan 3, 2024

I'm having this same issue as well. I have Private DNS enabled at all times on my Galaxy S23 Ultra, and as soon as I connect to Tailscale in the app I immediately lose internet connection. If I go into the phone settings and disable Private DNS before connecting to Tailscale, or disable it while Tailscale is already connected, the internet starts working again, but will immediately stop working if I re-enable Private DNS while Tailscale is connected.

@monitor22
Copy link

Is there any fix for this? Mobile data does not connect to interent while using NextDNS + Tailscale VPN.

@TinyWorkshopDesign
Copy link

TinyWorkshopDesign commented Feb 5, 2024

I have the same issue, no connection of I turn on private DNS while using tailacale.

@monitor22
Copy link

I have the same issue, no connection of I turn on private DNS while using tailacale.

Turn off MagicDns in your Tailscale dashboard, it worked for me if i use the ips and not the domain names

@TinyWorkshopDesign
Copy link

TinyWorkshopDesign commented Feb 6, 2024

I have the same issue, no connection of I turn on private DNS while using tailacale.

Turn off MagicDns in your Tailscale dashboard, it worked for me if i use the ips and not the domain names

Worked! :)

many many thanks

@DallasBelt
Copy link

DallasBelt commented Feb 27, 2024

Turn off MagicDns in your Tailscale dashboard, it worked for me if i use the ips and not the domain names

This gives me internet access, but the private DNS can't connect.

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

No branches or pull requests

6 participants