What Is DNS over HTTPS (DoH)?

DNS over HTTPS (DoH) is a protocol that encrypts DNS queries by sending them inside standard HTTPS traffic instead of over plain UDP port 53. Traditional DNS queries are unencrypted and visible to anyone on your network path - Your ISP, public Wi-Fi operators, and network-level eavesdroppers. DoH eliminates this exposure by wrapping DNS in TLS encryption.

DNS Query Methods Compared

ProtocolPortEncryptedAuthenticatedObservability
Plain DNS (UDP)53NoNoFully visible on network
DNS over TLS (DoT)853YesYesEncrypted but identifiable by port
DNS over HTTPS (DoH)443YesYesIndistinguishable from HTTPS traffic
DNS over QUIC (DoQ)853 UDPYesYesEncrypted, low latency - Emerging standard
DNSSEC53No (signs, not encrypts)YesVisible - Prevents tampering, not snooping

DoH Providers

ProviderDoH URLPrivacy PolicyFiltering
Cloudflarehttps://cloudflare-dns.com/dns-queryMinimal logging, auditedOptional (1.1.1.2 malware, 1.1.1.3 adult)
Googlehttps://dns.google/dns-queryLogs queries for 24–48 hoursNone
Quad9https://dns.quad9.net/dns-queryNo loggingMalicious domains blocked
NextDNShttps://dns.nextdns.io/[ID]Configurable per userFully configurable
AdGuard DNShttps://dns.adguard-dns.com/dns-queryAnonymized logsAd and tracker blocking

How to Enable DoH

  • Firefox: Settings → Privacy & Security → DNS over HTTPS - Select your provider or enter a custom URL.
  • Chrome / Edge: Settings → Privacy and security → Security → Use secure DNS - Choose a provider or enter a custom one.
  • Windows 11: Settings → Network & Internet → Wi-Fi/Ethernet → DNS server assignment → Edit → set Preferred DNS to 1.1.1.1 and choose "Encrypted only (DNS over HTTPS)".
  • macOS (Ventura+): third-party profiles (e.g. from Cloudflare's 1.1.1.1 app) or via configuration profile in System Settings → Privacy & Security.
  • Router-level DoH: some routers (ASUS with Merlin firmware, pfSense, OPNsense) support DoH configuration that covers all devices on the network. Once enabled, you can verify which DNS server your queries are using with the DNS lookup tool.