DNS over HTTPS and TLS: Setup in Every Browser and OS
Plain DNS is unencrypted, so your ISP and anyone on the path can see every domain you look up — even over HTTPS. DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt those lookups. This guide explains the difference and how to enable them across browsers and operating systems.
Why encrypt DNS at all
Before your browser can load a site it asks a DNS resolver to turn a domain like example.com into an IP address. Traditionally that lookup travels in plaintext, so your ISP, network operator, or anyone sniffing the connection can read every domain you visit — even when the page itself is HTTPS. DNS is one of the biggest privacy leaks left in ordinary browsing.
DNS over HTTPS (DoH) and DNS over TLS (DoT) both fix this by encrypting the query between you and the resolver. The practical difference: DoH sends DNS inside normal HTTPS on port 443, so it blends in with web traffic and is hard to block or distinguish; DoT uses a dedicated port (853), which is cleaner architecturally but easier for a network to spot and block. Browsers favour DoH; operating systems support both. You can test what your resolver sees on the DNS tool.
Enable encrypted DNS
Browser settings cover that browser; OS settings cover the whole device.
Firefox (DoH)
Settings, Privacy and Security, scroll to DNS over HTTPS. Choose Increased or Max protection and pick a provider. Firefox pioneered built-in DoH.
Chrome / Edge (DoH)
Settings, Privacy and security, Security, "Use secure DNS". Choose a provider or "With your current service provider" if it supports DoH.
Windows 11 (DoH)
Settings, Network and Internet, your adapter, DNS server assignment, set to Manual, enter a DoH-capable resolver and set DNS encryption to Encrypted only.
macOS, Android, iOS
macOS and iOS accept a signed DNS configuration profile for DoH/DoT. Android has "Private DNS" (DoT) under Network settings — enter the provider's hostname.
What encrypted DNS does and does not do
Encrypted DNS hides which domains you look up from your ISP and on-path observers, and stops DNS-based tampering. That is a real privacy and integrity win. But be clear on its limits: your chosen resolver still sees your queries, so you are shifting trust from your ISP to that provider — pick one with a strong privacy policy. It also does not hide the destination IP you then connect to, and TLS SNI can still reveal the hostname unless Encrypted Client Hello is in play.
How this relates to a VPN: a properly configured VPN already routes your DNS through its own resolver inside the encrypted tunnel, so your ISP sees neither your DNS nor your traffic. That is why checking for a DNS leak matters — if lookups escape the tunnel to your ISP's resolver, encryption on the rest of your traffic is undermined. DoH/DoT and a VPN are complementary: encrypted DNS protects lookups on any network; a VPN protects the whole connection and its DNS together.
Questions, answered
What is the difference between DoH and DoT?
Both encrypt DNS between you and the resolver. DoH sends queries inside normal HTTPS on port 443, so it blends with web traffic and is hard to block. DoT uses a dedicated port 853, which is architecturally cleaner but easier for networks to identify and block. Browsers prefer DoH; operating systems support both.
Does encrypted DNS make me anonymous?
No. It hides which domains you look up from your ISP and on-path observers, but the resolver you chose still sees your queries, and the destination IP you connect to is still visible. It is one privacy layer, not anonymity. Pair it with a VPN for broader protection.
Do I still need DoH if I use a VPN?
A well-configured VPN already routes DNS through its own resolver inside the tunnel, so on that connection DoH is redundant. DoH/DoT are most useful when you are not on a VPN. Either way, run a DNS-leak test to confirm your lookups are not escaping to your ISP.
Keep your DNS inside the tunnel
s4m's WireGuard/OpenVPN routes DNS through the encrypted tunnel so your ISP sees neither your lookups nor your traffic. Check for leaks with our DNS tool. No-logs by design, crypto accepted.
People found this page by searching for
- DNS over HTTPS and TLS
- DNS over HTTPS and TLS comparison
- DNS over HTTPS and TLS for scraping
- how to check DNS over HTTPS and TLS
- rotating vs sticky proxy sessions
- ip address comparison
- how to build your own proxy server on a VPS (3proxy / Dante)
- free proxy list
- proxy setup comparison
- buy socks5 proxy
- sneaker proxies
Real search phrases this page answers — the linked ones open the page that covers them in depth.