DNS over TLS explained in plain terms means understanding a quiet leak you probably never think about: every time you visit a website, your device asks a DNS server for the address, and that question travels across the network in plain text, readable by anyone in between. The central question is how to keep those questions private without breaking the internet, and the answer is to wrap them in the same encryption your browser already uses for the web itself.
DNS over TLS, usually called DoT, is a protocol that encrypts DNS queries using Transport Layer Security, the same encryption behind HTTPS, so that the names you look up cannot be read or changed in transit. It was standardised in RFC 7858 in 2016 and runs on its own dedicated port, 853.
The problem it solves is bigger than most people realise, and the fix is simpler than it sounds. This article explains what DNS over TLS is, how it works, and how to use it.
Key takeaways
- DNS over TLS encrypts your DNS queries so nobody in between can read them.
- It uses the same TLS encryption as HTTPS, on dedicated port 853.
- It stops snoopers and attackers changing the answers you receive.
- It does not hide which sites you visit from your DNS provider itself.
- It is built into Android, modern routers, and most public resolvers.
What DNS over TLS is
Every DNS lookup is a question, and in plain DNS that question is sent as readable text, together with the answer that comes back. Anyone on the same network, the same Wi-Fi hotspot, or the path between you and the resolver can read those questions, build a list of every site you visit, and even replace the answers with their own, sending you to a fake version of a real site.
DNS over TLS fixes this by wrapping the whole conversation in TLS. Your device, or stub resolver, opens an encrypted connection to the resolver, verifies its certificate the way a browser verifies a website, and then sends every query through that tunnel. The questions and answers are still the same, but to anyone watching the wire they are unreadable noise.
The protocol has its own port, 853, which is how it differs from DNS over HTTPS, its better-known sibling, which hides DNS inside ordinary web traffic on port 443. The dedicated port makes DoT easy for a network to recognise and manage, which is exactly why some networks block it, and exactly why others prefer it. Our guide to DNS explains the lookup system itself, and our guide to TLS explains the encryption that protects it.
How DNS over TLS works
A lookup begins when your device needs an address. Instead of sending the question in plain text, the stub resolver opens a TLS connection to the configured resolver, such as Cloudflare’s 1.1.1.1 or Quad9, on port 853, and the two sides perform a TLS handshake, agreeing on encryption keys and checking the resolver’s certificate against its hostname.
Once the tunnel is up, the queries flow through it like any other DNS traffic, only encrypted. The resolver answers them as usual, the answers come back through the same tunnel, and the connection is kept open and reused for later queries, so the cost of the handshake is paid once and then amortised over hundreds of lookups.
That reuse matters, because the handshake is the expensive part. A new TLS connection takes a round trip or two to set up, and on a slow network that delay is noticeable, so resolvers and clients keep the connection alive and pipeline queries through it. Some clients also use session resumption, which lets a returning device skip most of the handshake entirely.
Authentication is what makes the system trustworthy rather than merely private. The client checks that the certificate presented by the resolver matches the hostname it was configured to use, and if it does not match, the connection is refused. Without that check, an attacker could pretend to be the resolver and the encryption would protect a conversation with the wrong party.
When DoT is unavailable, most clients fall back to plain DNS rather than failing, which is a deliberate trade-off. The fallback keeps the internet working on networks that block port 853, but it also means a determined attacker can force the fallback and read the queries anyway, which is why strict mode, where the client refuses to fall back, is the safer choice where it is offered.

