DNS over HTTPS (DoH) is a protocol defined in RFC 8484 that sends DNS queries and responses inside HTTPS connections, usually on port 443. It encrypts lookups between your device and the resolver, stopping eavesdroppers and on-path attackers from reading or tampering with them. It does not hide your queries from the resolver itself, and it does not replace DNSSEC, a VPN, or content filtering.
Key takeaways
- DoH encrypts DNS queries inside HTTPS on port 443, so they blend in with ordinary web traffic.
- It protects the path to the resolver, but the resolver still sees every domain you look up.
- Businesses should run DoH through a resolver they control, not let browsers bypass company DNS policy.
Every time you visit a website, your device first asks a DNS resolver where that site lives. For decades that question travelled in plain text, readable by anyone on the network. DNS over HTTPS changes that by wrapping the question in the same encryption your browser uses for secure websites.
What is DNS over HTTPS?
DNS over HTTPS, usually shortened to DoH, is a protocol that sends DNS queries and responses inside HTTPS connections. It was standardized by the IETF as RFC 8484 in October 2018.
Normal DNS uses UDP or TCP on port 53, with no encryption. Anyone on the path — your internet provider, a public Wi-Fi operator, or an attacker on the same network — can see every domain you look up and can change the answer, sending you to a fake site instead. DoH removes that visibility by encrypting the whole exchange.
DoH does not change what DNS does. It still turns a name such as example.com into an IP address. It only changes the transport: the same DNS message, in the same wire format, travels inside an HTTP request protected by TLS.
Because DoH uses port 443, the same port as all HTTPS web traffic, a DoH query looks like any other secure web request. That makes it hard for a network to block DoH without also blocking ordinary secure browsing.
How does DNS over HTTPS work?
DoH maps each DNS query and response pair onto a single HTTP exchange. Your device, the DoH client, is configured with a URI template for the resolver, usually an address ending in /dns-query.
When you type a domain name, the client encodes the DNS query and sends it to the resolver. The resolver looks up the answer and returns it over the same encrypted channel, and your browser then connects to the site. The whole process usually takes milliseconds.
RFC 8484 requires DoH servers to support both HTTP GET and POST. With GET, the query is encoded with base64url in a dns parameter in the URL. With POST, the raw DNS message is sent as the request body with the media type application/dns-message.
HTTP/2 is the recommended minimum version, because it allows connection reuse, header compression, and padding that can hide the size of queries. The client should use a DNS ID of 0 in its requests, because HTTP already matches each request to its response, and a varying ID would stop HTTP caches from working well.
Why does DNS over HTTPS matter?
DNS is one of the most revealing parts of your internet use. The list of domains you look up says a lot about your interests, health, finances, and work, even before you visit a single page.
Without encryption, that list is visible to your internet provider, to the operator of any Wi-Fi network you join, and to anyone who can intercept traffic on the path. In some countries it is also used for censorship, by blocking or redirecting lookups for banned sites.
DoH also stops a common attack. With plain DNS, an attacker on a public network can answer your lookup faster than the real resolver, a technique called DNS spoofing or cache poisoning, and send you to a copy of your bank or email login page. With DoH, a forged answer would need to break TLS, which is far harder.
For website owners, DoH matters too. If visitors use a resolver that blocks malicious domains, DoH can add a layer of protection against phishing sites. Our free DNS lookup tool shows what your own domain currently returns.
How does DoH compare with DoT and DoQ?
DoH is one of three encrypted DNS transports. DNS over TLS (DoT, RFC 7858) wraps DNS in TLS on a dedicated port, 853. DNS over QUIC (DoQ, RFC 9250) runs DNS over the QUIC transport, which is faster to establish than TCP plus TLS.
| Feature | DNS over HTTPS (DoH) | DNS over TLS (DoT) | DNS over QUIC (DoQ) |
|---|---|---|---|
| Standard | RFC 8484 (2018) | RFC 7858 (2016) | RFC 9250 (2022) |
| Port | 443, same as HTTPS | 853, dedicated | 853, UDP |
| Easy to identify on a network | Hard, blends with web traffic | Easy, distinct port | Easy, distinct port and protocol |
| Easy to block selectively | Hard | Easy | Easy |
| Where it is used most | Browsers, apps | Operating systems, routers | Emerging, some resolvers |
| Connection setup | TCP plus TLS | TCP plus TLS | QUIC, faster handshake |
| Privacy from on-path observers | Strong | Strong | Strong |
None of the three is clearly better in every situation. DoH wins where blending in matters, such as in a browser on a restrictive network. DoT wins where a network administrator wants to see, allow, or block encrypted DNS explicitly. Many resolvers, including Cloudflare and Google, support both.
There is also a newer option, Oblivious DNS over HTTPS (ODoH, RFC 9230). It routes queries through a proxy so that the proxy knows your IP address but not your query, and the resolver knows your query but not your IP address. No single party can link you to the domains you look up, unless the proxy and resolver cooperate.
What does DNS over HTTPS not protect?
DoH is often oversold, so it helps to be precise about its limits. It encrypts the channel between your device and the recursive resolver, and nothing beyond that.
First, the resolver itself still sees your IP address and every name you look up. Choosing a DoH provider means trusting that provider with your browsing history. Read its privacy policy and check whether it logs queries, and for how long.
Second, DoH does not authenticate DNS data the way DNSSEC does. Encryption protects the transport; DNSSEC proves the answer is genuine. The two are complementary, and you should use both where possible.
Third, DoH does not hide your IP address from the sites you visit, and it does not stop a site from tracking you with cookies or fingerprinting. It is not a substitute for a VPN or for Tor.
Fourth, DoH does not stop malware already on your device, and it does not make a malicious website safe. A phishing site reached over DoH is still a phishing site. Check a suspicious domain with our SSL checker and think before entering credentials.
How do I enable DNS over HTTPS?
Most modern browsers and operating systems support DoH, and enabling it usually takes less than a minute. The exact steps differ by browser, but the pattern is the same: turn on secure DNS and pick a resolver.
Chrome and Edge
Open Settings, then Privacy and security, then Security. Turn on "Use secure DNS" and choose a provider from the list, or select Custom and enter the address of your preferred resolver.
Firefox
Open Settings, then Privacy and Security, and scroll to DNS over HTTPS. Choose Default Protection, Increased Protection, or Max Protection, and pick a provider or enter a custom resolver address. Firefox completed its rollout of DoH by default to desktop users in the United States in 2019, according to Mozilla.
Windows 11
Open Settings, then Network and internet, then your network adapter, and edit the DNS server assignment. You can enter a DoH template for your chosen resolver, such as the Cloudflare or Google template, and Windows will use encrypted DNS for that connection.
Android
Android 9 and later support Private DNS, which uses DoT rather than DoH. Go to Settings, then Network and internet, then Private DNS, and enter the hostname of your provider, for example one.one.one.one for Cloudflare. Apple devices support DoH through configuration profiles and through apps that install a DNS profile.
After enabling DoH, test it by visiting a resolver test page or by checking that your DNS queries no longer appear in plain text on your network. If a site stops loading, your chosen resolver may be unreachable, and you can switch providers or turn secure DNS off temporarily.
Should businesses use DNS over HTTPS?
Businesses should use encrypted DNS, but they should control where it goes. The NSA's enterprise guidance on encrypted DNS makes the point clearly: use a resolver the organization operates or trusts, and keep logging, filtering, and policy controls working.
The problem with letting every browser choose its own public resolver is that company DNS policy stops working. Malware blocking, phishing-domain filtering, content categories, and DNS audit logs all depend on seeing queries. If browsers bypass the company resolver, those controls go blind.
A better approach is to run DoH or DoT to a resolver the business controls, or to a managed DNS security service, and to block or redirect unauthorised public resolvers at the firewall. That keeps the privacy benefit of encryption while keeping the security controls that auditors and regulators expect.
Enterprises should also plan for captive portals, such as hotel and airport Wi-Fi login pages, which often need plain DNS to work before you are online. Browsers usually fall back to plain DNS in that situation, and network teams should test it rather than assume it works.
What are the risks and criticisms of DoH?
DoH has real critics, and their concerns are worth understanding. The main one is visibility: because DoH hides DNS from the network, it also hides it from the security tools that rely on DNS to spot malware, phishing, and data theft.
Attackers have used that. Malware has been observed using DoH to hide its command-and-control lookups, and the NSA warned enterprises in 2021 against using external DoH resolvers because they prevent DNS query filtering, inspection, and audit. The answer is not to avoid encryption, but to encrypt to a resolver you control.
A second concern is centralisation. If most browsers default to one or two large public resolvers, those companies gain a detailed view of a huge share of internet use. That is a privacy trade, not a privacy win, and it is why some people prefer a smaller resolver or one run by their own organisation.
A third concern is parental controls and content filtering. Home routers and school networks that filter by DNS stop working when devices bypass them with DoH. Some resolvers offer filtered DoH endpoints, and some networks block known public DoH addresses, but both approaches need deliberate setup.
Is DNS over HTTPS the same as a VPN?
No. A VPN encrypts all of your traffic and routes it through the VPN provider, hiding your IP address from the sites you visit and hiding your traffic from your local network and ISP. DoH encrypts only your DNS lookups, and only as far as the resolver.
Think of it this way: DoH hides the question "where is this site?" from people on your network. A VPN hides the whole conversation, including which site you then visit, from your local network, but shows it to the VPN provider instead.
Many people use both. DoH protects DNS even when the VPN is off, and a VPN protects the rest of your traffic. Neither one makes you anonymous on its own, and neither replaces keeping software updated, using strong passwords, and checking links before you click them. For a wider check of your own setup, see our guide to securing your Wi-Fi.
The bottom line
DNS over HTTPS is a straightforward upgrade to one of the internet's oldest weak points. It encrypts your DNS lookups inside HTTPS, stops on-path snooping and tampering, and costs you almost nothing in speed or convenience.
Use it, but use it deliberately. Pick a resolver you trust, keep DNSSEC where you can, and if you run a business, route DoH through a resolver you control so your filtering and logging keep working. You can check how your own domain answers DNS queries with the free DNS lookup tool.
Frequently asked questions
What is DNS over HTTPS in simple terms?
DNS over HTTPS is a way of asking for a website address over an encrypted connection. Instead of sending the name of the site you want in plain text, your browser or device sends it inside an HTTPS request, so people on the same network cannot read or change it.
Is DNS over HTTPS safe?
Yes, for its intended purpose. It stops eavesdropping and tampering on the path to the resolver. It does not make you anonymous, it does not stop the resolver from logging queries, and it does not protect you if the website itself is malicious.
What is the difference between DNS over HTTPS and DNS over TLS?
Both encrypt DNS. DoH sends DNS inside HTTPS on port 443, so it blends in with web traffic and is hard to block selectively. DoT uses a dedicated port, 853, with TLS, which is easier for a network to identify, allow, or block. DoH is more common in browsers; DoT is more common in operating systems and enterprise setups.
Does DNS over HTTPS hide my browsing from my ISP?
Partly. Your ISP can no longer read the domain names in your DNS queries, but it can still see the IP addresses you connect to, and often the server name in the TLS handshake. A VPN hides more, but even then the VPN provider can see your traffic.
Should businesses use DNS over HTTPS?
Yes, but through a resolver the business controls. If employees use a public DoH resolver directly, company DNS filtering, malware blocking, and logging stop working. The NSA recommends enterprises deploy encrypted DNS to a resolver they operate or trust, with logging and policy controls intact.
How do I enable DNS over HTTPS in Chrome or Firefox?
In Chrome, go to Settings, then Privacy and security, then Security, and turn on Use secure DNS, choosing a provider or entering a custom one. In Firefox, go to Settings, then Privacy and Security, scroll to DNS over HTTPS, and choose a provider or enter a custom address.
What is Oblivious DNS over HTTPS?
Oblivious DNS over HTTPS, defined in RFC 9230, adds a proxy between you and the resolver. The proxy sees your IP address but not your query, and the resolver sees your query but not your IP address, so no single party can link you to the domains you look up.
Does DNS over HTTPS slow down browsing?
Usually not noticeably. The first connection to the resolver adds a small delay, but later lookups reuse the connection, and responses can be cached. In many cases DoH is as fast as plain DNS, and sometimes faster if the chosen resolver is well run.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against IETF RFC 8484, RFC 9230 for Oblivious DoH, and NSA enterprise guidance on encrypted DNS.
How we write and fact-check →