Fix the Android Private DNS error
"Private DNS server cannot be accessed" - Android notification text, shown after a Private DNS hostname is entered and the phone cannot reach it
Affects: Android 9 and later (Private DNS), including Samsung Galaxy devices
What this message means
This notification is Android telling you that the hostname set under Private DNS cannot be reached. Google's own developer documentation describes the mechanism: after you enter a hostname, Android sends DNS queries to that server over a secure channel, or marks the network as no internet access if it cannot reach the server [1]. The full notification usually reads something like Mobile network has no internet access: Private DNS server cannot be accessed, as one user's screenshot of the same text shows [3]. An independent breakdown of Android's network warnings lists the message with the meaning that your Private DNS setting points at a server this network cannot reach [4]. The message is not a fault in the network itself - Android is refusing to fall back to unencrypted lookups.
Fix it step by step
Cause 1: Wrong DNS address typed
The most common cause is simply a spelling problem. PIA's fix guide notes that even one incorrect character or extra space can stop Android from connecting to your DNS provider [2]. Three mistakes produce this exact error:
- Open Settings > Network & internet > Private DNS (on Samsung:
Connections > More connection settings > Private DNS).
- Tap the current Private DNS provider hostname entry.
- Re-type the hostname, matching your provider's documentation exactly - no
leading spaces, no trailing dot, no http:// prefix, and no IP address.
- Tap Save, then toggle Wi-Fi off and on.
If you pasted an IP address such as a Smart DNS address into this field, that is the problem itself: Private DNS takes a hostname only [1]. Those IP addresses belong in the static DNS fields of your Wi-Fi network - see Step 5 of the Android guide.
Cause 2: Your network blocks DNS-over-TLS
Some work, school or public Wi-Fi networks block DNS-over-TLS traffic, preventing Android from connecting to your chosen provider - PIA calls this out directly, along with cases where the ISP restricts the connections [2]. To test it, connect to a different network or to mobile data: if the error disappears, the original network was blocking the connection, and no setting on your phone will change that network's firewall.
Cause 3: A VPN or DNS app conflicts with Private DNS
PIA's guide explains that many VPNs route DNS through their own servers, and when both the VPN and Android's Private DNS try to manage lookups they can conflict [2]. Their recommended fix: if your VPN includes encrypted DNS, turn Private DNS off and rely on the VPN; if it does not, keep Private DNS enabled and check the VPN's own DNS settings for conflicts. A plain DNS changer app produces the same failure mode.
Cause 4: Your provider is down or does not offer DoT at all
PIA lists provider outages and maintenance as a further cause, and suggests checking the provider's status page [2]. There is a structural version of this problem for Smart DNS users: many Smart DNS services do not run a DNS-over-TLS service at all, so no hostname you enter will ever work. If your provider gave you two plain IP addresses and no hostname, this is the situation you are in.
If nothing helps
For Smart DNS specifically, the correct end state is Private DNS off: Unlocator instructs Android users to make sure Private DNS is turned off before setting their per-network DNS addresses, precisely because an active Private DNS hostname overrides the other DNS settings [5]. Set it to Off, enter your provider's addresses in the Wi-Fi network's static DNS fields, and the error disappears along with the source of the conflict. On a Samsung Galaxy you can also use the documented network reset under General management > Reset > Reset Wi-Fi and Bluetooth settings to clear all network configuration and start the setup fresh. If the notification returns on every network with a hostname from a major public resolver, restart the phone and check for a system update before assuming a hardware fault.
FAQ
Is the notification dangerous?
No. The Android Developers Blog explains that Android refuses to continue with insecure lookups when the secure channel fails, so the notification is the safety behavior working, not the network breaking. Resolve the cause and the message clears itself.
Why does the error appear even though the internet worked before?
Private DNS only becomes active when a hostname is configured under it. If you recently added a hostname - or switched networks, since some networks block the protocol - the phone now checks that service before every lookup.
Should I set Private DNS to Automatic instead of Off?
Automatic upgrades lookups to DNS-over-TLS only when the network supports it, which avoids the error on blocked networks. For Smart DNS users, though, the goal is for the per-network DNS fields to be used at all, so Off is the setting that matches this site's guides.
Setting up DNS on this device?
Open the setup guide → All Android phones & tablets (stock and Samsung Galaxy) guides
Sources
- Android Developers Blog - DNS over TLS support in Android P - accessed 2026-11-23
- Private Internet Access - Private DNS Server Cannot Be Accessed fix guide - accessed 2026-11-23
- Mullvad DNS blocklists issue #17 (screenshot of the notification) - accessed 2026-11-23
- TeamZlab - Wi-Fi connected but no internet on Android (notification table) - accessed 2026-11-23
- Unlocator Support - How to Set Up DNS on Android - accessed 2026-11-23