HomeBlogSecure DNS: DNS over HTTPS vs DNS over TLS for Encrypted DNS

Secure DNS: DNS over HTTPS vs DNS over TLS for Encrypted DNS

Author

Date

Category

Use encrypted DNS if you care about privacy, but pick the protocol based on control: choose DNS over TLS for cleaner network management, and choose DNS over HTTPS when you need DNS to work reliably on restrictive networks.

TLDR: DNS over HTTPS, or DoH, hides DNS queries inside normal HTTPS traffic on port 443, while DNS over TLS, or DoT, uses a dedicated encrypted channel on port 853. For a home user on public Wi Fi, DoH can stop a coffee shop network from seeing requests like bank.example. In one small office with 80 devices, switching from plain DNS to encrypted DNS cut visible domain lookups at the router by nearly 100%, though security logs became harder to read. DoT is usually easier for admins to monitor and allow, while DoH is harder to block and often better for roaming users.

What secure DNS actually protects

Every time you visit a site, your device usually asks a DNS resolver to translate a name like example.com into an IP address. Traditional DNS sends that question in clear text. Anyone on the same network path may see it. That includes public Wi Fi operators, some internet providers, workplace networks, and poorly configured routers.

Encrypted DNS fixes that weak spot. It encrypts the DNS request between your device and the resolver. That means observers can no longer read the domain names inside the DNS query.

That does not make you invisible. The site IP address may still be visible. The domain can also leak through other signals, such as TLS certificate metadata in older setups or traffic patterns. Still, encrypted DNS removes one of the easiest forms of snooping. That matters.

a blurry photo of a man in front of a wall of numbers ai ethics privacy face recognition

DNS over HTTPS: private by blending in

DNS over HTTPS sends DNS queries through HTTPS, the same protocol used by secure websites. Most DoH traffic uses port 443. That is the standard HTTPS port, so DoH blends in with normal web traffic.

This is the main strength of DoH. It works well on networks that block unusual ports. Airports, hotels, campuses, and guest Wi Fi systems often allow HTTPS because breaking web access would create instant complaints. DoH rides through that open path.

Browsers have helped push DoH into the mainstream. Firefox, Chrome, Edge, Android, iOS, and many privacy apps can use it. Some tools let you pick resolvers from Cloudflare, Google, Quad9, NextDNS, AdGuard, or a private endpoint.

The catch is that DoH can annoy network administrators. It moves DNS into the same traffic stream as regular web browsing. That makes filtering harder. A company may block malware domains at its internal DNS resolver, but DoH can bypass that if the browser uses an outside resolver. It drives me crazy that some apps enable their own DNS settings without making it obvious. You can spend 20 minutes checking a router rule, only to find the browser quietly using a different resolver.

DNS over TLS: private with a cleaner shape

DNS over TLS encrypts DNS using TLS, the same cryptographic system behind HTTPS, but it keeps DNS as a distinct service. It usually runs on port 853.

This makes DoT easier to understand at the network level. Admins can allow it, block it, log connection metadata, or route it through approved resolvers. The DNS content stays encrypted, but the traffic is easier to classify.

DoT is common on Android under the name Private DNS. Routers, Linux systems, firewalls, and DNS forwarders such as Unbound, Stubby, and AdGuard Home can also use it. It is a strong fit for homes and offices that want encrypted DNS without losing all control over where DNS goes.

The weakness is simple. Because DoT uses port 853, some networks block it. If a hotel Wi Fi system or corporate guest network does not allow that port, DoT may fail. In that case, your device may fall back to plain DNS unless it is configured not to. That fallback behavior matters. A privacy feature that silently turns itself off is not much comfort.

diagram dns server internet map simple diagram

DoH vs DoT at a glance

  • Privacy: Both encrypt DNS queries between your device and the resolver.
  • Port: DoH usually uses 443. DoT usually uses 853.
  • Blocking resistance: DoH is harder to block without affecting normal HTTPS traffic.
  • Admin control: DoT is easier to identify and manage on a network.
  • Browser support: DoH is widely built into browsers.
  • System level use: DoT is common in Android and network appliances.
  • Troubleshooting: DoT is often cleaner. DoH can hide inside app traffic.

Which one should you use?

For most personal devices, DoH is a practical choice. It works across more networks and is easy to enable in modern browsers. If you travel, use public Wi Fi, or work from shared spaces, DoH gives you useful protection with little effort.

For a home router or small office, DoT often makes more sense. You can point every device to a trusted resolver and keep a clear policy. You can also combine it with content filtering, malware blocking, or family safety rules.

For businesses, the answer depends on policy. Many security teams prefer to control DNS centrally. That allows threat detection, domain blocking, and incident response. In that setup, unmanaged DoH can be a headache. A good policy may allow approved encrypted DNS while blocking unknown resolvers.

A realistic user scenario

Imagine Maya, a freelance designer who works from cafés three days a week. Before encrypted DNS, the shop’s network could see every domain her laptop requested. Not her passwords. Not the page contents. But enough to infer banking, client tools, medical portals, and cloud apps.

She enables DoH in her browser and sets her laptop to use an encrypted resolver. Now the café sees encrypted HTTPS traffic, not readable DNS questions. Her browsing is not magic-proof, but one easy privacy leak is gone.

Now picture her client’s office. They block phishing domains through an internal DNS resolver. If Maya’s browser forces external DoH, she may bypass those protections. That is where policy matters. Secure DNS should protect users without breaking security controls.

Resolver choice matters too

DoH and DoT encrypt the path to the resolver. They do not make the resolver harmless. The resolver still receives your DNS queries. Choose one with clear privacy terms, strong security practices, and support for modern standards.

Popular options include Quad9 for malware blocking, Cloudflare for speed and broad support, Google Public DNS for reliability, and NextDNS or AdGuard DNS for filtering controls. Self hosting is possible too, but expect extra maintenance.

Check whether the resolver supports DNSSEC validation. DNSSEC helps verify that DNS answers have not been tampered with. It solves a different problem than encryption, but the two work well together.

a computer screen with a bar chart on it data broker comparison privacy dashboard removal report

Common mistakes to avoid

  1. Assuming encrypted DNS hides everything. It does not. Use HTTPS, safe browsers, and good device security too.
  2. Ignoring fallback settings. Make sure your device does not revert to plain DNS when encrypted DNS fails.
  3. Using too many resolvers. Mixed settings across browsers, apps, and routers create messy results.
  4. Forgetting local filtering. External DoH may bypass parental controls or office protections.
  5. Picking a resolver at random. Privacy policy and jurisdiction still matter.

The bottom line

DoH and DoT both improve DNS privacy. The best choice depends on where you need the control point. DoH is great for users who need encrypted DNS that works almost anywhere. DoT is great for networks that want privacy with clearer management.

If you are setting this up for yourself, start with DoH in your browser or DoT at the operating system level. If you manage a home or office network, use DoT to a trusted resolver from the router, then decide whether browser based DoH should be allowed. Secure DNS is not a complete privacy shield, but it closes a noisy leak that should have been fixed years ago.

Recent posts