DoH and DoT Explained: Encrypted DNS Setup Guide

DoH and DoT Explained: Encrypted DNS Setup Guide

DNSsecurityprivacy

DoH and DoT Explained: Encrypted DNS Setup Guide

Every time you visit a website, your device sends a DNS query to translate the domain name into an IP address. By default, this query travels across the network in plaintext — visible to anyone who can observe your traffic. DNS over HTTPS (DoH) and DNS over TLS (DoT) solve this problem by encrypting your DNS queries. This guide explains how both protocols work and walks you through enabling them on every major browser and operating system.

The Security Problem with Traditional DNS

Standard DNS uses UDP port 53 and transmits queries without any encryption. This creates several serious vulnerabilities:

These risks are why encrypted DNS protocols were developed. If you need a refresher on DNS fundamentals, see our guide to how DNS works.

What Is DoH (DNS over HTTPS)?

DoH wraps DNS queries inside HTTPS requests on port 443 — the same port and encryption used by every secure website. Because DoH traffic is indistinguishable from regular web browsing, network observers cannot tell that a DNS lookup is happening.

https://cloudflare-dns.com/dns-query?name=example.com&type=A

A DoH request is a standard HTTPS GET or POST request. The response is returned in application/dns-message format, encrypted with TLS 1.3. Since DoH piggybacks on existing HTTPS infrastructure, it is easy to deploy and very difficult for firewalls to block without also blocking all web traffic.

What Is DoT (DNS over TLS)?

DoT encrypts DNS queries using TLS on a dedicated port (853). Unlike DoH, it uses a separate port, which means network administrators can clearly identify DNS traffic and apply policies to it.

DoT preserves the standard DNS wire format and only encrypts the transport layer. Its protocol structure is simpler than DoH, making implementation straightforward. The trade-off is that port 853 can be easily blocked by firewalls that want to prevent encrypted DNS.

DoH vs. DoT Comparison

FeatureDoHDoT
Port443 (HTTPS)853 (dedicated)
Blocking difficultyHard (blends with web traffic)Easy (dedicated port)
Browser supportChrome, Firefox, Edge, SafariLimited
OS supportWindows 11, macOS, iOS, AndroidAndroid 9+, iOS 14+
PerformanceHTTP/2 multiplexingRequires TCP handshake
Network managementDifficult to identifyEasy to identify and control

How to Enable DoH: Browser-by-Browser Guide

Chrome

  1. Navigate to chrome://settings/security
  2. Enable Use secure DNS
  3. Select a provider: Cloudflare (1.1.1.1) or Google (8.8.8.8)

Firefox

  1. Go to Settings > Privacy & Security > DNS over HTTPS
  2. Choose Max Protection or Default Protection
  3. Set the provider to Cloudflare or enter a custom URL

Edge

  1. Navigate to edge://settings/privacy
  2. Enable Use secure DNS to specify how to look up the network address for websites
  3. Choose your preferred DNS provider

Safari

Safari uses the system-level DNS configuration on macOS and iOS. Go to System Settings > Network > DNS to install an encrypted DNS profile, or use the Cloudflare 1.1.1.1 app for automatic setup.

How to Enable DoT: Mobile Setup

Android (9.0 and later)

  1. Open Settings > Network & Internet > Private DNS
  2. Select Private DNS provider hostname
  3. Enter dns.google or one.one.one.one

iOS (14 and later)

Enabling DoT on iOS requires installing a DNS configuration profile. The simplest approach is to install the Cloudflare 1.1.1.1 app, which automatically configures DoH/DoT. For manual setup, you can create a .mobileconfig profile using Apple Configurator and install it on your device.

Public Encrypted DNS Servers

ServiceDoH URLDoT HostnameIP
Cloudflarehttps://cloudflare-dns.com/dns-queryone.one.one.one1.1.1.1
Googlehttps://dns.google/dns-querydns.google8.8.8.8
Quad9https://dns.quad9.net/dns-querydns.quad9.net9.9.9.9

Cloudflare leads in speed and privacy commitments. Quad9 includes automatic blocking of known malicious domains. Google offers the broadest global infrastructure with Anycast routing across hundreds of locations.

Limitations and Controversies

Encrypted DNS is not a silver bullet. Several important caveats exist:

To verify your DNS configuration or inspect specific records, check out our DNS lookup guide.

Wrapping Up

DoH and DoT represent a meaningful step forward for internet privacy. The setup takes just a few minutes, but the protection is substantial — especially if you frequently use public Wi-Fi or want to keep your browsing activity private from your ISP.

Want to see which DNS server your queries are hitting right now? Try our lookup tool below.

Try our DNS lookup tool →

한국어로 읽기 →
AD

Professional Matching — Diamatch

Trust of a matchmaker + convenience of an app

Get Started

Related Posts