Every time your phone opens a website or an app talks to a server, it first asks a DNS server "what's the address for this name?". Normally those questions travel unencrypted, so your Wi-Fi network or mobile carrier can see every site name you look up, and on some networks change the answers.

Private DNS, added in Android 9, encrypts those lookups using a standard called DNS over TLS. It's a good setting to know about. It isn't a VPN, though, and if you use both, there are a couple of interactions worth understanding.

What Private DNS does and doesn't do

  • It does hide which site names you look up from the local network and stop them from being tampered with along the way.
  • It doesn't hide your IP address. Websites still see where you are.
  • It doesn't encrypt the rest of your traffic. Your network can usually still see which servers you connect to, just not the DNS questions.
  • It doesn't get around most blocks. If a network blocks sites by IP address or by inspecting traffic, encrypted DNS alone won't help.

Google's Pixel help page puts it simply: Private DNS only protects DNS lookups. Think of it as a cheap, always-on privacy improvement rather than a VPN replacement.

The three options

  • Off: plain, unencrypted DNS from whatever network you're on.
  • Automatic: the default on most phones. Android uses encrypted DNS when the network's DNS server supports it, and falls back to normal DNS when it doesn't.
  • Private DNS provider hostname: you name a specific encrypted DNS provider and Android uses it on every network. If it can't reach it, lookups fail rather than falling back.

How to set it

Pixel and stock Android

  1. Open Settings → Network & internet → Private DNS. On Android 9 and some older builds it's under an Advanced section first.
  2. Pick Off, Automatic or Private DNS provider hostname.
  3. If you picked a hostname, type it in and tap Save.

Samsung Galaxy

  1. Open Settings → Connections → More connection settings → Private DNS.
  2. Choose your option and tap Save.

On other brands, search Settings for "Private DNS". It's usually near the VPN option.

Which hostname to type

You need a hostname, not an IP address and not a web link with https:// in front. A few well-known public providers:

ProviderHostname
Cloudflareone.one.one.one
Google Public DNSdns.google
Quad9dns.quad9.net

Cloudflare and Quad9 publish their own Android instructions (Cloudflare, Quad9). Each has its own privacy policy, so pick one you're comfortable with. Some providers also offer filtering hostnames that block malware or adult content.

Private DNS and a VPN together

Here's the part most guides skip.

When your VPN is connected, a good VPN app sends your DNS lookups through the tunnel to the provider's own DNS servers. That's what stops DNS leaks, and some providers also use their DNS for ad or tracker blocking.

A custom hostname in Private DNS can override that. Android will try to send DNS to the provider you named instead. Depending on the VPN app, you may see one of these:

  • Everything works, but your lookups go to Cloudflare or Google (often still through the tunnel) rather than the VPN provider. The VPN's own ad blocking may stop working.
  • A leak test shows a DNS server you didn't expect, which can look alarming.
  • Nothing loads at all, because the VPN or the network blocks the port DNS over TLS uses (853), and with a custom hostname Android won't fall back.

Private Internet Access, for one, suggests turning Private DNS off when it clashes with the VPN and letting the VPN handle DNS. Your own provider's help pages will say what it recommends.

My rule of thumb

  • Using a VPN most of the time? Leave Private DNS on Automatic and let the VPN handle DNS.
  • Not using a VPN, or only sometimes? A custom hostname is a nice upgrade for the times you're off the VPN.
  • Something broke after you set a hostname? Switch back to Automatic first, before troubleshooting anything else.

To see what your setup is actually doing, run a DNS leak test with the VPN on. Our guide on checking your VPN for leaks shows how to read the results.

Do you need it at all?

For most people, Automatic is a perfectly good setting and you never need to touch it. A custom hostname is worth it if you often use public Wi-Fi without a VPN, if you want a provider's malware filtering on every network, or if your mobile carrier's DNS is unreliable. If none of that applies, leaving the default alone is a fine choice.

"Private DNS server cannot be accessed"

This notification means Android can't reach the hostname you set. Common causes:

  1. A typo. By far the most common. Re-enter the hostname carefully.
  2. The network blocks port 853. Some workplaces, schools, hotels and countries do. Switch to Automatic while you're on that network.
  3. A hotel or café login page. Until you sign in on the Wi-Fi's web page, encrypted DNS can't get out. Set Automatic, sign in, then switch back.
  4. A VPN or DNS-filtering app conflicting with it. Turn one of them off.

If you're on school or work Wi-Fi and both encrypted DNS and your VPN fail, the network is probably filtering deliberately. See VPN not working on school or work Wi-Fi, and remember that getting around a network's rules can break its acceptable-use policy.

We write plain-English guides to choosing, installing and fixing VPNs on Android phones, tablets and TVs. Reviews are based on each provider's published features, pricing, audits and Android app, and we update them when those change.

Comments are closed.

Keep reading