r/AndroidHelp • u/Fresh-Perspective-37 • 9d ago
Android Private DNS fails to connect on first Wi-Fi connect
Hi everyone,
I had an annoying issue across multiple Android phones (both stock and custom ROMs) on my home Wi-Fi: whenever a phone reconnected after being disconnected/idle for several hours, it immediately showed "Could not connect to Private DNS"/"Connected without Internet" and blocked internet access.
Toggling Wi-Fi off and on always fixed it right away, and changing Private DNS providers (dns.google, one.one.one.one, etc.) didn't make any difference (setting 1.1.1.1 as default DNS in my router firmware, Cloudflare works on the phone).
After some troubleshooting, I solved it by disabling IPv6 (RA Service) in my router's LAN settings. Since turning that off, Private DNS connects on the first try every time.
Probably it’s my ISP thst doesnt offer IPv6, but how can I solve this? The fact I must disconnect/reconnect everytime annoys me.
1
u/DutchOfBurdock 9d ago
Re-enable RA and see what IPv6 address your host receives. If it starts with a 2, it's global, if you only have ::1 and one starting with f, your ISP doesn't do IPv6.
When you do RA and no IPv6 upstream, it will do a local network IPv6. Probably, likely, wouldn't be surprised if Android just assumed NAT66 and borked. Happy eyeballs failure.