Private DNS is a setting, best known on Android, that sends your DNS lookups over an encrypted connection — DNS over TLS on port 853 — so your internet provider, Wi-Fi operator and anyone else on the network cannot read or change them. You enable it by entering a resolver hostname such as one.one.one.one for Cloudflare, dns.google for Google, or dns.quad9.net for Quad9.
Key takeaways
- Private DNS encrypts your DNS lookups, hiding the sites you visit from your ISP and Wi-Fi network — but not from the DNS provider itself.
- On Android, type a hostname, never an IP address: one.one.one.one, dns.google or dns.quad9.net.
- Private DNS does not hide your traffic from the sites you visit or replace a VPN; it protects only the lookup step.
Every website you visit starts with a question your device asks out loud: what is the address for this name? By default, that question — your DNS lookup — travels in plain text, and anyone on your network can read it.
What is Private DNS?
Private DNS is a setting, best known on Android, that encrypts your DNS lookups so nobody on the network can read or change them.
DNS is the internet's phone book: it turns a name you remember, like example.com, into the number address computers use to find the server. Ordinary DNS sends that question as plain text on UDP port 53. Your Wi-Fi operator, hotel network, mobile carrier and ISP can all see which names you look up, and a hostile network could quietly send you to the wrong address.
Private DNS wraps those questions in TLS, the same encryption HTTPS uses. The standard is called DNS over TLS (DoT), defined in RFC 7858, and it uses TCP port 853. Your device checks that it is talking to the right resolver, because the resolver must present a valid certificate for the hostname you entered.
How does Private DNS work?
Private DNS works by establishing an encrypted session with your chosen DNS resolver first, then sending your lookups through that secure tunnel.
Instead of sending a plain-text query on port 53, your device opens a TLS connection to the resolver, verifies its certificate, and then sends the query inside the encrypted session. The resolver decrypts it, resolves the domain name to an IP address, encrypts the response, and sends it back.
Because the lookup is encrypted, nobody between you and the resolver can read the name you asked for or tamper with the answer. The resolver itself can still see your queries — Private DNS hides your lookups from everyone between you and the provider, not from the provider itself. That is why choosing a trustworthy resolver matters.
What is the difference between DoT, DoH and DoQ?
DNS over TLS, DNS over HTTPS and DNS over QUIC all encrypt the same DNS query, but they take different approaches — and that affects how easily a network can block them.
| Protocol | Standard | Port | How it works | Where you find it |
|---|---|---|---|---|
| DNS over TLS (DoT) | RFC 7858 | TCP 853 | DNS inside TLS on its own port | Android Private DNS |
| DNS over HTTPS (DoH) | RFC 8484 | TCP 443 | DNS as HTTPS requests, looks like web traffic | Chrome, Firefox, Edge, Windows 11 |
| DNS over QUIC (DoQ) | RFC 9250 | UDP 853 | DNS directly over QUIC, fast reconnections | AdGuard DNS, Quad9; few resolvers |
| Plain DNS | — | UDP 53 | Unencrypted, readable by anyone on the path | Default on most networks |
DoT runs on a dedicated port, so a restrictive network can block it easily — and that is exactly what happens on some workplace and hotel networks. DoH sends queries on port 443, the same port as ordinary encrypted web browsing, so a network cannot block it without blocking known DoH servers.
DoQ avoids head-of-line blocking and resumes connections quickly, but few resolvers offer it. AdGuard DNS and Quad9 do, while Cloudflare's 1.1.1.1 supports DoT, DoH and Oblivious DoH but not DoQ.
Since a 2022 Google Play system update, Android 11 and later switch to DNS over HTTP/3 for the providers Android recognizes — Google's dns.google and Cloudflare under the name cloudflare-dns.com — while one.one.one.one stays on DNS over TLS.
How do you set up Private DNS on Android?
Android has had Private DNS since Android 9, released in 2018. It applies to every app, on Wi-Fi and mobile data, and it takes about a minute to set up.
- Open Settings and search for "Private DNS". On stock Android and Pixel phones it is under Network and internet. On Samsung phones it is under Connections, then More connection settings.
- Tap Private DNS. You will see three options: Off, Automatic, and Private DNS provider hostname.
- Choose Private DNS provider hostname. This is the strict option: it always uses DNS over TLS to the resolver you name and never falls back to plain DNS.
- Type a hostname such as
one.one.one.one,dns.googleordns.quad9.net. Type a hostname, never an IP address:1.1.1.1fails, whileone.one.one.oneworks. - Save, then verify. Visit 1.1.1.1/help to check that "Using DNS over TLS (DoT)" shows as Yes when using Cloudflare, or use our free DNS lookup tool to confirm lookups resolve.
The three Android settings mean different things. Off sends plain DNS. Automatic tries DNS over TLS with the network's own resolver and falls back to plain DNS if that fails.
Provider hostname is strict: if the resolver cannot be reached on port 853, or its certificate does not match, lookups fail rather than dropping back to plain text. That strictness guarantees encryption, but it can break connectivity on networks that block port 853.
Which Private DNS provider should you choose?
Choose a resolver by what you want it to do: speed, malware blocking, ad blocking, or minimal logging. The hostnames below are the official ones for Android's Private DNS field.
| Provider | Private DNS hostname | IPv4 addresses | Filtering | Best for |
|---|---|---|---|---|
| Cloudflare | one.one.one.one | 1.1.1.1, 1.0.0.1 | None | Speed and privacy |
| Cloudflare Security | security.cloudflare-dns.com | 1.1.1.2 | Malware domains | Malware blocking |
| Cloudflare Family | family.cloudflare-dns.com | 1.1.1.3 | Malware and adult content | Family devices |
| Google Public DNS | dns.google | 8.8.8.8, 8.8.4.4 | None | Reliability and coverage |
| Quad9 | dns.quad9.net | 9.9.9.9, 149.112.112.112 | Malicious domains | Security-focused users |
| AdGuard DNS | dns.adguard-dns.com | 94.140.14.14, 94.140.15.15 | Ads, trackers, phishing | Ad blocking |
| NextDNS | Your ID plus .dns.nextdns.io | Varies | Fully custom | Custom blocklists |
Cloudflare is the fastest global resolver for most users and deletes query logs within 25 hours, with your address never written to disk, according to published resolver comparisons. Google keeps your address for 24–48 hours and retains a sample without it for longer.
Quad9 is run by a Swiss non-profit foundation, does not store IP addresses, and blocks known malicious domains using threat intelligence from security partners. Cloudflare's own Private DNS guide explains how Android verifies the resolver by hostname.
Filtering resolvers trade convenience for protection. AdGuard blocks ads and trackers at the DNS level, which is powerful — but it can also disrupt logins, games, banking apps and other services that depend on a blocked domain. If an app stops working after you switch resolvers, try the unfiltered version first.
How do you use Private DNS on iPhone, Windows and browsers?
Private DNS by that name is an Android setting, but the same protection exists on other platforms under the name encrypted DNS.
- iPhone and iPad: iOS 16 and later switch to encrypted DNS on their own for servers that support Discovery of Designated Resolvers, including 1.1.1.1, 8.8.8.8 and 9.9.9.9. Other servers stay unencrypted unless you install a signed encrypted-DNS profile from the resolver.
- Windows 11: Windows 11 supports DNS over HTTPS system-wide. Go to Settings, Network, then your connection's DNS settings, and enter a DoH URL such as https://cloudflare-dns.com/dns-query or https://dns.google/dns-query.
- Chrome, Firefox and Edge: all three browsers have built-in DNS over HTTPS. In Chrome it is under Settings, Privacy and security, Security, Use secure DNS. In Firefox it is under Settings, Privacy and Security, DNS over HTTPS.
- Mac: macOS supports encrypted DNS through configuration profiles, similar to iOS.
Browser-level encrypted DNS protects only that browser. Android Private DNS and Windows system-wide DoH protect every app on the device, which is why the system setting is preferable when it is available.
For a related check, see our guide to how to secure your Wi-Fi.
You can confirm your public address with our what is my IP tool.
What does Private DNS not protect?
Private DNS protects only the lookup step, and understanding its limits prevents a false sense of security.
First, it does not hide your traffic from the sites you visit. A site still sees your IP address and knows you visited.
Second, it does not hide your IP address from your ISP, which can still see the addresses you connect to even if it cannot read the names. Third, it does not encrypt the rest of your traffic — that is HTTPS's job, and a VPN's job for everything else.
There is also the SNI issue Cloudflare has described: during the initial TLS handshake, the server name indication reveals the hostname you are connecting to, even when DNS is encrypted. Encrypting SNI is a separate, in-progress standard. Private DNS is one layer, not a complete privacy solution.
Finally, Private DNS does not protect you from phishing or malware by itself, unless you choose a filtering resolver such as Quad9 or Cloudflare Security that blocks known malicious domains. For phishing protection, see our spear phishing guide.
Test yourself with the phishing quiz.
How do you test and troubleshoot Private DNS?
Test Private DNS after you enable it, and know what to do when it breaks a connection.
- Verify it is working: visit 1.1.1.1/help when using Cloudflare and check that "Using DNS over TLS (DoT)" shows as Yes.
- Check that lookups resolve: use our free DNS lookup tool to confirm domains resolve correctly.
- If nothing loads: the network may block port 853. Switch to Automatic mode, or use a browser with DoH instead.
- If one app breaks: try a different resolver. A filtering resolver may be blocking a domain the app needs.
- If you see a certificate error: do not ignore it. It may mean the resolver's certificate does not match, or that something is intercepting your connection.
The bottom line
Private DNS is a small setting with a real payoff: it encrypts the one step of browsing that most people never think about, and it takes a minute to enable.
On Android, open Settings, search for Private DNS, choose a provider hostname, and type one.one.one.one for speed, dns.quad9.net for malware blocking, or dns.google for reliability. Then verify it works with the free DNS lookup tool.
Frequently asked questions
What is Private DNS on Android?
Private DNS is Android's setting for encrypted DNS. It sends the website names your device looks up over an encrypted connection, so your Wi-Fi network and ISP cannot read or change them. Android has had it since Android 9, released in 2018.
What hostname should I enter for Private DNS?
Use the hostname of a resolver you trust: one.one.one.one for Cloudflare, dns.google for Google, dns.quad9.net for Quad9, or dns.adguard-dns.com for AdGuard. Type a hostname, never an IP address such as 1.1.1.1, because the field does not accept one.
Is Private DNS the same as a VPN?
No. Private DNS encrypts only your DNS lookups. A VPN encrypts all of your traffic and hides your IP address from sites you visit. Private DNS is lighter and faster, but it protects much less than a VPN.
Does Private DNS hide what I browse from my ISP?
It hides the DNS lookups, which are the names you look up. Your ISP can still see the IP addresses you connect to, and the sites themselves know you visited. For stronger privacy, combine Private DNS with HTTPS and, if needed, a VPN.
Should Private DNS be off or automatic?
Automatic is the safe default: it tries encrypted DNS with the network's own resolver and falls back to plain DNS if that fails. Choose a specific provider hostname only when you want guaranteed encryption and a resolver you chose yourself.
What is the difference between DNS over TLS and DNS over HTTPS?
DNS over TLS runs DNS inside TLS on its own port, 853. DNS over HTTPS sends DNS queries as HTTPS requests on port 443, so they look like ordinary web traffic. Android's Private DNS uses DNS over TLS.
Does Private DNS block ads?
It depends on the resolver. Cloudflare's standard 1.1.1.1 does not block ads, while AdGuard DNS blocks ads and trackers at the DNS level. Quad9 blocks known malicious domains but not ads. Choose a resolver that matches what you want blocked.
Can Private DNS break apps or websites?
Occasionally. A filtering resolver can block a domain an app needs, and a strict Private DNS setting can fail on networks that block port 853. If a site or app stops working, try Automatic mode or a different resolver.
Sources
- Cloudflare Blog — Enable Private DNS with 1.1.1.1 on Android 9 Pie
- DNS Robot — What Is Private DNS? Meaning, Hostname List & Setup
- IETF RFC 7858 — Specification for DNS over Transport Layer Security (TLS)
- IETF RFC 8484 — DNS Queries over HTTPS (DoH)
- Server Brief — What is Private DNS? How to turn it on and test it
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Cloudflare's Private DNS guide, DNS Robot's hostname list, and IETF RFCs 7858 and 8484.
How we write and fact-check →