Network security

What Is DNS over TLS? Port 853, Privacy and How to Turn It On

DNS over TLS wraps your DNS lookups in TLS on port 853. Here is how it works, where it helps, and how to switch it on.

Cysoro Security TeamPublished · 8 min read
dns.google : 853query: example.comTLS encryptedAnswer: 93.184.216.34 853 NETWORK SECURITY DNS overTLS Encrypted lookups on port 853.
Quick answer

DNS over TLS, or DoT, encrypts DNS queries between your device and its DNS resolver using TLS on TCP port 853. It stops networks, ISPs and attackers on public Wi-Fi from reading the domain names you look up or tampering with the answers. It is defined in RFC 7858 and is the protocol behind Android Private DNS.

Key takeaways

  • DNS over TLS encrypts DNS queries on TCP port 853, hiding the domain names you look up from your network.
  • It stops eavesdropping and on-path tampering, but it does not hide your traffic from the DNS resolver itself.
  • Android Private DNS, many routers and some operating systems support DoT, while most browsers use DNS over HTTPS instead.

Every website you visit starts with a DNS lookup, and for decades that lookup travelled in plain text. Anyone on your network could read it, log it or change the answer. DNS over TLS fixes that one leg of the journey.

What is DNS over TLS?

DNS over TLS, usually shortened to DoT, is a protocol that encrypts DNS queries between your device and its DNS resolver using TLS, the same encryption that protects HTTPS websites.

Normal DNS runs on UDP or TCP port 53 with no encryption at all. Your device asks a resolver, such as your ISP or a public resolver like Cloudflare 1.1.1.1, for the IP address of a domain, and the answer comes back in the clear. On public Wi-Fi, a hotel network or a compromised home router, anyone watching can see every domain you look up.

DoT wraps that same query inside a TLS session on TCP port 853. The content is hidden, and the resolver proves its identity with a certificate before any query is sent. It is defined in IETF RFC 7858, published in May 2016.

Think of it this way: plain DNS is a postcard, and DNS over TLS is a sealed letter. The postman still delivers it, but nobody along the way can read what is inside.

How does DNS over TLS work?

Your device opens a TCP connection to the resolver on port 853, completes a TLS handshake, checks the resolver certificate, and then sends DNS queries over that encrypted channel, reusing the connection for later lookups.

How a DNS over TLS lookup works 1ConnectTCP to resolveron port 853 2TLS handshakeresolver provesits identity 3Encrypted querydomain name sentinside TLS 4Encrypted answerIP addressreturned safely The connection is reused for later lookups, so the handshake cost is paid once.
A DNS over TLS lookup in four steps. Illustration by Cysoro.

RFC 7858 describes two usage profiles. The opportunistic profile encrypts when the resolver supports it and falls back to plain DNS when it does not. The strict profile, sometimes called out-of-band key-pinned, only talks to a resolver whose certificate or key you already trust, and refuses to fall back.

For most people, the strict approach is the safer choice. Falling back silently defeats the purpose: you think your lookups are private, but they are not. Android Private DNS in its provider-hostname mode behaves this way, refusing plain DNS once you set a hostname.

One practical detail matters for speed. TLS needs a handshake, and TCP needs a connection, so the first lookup is slower than plain DNS. After that, the connection stays open and later queries reuse it, which keeps the extra cost small.

Why is plain DNS a privacy and security problem?

Plain DNS exposes every domain you look up to your network, your ISP and anyone able to watch the wire, and it lets an attacker on the path change the answer and send you to a fake site.

The list of domains you resolve is a detailed record of your life: your bank, your doctor, your employer, the news you read and the services you use. On an open Wi-Fi network, that list is visible to anyone with basic packet-capture tools.

Tampering is the sharper risk. A fake DNS answer can send you to a look-alike login page even when you typed the right address. That is why public Wi-Fi attacks often start with DNS: redirect the lookup, and the rest of the attack follows. Our guide to securing your Wi-Fi covers the other layers you need alongside encrypted DNS.

DoT closes both gaps on the leg between your device and the resolver. It does not fix everything downstream: the resolver still sees your queries, and the website you then visit still sees your IP address unless you also use a VPN.

DNS over TLS vs DNS over HTTPS: what is the difference?

DNS over TLS and DNS over HTTPS both encrypt DNS queries, but DoT uses its own dedicated port, 853, while DoH hides queries inside ordinary HTTPS traffic on port 443, which makes DoH harder to block and DoT easier to manage.

