What is Private DNS?
Private DNS is a setting in Android, added in Android 9 (Pie), that encrypts your phone's DNS lookups. Normally, every time an app or browser needs an IP address, the phone sends the website name in plain text to the mobile operator's or Wi-Fi router's resolver. Anyone on the path can read it, and the operator can change the answer. With Private DNS on, the phone sends those lookups over an encrypted TLS connection instead.
Google's announcement of the feature describes two behaviours. By default, the phone automatically upgrades to DNS over TLS when the network's own DNS server supports it. You can also enter the hostname of a specific Private DNS provider; if the phone then cannot reach that provider, Android marks the network as having no internet access rather than falling back to unencrypted DNS. In current Android the three choices are Off, Automatic and Private DNS provider hostname.
What is DNS over HTTPS?
DNS over HTTPS (DoH), defined in RFC 8484, sends each DNS query as an HTTPS request to a URL on the resolver, such as https://dns.google/dns-query. Because it uses port 443 and the same TLS as every website, DoH traffic looks like any other HTTPS traffic to the network. Browsers adopted it first: Chrome calls it Secure DNS, and Firefox lists it as DNS over HTTPS in its privacy settings. Windows 11 and Windows Server 2022 support it in the operating system's own DNS client.
What is DNS over TLS?
DNS over TLS (DoT), defined in RFC 7858, wraps normal DNS messages in a TLS connection on a dedicated port, TCP 853. It is the protocol behind Android's Private DNS. Because it uses its own port, a network administrator can see that DoT is in use (and block port 853), even though they cannot read the queries. That is the main practical difference from DoH.
DoH vs DoT vs plain DNS
| Plain DNS | DNS over TLS (DoT) | DNS over HTTPS (DoH) | |
|---|---|---|---|
| Standard | RFC 1035 | RFC 7858 (2016) | RFC 8484 (2018) |
| Port | 53 (UDP and TCP) | 853 (TCP) | 443 (HTTPS) |
| Encrypted | No | Yes | Yes |
| You configure it with | An IP address | A hostname, such as dns.google | A URL template, such as https://dns.google/dns-query |
| Easy for a network to spot | Yes, and to read | Yes (port 853), but not to read | Hard: it looks like web traffic |
| Where you meet it | Default almost everywhere | Android Private DNS, some routers | Chrome, Edge, Firefox, Windows 11; Android for some providers |
The two encrypted options protect the same thing: the path between your device and the resolver. Choose whichever your device supports. On Android you set DoT through Private DNS; on a laptop the browser or Windows usually offers DoH.
The line between them has blurred on phones. Google's security blog reported in July 2022 that Android 11 and later, through a Google Play system update, use DNS over HTTP/3 instead of DoT when Private DNS points at a well-known provider that supports it, starting with Google and Cloudflare. You still type the same hostname; Android picks the protocol.
Private DNS provider hostnames and DoH addresses
These are the values published by the three best-known public resolvers. Use the hostname in Android's Private DNS field and the URL wherever a DoH template is asked for.
| Provider | Private DNS / DoT hostname | DoH URL | Plain IPv4 |
|---|---|---|---|
| Google Public DNS | dns.google | https://dns.google/dns-query | 8.8.8.8, 8.8.4.4 |
| Cloudflare | one.one.one.one | https://cloudflare-dns.com/dns-query | 1.1.1.1, 1.0.0.1 |
| Quad9 (blocks known malware domains) | dns.quad9.net | https://dns.quad9.net/dns-query | 9.9.9.9, 149.112.112.112 |
A common mistake is typing an IP address such as 8.8.8.8 into Android's Private DNS field. It needs a hostname, because the phone checks the resolver's TLS certificate against that name. Which resolver answers fastest from your own connection is worth measuring before you choose; our comparison of the best DNS servers for India shows how.
How to turn on Private DNS on Android
- Open Settings, then Network & internet. On some brands it is under Connections or More connection settings.
- Tap Private DNS.
- Choose Private DNS provider hostname.
- Type
dns.google,one.one.one.oneordns.quad9.netand tap Save. - Open a website to confirm it loads. If the network shows no internet access, the provider is blocked or mistyped: check the spelling, or switch back to Automatic.
Unlike changing the DNS on a single Wi-Fi network, Private DNS applies on mobile data and every Wi-Fi network at once.
How to turn on DNS over HTTPS in Chrome, Firefox and Windows 11
Chrome and Edge
In Chrome open Settings, Privacy and security, Security and find Use secure DNS. Turn it on and either keep your current provider (Chrome upgrades to DoH only if your current resolver supports it) or pick a provider from the list. Chrome on Android has the same switch under Settings, Privacy and security. Edge has the equivalent under Settings, Privacy, search, and services.
Firefox
Open Settings, Privacy & Security and scroll to DNS over HTTPS. Choose a protection level and a provider. Firefox's stricter level does not fall back to your normal resolver if the DoH provider fails, so a site that will not load may be a DoH problem rather than a site problem.
Windows 11
- Open Settings, Network & internet and select your Wi-Fi or Ethernet connection.
- Next to DNS server assignment, select Edit and switch to Manual.
- Turn on IPv4 and enter a resolver that Windows knows supports DoH, such as
1.1.1.1,8.8.8.8or9.9.9.9. - Set the DNS over HTTPS (encryption) option to the encrypted setting, and save.
Microsoft's documentation explains that the encryption option only appears for servers on Windows' list of known DoH servers, which by default contains the Cloudflare, Google and Quad9 addresses. You can view the list in PowerShell with Get-DnsClientDohServerAddress. The exact labels have changed between Windows releases, so look for the word "encrypted" next to the DNS fields.
Encrypted DNS on Linux and on servers
Linux desktops and servers that use systemd-resolved can encrypt lookups with DNS over TLS too. The resolved.conf manual documents a DNSOverTLS= option with the values yes, opportunistic and no, and lets you add the server's TLS name after a # so the certificate can be checked. In /etc/systemd/resolved.conf:
[Resolve]
DNS=1.1.1.1#one.one.one.one 8.8.8.8#dns.google
DNSOverTLS=yes
Then run sudo systemctl restart systemd-resolved and check the result with resolvectl status. opportunistic tries TLS and falls back to plain DNS if it fails, much like Android's Automatic mode; yes refuses to fall back. On a production server, test with opportunistic first, because a resolver that cannot be reached over TLS means no name resolution at all, and with it no package updates or outbound API calls.
How to check that encrypted DNS is working
Cloudflare runs a diagnostic page at one.one.one.one/help that reports whether your device is using 1.1.1.1 and whether the lookup arrived over DoH or DoT. For other providers, the simplest test is to set the provider hostname, open a few websites, and watch for failures. If Private DNS is set to a hostname and pages load, encryption is in use, because Android does not fall back to plain DNS in that mode.
What encrypted DNS hides, and what it does not
| Threat | Protected? | Why |
|---|---|---|
| Wi-Fi owner or ISP reading the names you look up | Yes | The DNS queries are encrypted on the way to the resolver |
| Someone on the network changing DNS answers | Yes | The device checks the resolver's TLS certificate |
| The resolver itself seeing your lookups | No | You have moved that visibility from your ISP to Google, Cloudflare or Quad9; read their privacy policy |
| Your ISP seeing which IP addresses you connect to | No | The connection to the website still goes to its IP address |
| Your ISP seeing the website name during the HTTPS handshake | Usually no | The name is often still visible in the TLS handshake (SNI) unless the site and browser support Encrypted Client Hello |
| Malware and phishing sites | Only with a filtering resolver | Quad9 blocks known malicious domains; Google's and Cloudflare's main resolvers do not filter |
Encrypted DNS is a privacy and integrity improvement, not anonymity. It is not a VPN, it does not hide your IP address, and it does not bypass anything a website itself does.
When Private DNS breaks things
| Symptom | Likely cause | Fix |
|---|---|---|
| "Private DNS server cannot be accessed" or no internet on one Wi-Fi | That network blocks port 853 or the provider | Set Private DNS to Automatic for that network, or use another provider |
| Hotel or airport Wi-Fi login page will not appear | The captive portal relies on intercepting DNS | Switch to Automatic, log in, then switch back |
| Office intranet or VPN names do not resolve | Internal names exist only on the company's DNS server | Use Automatic, or ask IT for their policy |
| A site works in Firefox but not in Chrome, or the reverse | One browser uses DoH with its own provider, the other uses the system resolver | Compare both, then clear the DNS cache in each |
| DNS_PROBE_FINISHED_NXDOMAIN after a domain change | The DoH provider cached the old answer | Wait for the TTL, or use the provider's purge-cache page |
Running your own encrypted resolver on a VPS
If you would rather not send every lookup to a large public resolver, you can run your own. Open-source resolvers such as Unbound, or the filtering tool AdGuard Home, can run on a small Linux VPS and answer DoT or DoH for your own devices with a certificate for a hostname you control. Point Android's Private DNS at that hostname and every lookup from your phone goes, encrypted, to a server you run.
Three rules keep this safe:
- Do not run an open resolver. Restrict who may query it, by IP or by authentication, or it can be abused for DNS amplification attacks.
- Use a real certificate for the resolver's hostname (Let's Encrypt works), because Android checks it.
- Keep it updated. A resolver is internet-facing software and needs the same patching as a web server.
Your own resolver still has to ask authoritative servers on the internet for answers, so it improves privacy on the device-to-resolver leg and gives you control and logs, but the authoritative servers still see queries from your VPS's IP address.
Encrypted DNS and your Bigdomainhost server
Private DNS and DoH change how your devices look names up. They do not change your domain's records, and they do not affect how visitors reach your website. To understand that other side, the authoritative DNS for your domain, see what DNS is and what a DNS server does.
If you are setting one up and get stuck, message us on WhatsApp at +91 75994 50220 at any time, or call during IST working hours.
This guide was written by the Bigdomainhost team with AI assistance; facts were checked against the linked RFCs and official documentation on 26 November 2026.
Sources (checked )
- IETF (RFC Editor): RFC 8484: DNS Queries over HTTPS (DoH)
- IETF (RFC Editor): RFC 7858: Specification for DNS over Transport Layer Security (TLS)
- Android Developers Blog: DNS over TLS support in Android P Developer Preview (13 April 2018)
- Google Security Blog: DNS-over-HTTP/3 in Android (19 July 2022)
- Google Public DNS: DNS-over-TLS and DNS-over-HTTPS (secure transports)
- Cloudflare: 1.1.1.1 encryption: DoH and DoT
- Cloudflare: Make DoH API requests (cloudflare-dns.com/dns-query)
- Quad9: Service addresses and features
- Microsoft Learn: Secure DNS Client over HTTPS (DoH)
- Google Chrome Help: Use secure DNS (Chrome on Android)
- Mozilla Support: Firefox DNS over HTTPS
- systemd: resolved.conf manual (DNSOverTLS=)
- Cloudflare: 1.1.1.1 diagnostic page
- NLnet Labs: Unbound documentation: DNS-over-HTTPS (downstream, new in 1.12.0)
- AdGuard: AdGuard Home: DNS encryption (DoT and DoH out of the box)