DoH vs DoT vs DoQ: Encrypted DNS Explained (and Which to Use)
Every time you open an app or a website, your device first asks a question: what is the IP address of this domain? That question is a DNS lookup, and for decades it has been sent in plain text. Anyone on the path, from the café Wi-Fi to your ISP, can read it, log it, and in some cases answer it with a fake address.
Encrypted DNS fixes that. There are three main ways to do it, DoH, DoT and DoQ, and this guide explains how they differ and how to turn them on.
Why plain DNS is a problem
Classic DNS sends queries over UDP port 53 with no encryption and no authentication. That creates three risks:
- Visibility. Your network operator can see every domain you look up, even if the site itself uses HTTPS.
- Tampering. A network can reply with a wrong IP, for example to show a block page, inject ads or redirect you to a phishing copy of a site.
- Spoofing on shared networks. On public Wi-Fi, an attacker on the same network can try to forge answers.
Encrypting DNS keeps the question and the answer private between you and the DNS resolver you chose, and lets your device verify it is talking to the real resolver.
The three protocols
DoH: DNS over HTTPS
DoH (standardised in RFC 8484) wraps DNS queries inside ordinary HTTPS requests on port 443.
- Pros: Looks like any other web traffic, so it is hard to single out and block. Supported by Chrome, Firefox, Edge, Windows 11 and many apps.
- Cons: Slightly more overhead than DoT because of the HTTP layer, though in practice the difference is small.
DoT: DNS over TLS
DoT (RFC 7858) sends DNS queries over a TLS connection on its own port, 853.
- Pros: Simple and efficient, and it is what Android’s built-in Private DNS setting uses (Android 9 and later).
- Cons: The dedicated port makes it easy for a network to identify, and some restrictive networks block port 853 entirely.
DoQ: DNS over QUIC
DoQ (RFC 9250) carries DNS over QUIC, the UDP-based transport behind HTTP/3.
- Pros: Fast connection setup and good behaviour on unreliable mobile networks, with no head-of-line blocking between queries.
- Cons: Newer, so fewer providers and fewer operating systems support it natively. Some networks block or degrade UDP traffic.
Quick comparison
| DoH | DoT | DoQ | |
|---|---|---|---|
| Transport | HTTPS (TCP or HTTP/3) | TLS over TCP | QUIC over UDP |
| Usual port | 443 | 853 | 853 |
| Hard to block | Most | Least | Medium |
| Built into Android | Not as the main option | Yes (Private DNS) | No |
| Provider support | Wide | Wide | Growing |
Which should you choose? If your network leaves port 853 alone, any of them is fine. If you are on a restrictive network, DoH is the most likely to work. The best setup is one that falls back automatically when one protocol or server is blocked.
Choosing a DNS provider
Encryption only protects the trip. The resolver at the other end still sees your queries, so pick one whose policy you are comfortable with. Common public options include Cloudflare (1.1.1.1), Google Public DNS (8.8.8.8) and Quad9 (9.9.9.9), which also blocks domains known to be malicious. Each has its own privacy policy, worth a quick read. You can also run your own resolver.
How to turn on encrypted DNS
Android (built-in)
- Open Settings → Network & internet (wording varies by brand).
- Find Private DNS.
- Choose Private DNS provider hostname and enter a DoT hostname, for example
one.one.one.oneordns.google.
This covers DoT only, and if the hostname becomes unreachable, some phones show “no internet” instead of falling back.
Windows 11
In Settings → Network & internet → (your connection) → DNS server assignment → Edit, set a supported DNS server address and switch DNS over HTTPS on.
Browsers
Chrome, Edge and Firefox have a Use secure DNS (or DNS over HTTPS) option in their privacy settings. This only protects lookups made by that browser, not your other apps.
With an app (all apps, all protocols)
A local VPN app can encrypt DNS for every app on the device, let you pick DoH, DoT or DoQ, and switch to a backup server automatically. That is what GreenTunnel VPN does:
- Secure DNS over DoH, DoT or DoQ with Cloudflare, Google, Quad9 or your own server.
- DNS profiles you can switch with one tap.
- Automatic fallback if a DNS server is blocked on your network.
- Optional on-device ad and scam blocking at the DNS level (see how to block ads and scam sites on Android without root).
Because it is a local VPN, your queries go from your device straight to the provider you chose. GreenTunnel never collects your DNS queries; they stay on your device apart from the lookup sent to your chosen resolver. If you also set Android’s Private DNS, the two can interact, so it is simplest to let one of them handle DNS.
What encrypted DNS does not do
- It does not hide your IP address or location.
- It does not hide the domain in the first HTTPS packet (SNI) unless the site supports Encrypted Client Hello. That is what DPI filters read; see what DPI is and how DPI bypass works.
- It does not make you anonymous. For that, look at the trade-offs in local VPN vs remote VPN.
Always use these tools within the laws and network rules that apply where you live.
Bottom line
Switching from plain DNS to DoH, DoT or DoQ is one of the easiest privacy upgrades you can make, and it stops a whole class of fake-answer attacks. DoH is the most robust on restrictive networks, DoT is built into Android, and DoQ is the fastest-growing option.
Want all three with automatic fallback, for every app? Try GreenTunnel VPN for free on Android, Windows or Linux.
How to install GreenTunnel VPN
- Android: Open Google Play, search for “GreenTunnel VPN” or tap the Google Play badge below, then tap Install. Updates arrive automatically through Google Play.
- iPhone / iPad (beta): The iOS version is in beta on TestFlight. Install Apple’s TestFlight app from the App Store, then open the TestFlight link below on your iPhone and tap Accept → Install. If the beta is full, check back later.
- Windows: Download the installer (.msi) from the official download page via the badge below, open it and follow the setup wizard.
- Linux: Install from the Snap Store using the badge below, or run this in a terminal:
sudo snap install greentunnel-vpn
Coming soon: App Store.
💡 Tip: only install GreenTunnel VPN from the official stores or the links on this page, never from unknown APK/IPA mirrors. See every feature on the GreenTunnel VPN page.
FAQ
Is DoH more private than DoT?
Both encrypt your DNS queries equally well. The difference is the transport: DoH looks like normal HTTPS on port 443, while DoT uses its own port 853, which makes it easier for a network to recognise or block. Privacy then depends mostly on which DNS provider you trust.
Does encrypted DNS hide my browsing from my ISP?
It hides your DNS lookups, but your ISP can still see the IP addresses you connect to and, on most sites, the domain name in the first HTTPS packet (SNI). Encrypted DNS is one layer of privacy, not full anonymity.
Will encrypted DNS slow down my internet?
Usually not noticeably. After the first secure connection is set up, queries reuse it. Picking a provider with a server close to you matters more than the protocol.