Private DNS is one of those settings you only notice when it breaks. One day your apps load fine, and the next, pages refuse to open, apps say there is no connection, or your phone shows a warning that the Private DNS server cannot be accessed — even though your Wi-Fi signal looks strong.
The good news: most Private DNS problems are easy to fix. Usually the cause is a typo in the hostname, a provider that is temporarily down, or a VPN getting in the way. This guide walks you through the fixes in order, safest first, so you can get back online without losing anything.
What Is Private DNS on Android?
Every time you open a website or an app connects to a server, your phone first asks a DNS server to translate a name like example.com into a numeric address it can actually reach. Without DNS, you would have to type those numbers yourself.
Private DNS uses an encrypted version of this lookup, called DNS over TLS. Instead of sending your DNS requests in plain text, your phone sends them over an encrypted connection, which makes it harder for someone on the same network to see which sites you are looking up. Android has offered this setting since Android 9, and it works across both Wi-Fi and mobile data.
Note what Private DNS does not do: it encrypts only your DNS lookups. It does not hide your IP address, change your apparent location, or encrypt all your traffic the way a VPN does. It is a privacy upgrade for one step, not a full invisibility cloak.
Why Private DNS May Stop Working
When Private DNS stops working, the internet often stops with it, because your phone cannot resolve the names of the sites and services it needs. The most common causes are:
A typo in the hostname. The provider hostname must be typed exactly right. Even one wrong letter, an extra space, or a missing dot will make the server unreachable.
An IP address instead of a hostname. This is the single most common mistake. The Private DNS field needs a hostname, like dns.google — not a numeric IP address. If you enter an IP address, Android will fail with a “Private DNS server cannot be accessed” error.
The DNS provider is down or blocked. Providers can have outages, and some networks — especially school, office, or public Wi-Fi with a sign-in page — block custom DNS servers entirely.
A VPN is handling your DNS. Many VPN apps route DNS through their own servers. When a VPN is active, your Private DNS setting may be overridden or may conflict with the VPN, which can break connectivity.
A system or settings glitch. After a software update or a settings change, the connection can get stuck. A restart usually clears this.
How to Find Private DNS Settings
On most Android phones, the path is:
Settings > Network & internet > Private DNS
Menu names vary by brand. On Samsung phones, for example, it is usually Settings > Connections > More connection settings > Private DNS. If you cannot find it, use the search bar at the top of Settings and type “Private DNS”. If your phone runs an Android version older than Android 9, this setting may not be available at all.
When you open it, you will see three options:
Off — Private DNS is disabled, and your phone uses the DNS server provided by your network.
Automatic — Your phone uses encrypted DNS automatically when the network supports it, and falls back to regular DNS otherwise. This is the default, and it is the safest choice while troubleshooting.
Private DNS provider hostname — Your phone always uses the specific DNS provider you type in. This is the option that causes problems when the hostname is wrong or the provider is unreachable.
Fixes to Try Without Losing Your Data
Work through these in order. After each step, check whether your internet is back — open a browser and try loading a website before moving on to the next fix.
1. Check the Hostname Spelling
Open Settings > Network & internet > Private DNS and look closely at what is typed in the provider hostname field. It must be a hostname only — no “https://”, no slashes at the end, no spaces, and no IP address. Common examples of valid provider hostnames are dns.google and one.one.one.one. If you are unsure of the correct hostname, check the provider’s official website rather than guessing, and retype it carefully.

2. Switch to Automatic to Test
This is the fastest way to find out where the problem is. Change the setting to Automatic and try loading a website. If the internet works on Automatic but not with your custom hostname, the problem is with that provider or the hostname itself — not with your phone or your Wi-Fi. You can safely leave it on Automatic while you sort out the provider, and your internet will keep working.
3. Turn Off Your VPN Temporarily
If you use a VPN app, turn it off for a moment and test your connection again. A VPN can route or override DNS in ways that conflict with a custom Private DNS hostname. If the internet works with the VPN off, the two settings are clashing. In that case, keep Private DNS on Automatic while the VPN is running, or check whether your VPN app has its own DNS setting you should use instead.
4. Restart Your Phone and Reconnect
Turn your phone off and back on, then reconnect to your Wi-Fi network. A restart clears stuck network processes and forces your phone to set up its DNS connection fresh. This simple step fixes a surprising number of connection problems after updates or settings changes.
5. Try a Different Network
Switch from Wi-Fi to mobile data, or try a different Wi-Fi network, and see whether the problem follows you. If Private DNS works on mobile data but not on one particular Wi-Fi network, that network may be blocking custom DNS — this is common on networks with a sign-in page, such as hotels, airports, schools, and offices. On those networks, Automatic is the right choice, because the network needs to handle DNS itself for its sign-in page to work.
6. Try Another Provider Hostname
If Automatic works but your usual provider does not, the provider itself may be having an outage. You can try a different well-known provider hostname, such as dns.google or one.one.one.one, to see whether the connection returns. Only use hostnames from providers you trust, and get the exact hostname from the provider’s official page. If you do not need a specific provider, staying on Automatic is perfectly fine.
7. Update Android, Then Reset Network Settings as a Last Resort
Check for a system update under Settings > System > System update, since updates can fix networking bugs. If nothing else has worked, the last resort is resetting network settings. You will usually find this under Settings > System > Reset options > Reset Wi-Fi, mobile & Bluetooth. Be aware of what this does: it erases your saved Wi-Fi networks and passwords and your Bluetooth pairings, so you will need to reconnect to Wi-Fi and re-pair devices afterwards. It does not delete your photos, apps, or files. After the reset, set Private DNS back to Automatic first, then re-enter your custom hostname only if you still want it.
Private DNS vs VPN — What’s the Difference?
These two are often confused. Private DNS encrypts only your DNS lookups. A VPN encrypts all your traffic and routes it through the provider’s server, hiding your real IP address and possibly changing your apparent location.
So Private DNS is lighter but protects less. A VPN protects more, but it sees all your traffic, so a trustworthy provider matters. You do not need both for basic browsing, and running both at once can cause the conflict in fix 3.
Frequently Asked Questions
Why does my phone say “Private DNS server cannot be accessed”?
This means your phone tried to reach the DNS provider you entered and could not. The usual reasons are a typo in the hostname, an IP address entered instead of a hostname, the provider being temporarily down, or the current network blocking custom DNS. Switch to Automatic first to restore your internet, then check the hostname.
Does Private DNS hide my IP address?
No. Private DNS only encrypts your DNS lookups. Your IP address is still visible to your network and to the sites you visit. If hiding your IP address is what you need, that is a VPN’s job, not Private DNS.
Does Private DNS work on both Wi-Fi and mobile data?
Yes. The setting applies system-wide on Android 9 and later, so it covers both Wi-Fi and mobile data connections. That is also why a bad hostname can break your internet on both at once.
Should I just leave Private DNS on Automatic?
For most people, yes. Automatic gives you encrypted DNS whenever the network supports it, without the risk of a wrong hostname breaking your connection. Use a custom provider hostname only if you have a specific reason, such as wanting a particular provider’s filtering features, and keep the hostname written down somewhere safe so you can re-enter it correctly.