Comparing DNS over TLS with other private DNS options
DNS over TLS is one of several ways to protect DNS, and each was built with a different emphasis. Plain DNS is fast and open but readable by everyone, DNS over HTTPS hides queries inside web traffic, and DNSCrypt predates both with its own encryption, and each approach trades visibility for manageability in a different way.
The table below sets out the main contrasts between the leading approaches.
| Aspect | DNS over TLS | DNS over HTTPS | Plain DNS |
|---|---|---|---|
| Encryption | TLS on port 853 | HTTPS on port 443 | None |
| Visible to networks | Yes, as DNS traffic | No, looks like web traffic | Fully visible |
| Easy to block | Yes, block port 853 | Hard, would block the web | Not applicable |
| Authentication | Certificate check | Certificate check | None |
| Best for | Devices and routers | Browsers and apps | Trusted local networks only |
The practical result is that DNS over TLS is the right choice for a device or a router that wants managed, authenticated privacy, DNS over HTTPS suits browsers that want to blend in, and plain DNS belongs only on networks you fully trust.
Where DNS over TLS is used
Android phones use DNS over TLS through the Private DNS setting. Since Android 9, a phone can be pointed at a resolver hostname, and every lookup the phone makes is encrypted, which protects the owner on public Wi-Fi without any app or VPN.
Home routers use DNS over TLS to protect a whole household at once. A router that forwards all DNS through an encrypted connection to a public resolver means every device behind it, from a laptop to a smart television, gets private lookups without any configuration on the device itself.
Public resolvers all support DNS over TLS. Cloudflare’s 1.1.1.1, Quad9, and Google’s 8.8.8.8 each accept encrypted queries on port 853, and their support is what makes the protocol usable: a client only needs to know the resolver’s hostname and the protocol takes care of the rest.
Enterprise networks use DNS over TLS to stop DNS spoofing inside the office. An attacker on a corporate network who can answer DNS queries can redirect staff to fake login pages, and encrypted, authenticated DNS removes that attack entirely, because the answers can only come from the real resolver.
Internet service providers in some countries deploy DNS over TLS for their customers. Where regulators require ISPs to filter DNS, the provider can still offer encrypted lookups to its own resolver, keeping the queries private from everyone else on the path while complying with local rules.
Strengths and limits
The greatest strength of DNS over TLS is that it is simple and honest. It does one job, encrypting DNS, it does it on a dedicated port that networks can see and manage, and it authenticates the resolver, so the privacy it promises is real rather than assumed.
It is also a strength that the protocol is a standard, not a product. Any resolver and any client that speak RFC 7858 can work together, which means the user can choose a resolver they trust and switch whenever they like, rather than being locked into one company’s service.
The limits are real, though. DNS over TLS does not hide your browsing from the resolver itself, which still sees every query, and it does not hide the destination of your connections, because the IP addresses you then connect to are still visible. For full privacy, it needs to sit alongside a VPN or a privacy-focused resolver, not replace them.
DNS over TLS checklist
- Turn on Private DNS on Android, or DoT on your router, today.
- Point it at a resolver you trust, such as Cloudflare or Quad9.
- Use strict mode where offered, so a failure does not silently fall back.
- Check that port 853 is open on your network before relying on it.
- Remember the resolver itself still sees your queries; choose it carefully.
- Do not expect DoT to hide the sites you connect to from your ISP.
- Combine it with HTTPS, which protects the traffic after the lookup.
- Test that lookups still work after enabling it, on every device.
- Consider DNS over HTTPS as well, for browsers that support it.
Frequently asked questions
What is DNS over TLS in simple terms?
It is DNS queries sent through an encrypted TLS tunnel on port 853, so nobody between you and the resolver can read or change them.
What is the difference between DNS over TLS and DNS over HTTPS?
DNS over TLS uses its own port, 853, so networks can see it is DNS traffic, while DNS over HTTPS hides queries inside ordinary web traffic on port 443, which is harder to block but harder to manage.
Does DNS over TLS hide my browsing from my ISP?
Not entirely. It hides the DNS questions, but the ISP can still see the IP addresses you connect to afterwards, unless you also use a VPN.
Does DNS over TLS hide my browsing from the resolver?
No. The resolver answers your queries, so it sees them, which is why choosing a resolver you trust matters as much as the encryption itself.
How do I turn on DNS over TLS?
On Android, use the Private DNS setting with a resolver hostname; on a router, enable the DoT option and enter the resolver; on a computer, use a stub resolver that supports it.
When should I not rely on DNS over TLS?
When you need to hide your browsing from your network entirely, where a VPN is the right tool, or on a network that blocks port 853, where DNS over HTTPS may work instead.
The bottom line
DNS over TLS explained in one line is this: wrap every DNS question in TLS on port 853, and nobody in between can read or rewrite it.
It is a small change with an outsized effect, and the reason your list of visited sites is no longer readable by everyone on the same Wi-Fi.
This article is general information about how DNS over TLS works, not advice about choosing privacy tools for a particular situation.