FeatureDNS over TLS (DoT)DNS over HTTPS (DoH)Plain DNS
StandardRFC 7858 (2016)RFC 8484 (2018)RFC 1035 (1987)
PortTCP 853, dedicatedTCP 443, shared with HTTPSUDP/TCP 53
EncryptionTLSHTTPS (TLS)None
Easy to block?Yes, block port 853Hard, looks like web trafficTrivially visible
Typical useAndroid Private DNS, routers, operating systemsChrome, Firefox, Edge, Windows 11Default almost everywhere
Who sees queries?The resolver onlyThe resolver onlyNetwork, ISP, anyone on the path

The choice is mostly made for you by your device. Browsers default to DoH because it blends in with web traffic and works through almost any firewall. Operating systems and routers prefer DoT because a dedicated port is easy to identify, allow and monitor.

For a business, that visibility is a feature, not a flaw. An IT team can allow port 853 to its chosen resolver and block it to everyone else, which keeps devices on managed DNS. With DoH, the same control needs a list of known DoH servers to block, which is harder to maintain. Infoblox recommends blocking direct DNS traffic to outside resolvers so internal hosts use IT-managed DNS with its own filtering.

Neither protocol is clearly better for privacy in the abstract. Both hide queries from the network and both trust the resolver. Pick the one your platform supports, and use a resolver you trust.

Does DNS over TLS replace DNSSEC?

No, DNS over TLS and DNSSEC solve different problems: DoT encrypts the channel between your device and the resolver, while DNSSEC uses digital signatures to prove the DNS data itself is authentic.

DNSSEC adds signatures to DNS records so a resolver can check that an answer really came from the domain owner and was not changed on the way. It does not encrypt anything, so anyone watching can still read the queries.

DoT does the opposite. It encrypts the query and the answer on the last leg, but it does not prove the data is genuine. A resolver that returns a wrong answer over an encrypted channel is still returning a wrong answer.

Used together, they cover both gaps: DNSSEC validates the data, and DoT protects it in transit to your device. You can check whether a domain publishes DNSSEC records with our free DNS lookup tool.

How do you enable DNS over TLS?

Enable DoT where your operating system or router offers it: Android Private DNS, a router that supports DoT, or a local stub resolver such as Stubby or Unbound on a computer or server.

Android: Private DNS

Android has shipped Private DNS since Android 9, released in 2018. Open Settings, go to Network and internet, tap Private DNS, choose Private DNS provider hostname, and enter a hostname such as one.one.one.one for Cloudflare or dns.google for Google. Do not enter an IP address: Android needs a hostname so it can check the resolver certificate.

Once set, the setting applies to every app on Wi-Fi and mobile data. If the resolver cannot be reached over TLS, Android will not silently fall back to plain DNS in this mode, which is the behaviour you want.

Router: protect the whole network

Some routers, including models running Asuswrt-Merlin, OpenWrt and recent Fritz!Box firmware, let you set a DoT resolver in the DNS settings. This protects every device on the network, including smart TVs and gadgets that have no DNS setting of their own.

Check your router manual for a DNS over TLS or encrypted DNS option. If your router does not offer one, a small device running Pi-hole or Unbound can act as your local resolver and forward queries over DoT.

Computer: stub resolvers

On Linux, tools such as Stubby and Unbound can forward all local DNS queries over DoT. On Windows 11, the built-in encrypted DNS support uses DoH rather than DoT, so a stub resolver is the usual way to get DoT on Windows. On macOS, third-party apps and command-line tools fill the same role.

After enabling DoT, test it. Visit a DNS leak test page, or check your current IP and DNS resolver with our free tools, and confirm the resolver shown is the one you chose.

What are the benefits and limits of DNS over TLS?

DoT stops eavesdropping and tampering on the path to your resolver, but it does not hide your queries from the resolver, stop tracking by websites, or protect traffic after DNS resolution.

What DNS over TLS does — and does not — do It protects you from• Networks reading your lookups• Fake DNS answers on the path• Wi-Fi snooping of domains• ISP logging of DNS queries• Simple DNS hijacking It does not stop• Your resolver seeing queries• Websites tracking your visit• Your ISP seeing IP addresses• Malware already on your device• Phishing sites with valid TLS
DNS over TLS protects the lookup, not everything after it. Illustration by Cysoro.

