Home
Web Hosting
Domains FAQ
Resources
About Contact Client Portal
Guides ยท ยท 8 min read

How to Set Up Private DNS on Android, and What It Still Leaks

ยท 8 min read

Private DNS is the Android setting that encrypts the lookups your phone makes every time an app or website needs an address. Without it, those lookups usually go in plain text to whatever resolver the Wi-Fi network or your mobile carrier hands out, and anyone on the path can read them. This guide shows how to turn Private DNS on, which provider hostnames to use, what the setting still leaves visible, and how to run your own Private DNS server on a VPS.

The short version

Go to Settings, then Network & internet, then Private DNS (on Samsung: Connections, then More connection settings, then Private DNS). Choose "Private DNS provider hostname" and enter a resolver's hostname, such as dns.quad9.net. That encrypts your DNS lookups and stops the local network from reading or changing them. It does not hide which sites you connect to from your carrier, and the resolver you pick still sees every lookup, so choose one whose logging policy you trust.

What Private DNS on Android does

Google added Private DNS in Android 9 in 2018. It uses DNS over TLS, the standard defined in RFC 7858, which wraps each lookup in an encrypted TLS connection, normally on port 853. Once that connection is up, nobody watching the network can read or alter your queries. The setting has three modes:

Mode What happens
Off Lookups go unencrypted to the network's resolver.
Automatic The phone upgrades to encrypted DNS if the network's own resolver supports it, and falls back to plain DNS if it does not. Most networks do not, so in practice this often means no encryption.
Private DNS provider hostname System DNS lookups go encrypted to the resolver you name, which must prove its identity with a valid certificate. If the phone cannot reach it, Google says Android marks the network as having no internet access rather than falling back to plain DNS.

Since July 2022, phones on Android 11 and later can use DNS over HTTP/3 instead of DNS over TLS for well-known resolvers that support it, delivered through a Google Play system update. At launch that meant Google Public DNS and Cloudflare; other resolvers you enter use DNS over TLS.

How to turn on Private DNS

Pixel and most phonesSettings > Network & internet > Private DNS

Samsung GalaxySettings > Connections > More connection settings > Private DNS

  1. Open the Private DNS setting using the path for your phone above. If you cannot find it, search Settings for "Private DNS".
  2. Choose "Private DNS provider hostname".
  3. Enter the hostname of your chosen resolver, exactly as the provider publishes it. It is a name, not an IP address.
  4. Tap Save. The setting applies to Wi-Fi and mobile data at once.
  5. Check it works by opening a few sites. If the phone reports that the Private DNS server cannot be accessed, check the hostname for typos.

Private DNS hostnames to use

Provider Hostname to enter Good to know
Quad9 dns.quad9.net Swiss nonprofit; blocks known malicious domains
DNS4EU unfiltered.joindns4.eu or protective.joindns4.eu EU-backed service with unfiltered and protective variants
AdGuard DNS dns.adguard-dns.com Blocks ads and trackers at the DNS level
Cloudflare one.one.one.one Fast; can use DNS over HTTP/3 on Android 11 and later
Google Public DNS dns.google Keeps your full IP address with queries in temporary logs for 24 to 48 hours

Each provider logs different things for different lengths of time. Our comparison of privacy DNS servers sets out what each one's own policy says it keeps. If your phone still points at Mullvad's resolver, change it: Mullvad scheduled its public DNS service to end on 2 November 2026.

What Private DNS does not hide

Watch outEncrypted lookups are not private browsing

1. The resolver sees your queries. You move your lookups from your carrier to the provider you chose. That provider can see every query your phone sends it.

2. Your carrier still sees where you connect. After the lookup, your phone connects to the site's IP address, and many connections still name the site in the clear during the TLS handshake.

3. The first lookup can be visible. Before the encrypted connection starts, Android may need to find your resolver's address through the network's normal DNS, so that one lookup can be seen even though the queries after it are encrypted.

4. Some apps do their own DNS. Browsers with their own secure DNS setting, and apps that resolve names themselves, can bypass the system setting.

If you want your traffic hidden from the local network and your carrier, not just your lookups, you need a VPN, which routes your traffic through an encrypted tunnel. Our guide to running a self-hosted VPN covers the trade-offs.

When Private DNS stops working

Because the hostname mode refuses to fall back to plain DNS, it fails loudly on networks that get in its way. Some public and corporate Wi-Fi networks block port 853, and hotel or airport Wi-Fi often needs you to sign in through a login page before anything else works. If a network shows as connected with no internet, switch Private DNS to Automatic, sign in or finish what you need, then switch back.

Run your own Private DNS server on a VPS

If you would rather not trust any public resolver, you can run your own and point your phone at it. You need four things:

1. A server. DNS is light work, so the smallest VPS is plenty for a household.

2. A hostname and a valid certificate. Android checks the certificate in hostname mode, so point a domain at the server and get a free certificate from Let's Encrypt.

3. Resolver software that speaks DNS over TLS. The choice matters for privacy. Unbound is a recursive resolver: it looks names up directly from the authoritative servers, so no public resolver sees your queries. AdGuard Home serves DNS over TLS out of the box and blocks ads, but by default it forwards queries to an upstream resolver you choose, which still sees them. Point AdGuard Home at your own Unbound if you want both.

4. Locked-down access. Keep plain port 53 closed to the internet so the server cannot be abused as an open resolver. Port 853 has to stay open for your phone, and Android's Private DNS setting sends no login, so anyone who finds the hostname can query it. Filtering by IP address rarely works because your phone's address changes on mobile data, so add rate limiting, watch the logs, and, where your software supports it, answer only devices it recognises.

The trade-off is the same as for any self-hosted resolver: your lookups no longer mix with millions of other users', so they are tied to your server's address. Our privacy DNS comparison covers that in more detail.

Our Cloud VPS starts at EUR 9.90 a month in Finland and EUR 13.90 in Switzerland, with full root access and a dedicated IPv4 address. Signup takes an email address and a password, and you can pay in Bitcoin or Monero through our own BTCPay Server. A resolver in Switzerland sits under Swiss data protection law; our guide to Swiss data protection law explains what that changes.

FAQ

Is Private DNS the same as a VPN?

No. Private DNS encrypts only your system DNS lookups. A VPN routes your traffic through an encrypted tunnel, which hides the sites you connect to from the local network and your carrier.

Should I leave Private DNS on Automatic?

Automatic is better than Off, but it only encrypts lookups when the network's own resolver supports it, and it cannot check who is answering. Entering a provider hostname gives you encryption on every network and confirms you are talking to the resolver you chose.

Which Private DNS is best?

For most people, dns.quad9.net: a Swiss nonprofit whose policy says it does not record IP addresses. If you want ads blocked, AdGuard DNS. If you want an EU-run service, DNS4EU.

Does Private DNS slow down my phone?

Not noticeably on a good resolver. The encrypted connection is set up once and reused, and a fast resolver can answer quicker than a slow carrier one.

Why does my phone say the Private DNS server cannot be accessed?

Either the hostname is mistyped, the provider is down, or the network blocks encrypted DNS. Check the spelling first, then try switching to Automatic on that network.

Sources

Last reviewed: 16 November 2026

Research note: Menu paths differ between Android versions and phone makers; the paths above are those used by Google's Pixel software and Samsung's One UI. Logging details for each resolver are covered, with sources, in our privacy DNS comparison.

Need Reliable Hosting?

Privacy-focused, anonymous, and built for people who value their data.