All systems operational
Blog
Android guideOctober 29, 20265 min read

Private DNS on Android: What It Is and How to Set It Up

Private DNS encrypts the lookups your phone makes every time you open a website or app. Here's where to find it on your phone, what to type in the box, and how it fits with a VPN.

UR

Co-Founder & CTO, SafePassVpn

Quick Summary

  • 1.Private DNS encrypts DNS lookups with DNS-over-TLS (Android 9 and newer)
  • 2.Options: Off, Automatic, or a provider hostname such as one.one.one.one
  • 3.Type a hostname, not an IP address like 1.1.1.1
  • 4.With a VPN on, Automatic is usually best; a hostname can override the VPN's DNS

VPN on Android › Private DNS

What Private DNS Does

Every time an app or website loads, your phone first asks a DNS server for the address behind a name like example.com. Normally that question is sent unencrypted, so your Wi-Fi network or mobile provider can see every site name you look up.

Private DNS, added in Android 9, sends those lookups over an encrypted connection (DNS-over-TLS) instead. It has three settings:

  • Off: lookups go unencrypted to whatever DNS server the network gives you
  • Automatic: the phone uses encryption when the network's DNS server supports it, and falls back to plain DNS when it doesn't
  • Private DNS provider hostname: every lookup goes encrypted to the provider you choose, and fails rather than falling back

How to Turn On Private DNS

The setting has a different home on each brand:

Pixel and phones close to stock Android

SettingsNetwork & internetPrivate DNS

Samsung Galaxy (One UI)

SettingsConnectionsMore connection settingsPrivate DNS

Vivo (Funtouch OS)

SettingsOther networks and connectionsPrivate DNS

On stock Android, Private DNS opens a small dialog with the three settings. In the Network & internet list, Automatic shows as On.

Android 16 Select Private DNS Mode dialog with Off, Automatic and Private DNS provider hostname
Stock Android's Private DNS options. Automatic shows as "On" in the list.
Samsung One UI 6.1 More connection settings screen showing VPN and Private DNS
On a Samsung Galaxy, Private DNS sits just below VPN.

Choose Private DNS provider hostname, type the hostname from the table below, and tap Save. If your phone isn't listed, open Settings, tap the search box and type Private DNS.

Which Private DNS Hostname to Use

ProviderHostnameGood for
Cloudflareone.one.one.oneFast, no filtering. Says it doesn't keep logs that identify you.
Googledns.googleFast and reliable, no filtering.
Quad9dns.quad9.netSkips domains known to spread malware or phishing.
AdGuarddns.adguard-dns.comFilters ads and trackers inside apps and browsers.
Cloudflare for Familiesfamily.cloudflare-dns.comFilters malware and adult content.

Type the hostname exactly as shown. The box doesn't accept IP addresses like 1.1.1.1 or 8.8.8.8. Not sure which DNS server your phone uses right now? Our DNS servers page compares public DNS services, and the DNS leak test shows which servers are answering your lookups.

Private DNS and a VPN

Private DNS hides the names you look up, but not where you go next. Your provider still sees the addresses your phone connects to, and websites still see your real IP address. A VPN encrypts all of that traffic and sends it through the VPN server, DNS included.

When a VPN is on, keep Private DNS on Automatic. That lets the VPN answer your lookups inside its encrypted tunnel. A provider hostname takes priority over the VPN's DNS on most phones. Your lookups still travel inside the tunnel, so your network can't read them, but they go to that provider rather than the VPN, and on some networks the two clash and pages stop loading.

That's also why a DNS leak test can show Cloudflare or Google servers while you're connected to a VPN. If you've set a hostname on purpose, that's expected; if you haven't, set Private DNS back to Automatic and test again.

Fixing Private DNS Problems

"Private DNS server cannot be accessed"

Check the hostname for typos first. If it's right, the network you're on doesn't allow encrypted DNS on port 853. Some workplace, school and hotel Wi-Fi networks don't. Switch to Automatic while you're on that network.

Hotel or airport Wi-Fi sign-in page won't open

Sign-in pages need the network's own DNS. Set Private DNS to Automatic, sign in, then switch it back.

Websites stop loading when the VPN connects

Set Private DNS to Automatic and reconnect the VPN. If your VPN keeps dropping for other reasons, see why your VPN keeps disconnecting on Android.

Need Help?✨

Private DNS FAQs

Short answers about Private DNS on Android.

Automatic is a sensible default and is already on for most phones. Choose a provider hostname if you want your DNS lookups encrypted on every network, or want filtering such as AdGuard's. If you use a VPN, Automatic is usually best, so the VPN handles DNS itself.
A hostname, not an IP address. For example one.one.one.one for Cloudflare, dns.google for Google, or dns.quad9.net for Quad9. Typing 1.1.1.1 or 8.8.8.8 won't work in this box.
No. Private DNS only encrypts the lookups that turn website names into addresses. Your provider can still see which servers you connect to and your IP address is unchanged. A VPN encrypts all of your traffic and replaces your IP address with the VPN server's.
The network you're on doesn't allow encrypted DNS on port 853, or there's a typo in the hostname. Check the spelling, try mobile data instead of Wi-Fi, or set Private DNS to Automatic while you're on that network.
Free plan · No account needed

Encrypt More Than Your DNS

SafePassVpn encrypts all of your traffic, DNS included, and hides your IP address. Free plan with daily data and 3 locations, no sign-up.