The resolver question deserves attention. When you switch from your ISP resolver to Cloudflare or Google, you move trust from one large company to another. Read the resolver privacy policy before you switch, and prefer one that commits to not selling query data.

Performance is a smaller trade-off. The first lookup pays for a TCP connection and a TLS handshake, and some networks block port 853 entirely, which can break DNS until you switch the setting off. If your connection stops working on a new network, try disabling Private DNS before blaming anything else.

For a fuller picture of what your browser leaks, run our free WebRTC leak test alongside your DNS checks.

Why is DNS over TLS not working?

The most common causes are a network blocking TCP port 853, a wrong hostname in the Private DNS field, or a resolver that does not support DoT, and each one has a quick check.

  • Port 853 blocked: some corporate, school and hotel networks block the port. Try the same device on mobile data. If it works there, the network is blocking DoT.
  • Wrong hostname: Android needs a hostname, not an IP address. one.one.one.one works; 1.1.1.1 does not belong in that field.
  • Resolver does not support DoT: not every public resolver offers port 853. Use a known DoT resolver such as Cloudflare, Google, Quad9 or AdGuard DNS.
  • Certificate failure: if the resolver certificate cannot be verified, a strict client will refuse to connect. Check the hostname spelling and the device date and time.
  • App bypass: some apps use their own DoH resolver and ignore the system setting. That is a browser or app choice, not a DoT failure.

If you run a business network, decide the policy deliberately. Blocking port 853 keeps devices on your filtered DNS, but it also removes a privacy layer for staff. Document the choice either way, and see our small business cybersecurity checklist for the surrounding controls.

The bottom line

DNS over TLS is a small change with a real payoff: one setting encrypts the lookups that used to travel in plain text, and it works on Android, many routers and most modern stub resolvers.

Turn it on with a resolver you trust, keep DNSSEC in mind for authentication, and remember that encrypted DNS is one layer, not a complete privacy solution. You can verify your setup in seconds with the free DNS lookup tool.

Frequently asked questions

What is DNS over TLS in simple terms?

DNS over TLS encrypts the lookup your device makes to turn a domain name into an IP address. Without it, anyone on your network can see which sites you visit. With it, that lookup travels inside an encrypted TLS connection on port 853.

What port does DNS over TLS use?

DNS over TLS uses TCP port 853. That port is dedicated to DoT, which makes it easy for a network administrator to allow, block or monitor separately from ordinary web traffic on port 443.

Is DNS over TLS the same as DNS over HTTPS?

No. Both encrypt DNS queries, but DNS over TLS runs on its own port, 853, while DNS over HTTPS sends queries inside ordinary HTTPS traffic on port 443. DoH blends in with web traffic and is harder to block, while DoT is easier for networks to manage.

Does DNS over TLS hide my browsing from my ISP?

It hides the domain names in your DNS lookups from your ISP and your local network, but your ISP can still see the IP addresses you connect to afterwards, and your DNS resolver can still see your queries. For stronger privacy, combine encrypted DNS with a VPN.

How do I turn on DNS over TLS on Android?

Go to Settings, then Network and internet, then Private DNS. Choose Private DNS provider hostname and enter a hostname such as one.one.one.one for Cloudflare or dns.google for Google. Android has offered this setting since Android 9.

Does DNS over TLS replace DNSSEC?

No. DNS over TLS encrypts the connection between your device and the resolver, while DNSSEC authenticates the DNS data itself with digital signatures. They solve different problems and work best together.

Can DNS over TLS be blocked?

Yes. Because it uses a dedicated port, a network can block TCP port 853 and force devices back to plain DNS. Some networks do this so they can apply their own DNS filtering, which is a trade-off between control and privacy.

Is DNS over TLS safe to use?

Yes, when you point it at a resolver you trust. The encryption itself is standard TLS, the same technology that protects HTTPS. The main risk is choosing an untrustworthy resolver, since it can still see every domain you look up.

Sources

  1. IETF — RFC 7858: Specification for DNS over Transport Layer Security (TLS)
  2. Infoblox — What is DNS over TLS (DoT)?
  3. DNS Robot — What Is Private DNS? Meaning, Hostname List and Setup
  4. Pandromeda — DoH vs DoT: Which DNS Encryption to Use
Written & fact-checked byCysoro Security Team

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.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against IETF RFC 7858, Infoblox's DNS over TLS guide and current Android Private DNS documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free