Expressvpn Glossary

DNS over HTTPS (DoH)

DNS over HTTPS (DoH)

What is DNS over HTTPS?

DNS over HTTPS (DoH) is a protocol that sends Domain Name System (DNS) queries over encrypted Hypertext Transfer Protocol Secure (HTTPS) connections instead of traditional unencrypted channels.

How does DNS over HTTPS work?

When a user types a website address, such as expressvpn.com, into their browser, the browser needs to find the server’s IP address to connect. With DoH, that lookup occurs through the following steps:

  1. Browser sends query: The browser sends the DNS request to a DoH-compatible resolver using an encrypted HTTPS connection.
  2. Resolver processes request: The resolver decrypts the query and looks up the correct IP address.
  3. Resolver returns result: The IP address is sent back through the same encrypted HTTPS channel. The browser uses the returned IP address to reach the website.4 steps showing how DNS over HTTPS works and protects DNS queries.

Why is DNS over HTTPS important?

By encrypting DNS queries and responses, DoH prevents third parties from seeing which websites a user visits and bad actors from modifying the DNS data in transit to redirect users to malicious sites.

DoH also ensures that responses come from the intended DoH server, preventing threat actors from impersonating the resolver and supplying false DNS information.

It also makes DNS traffic harder to block or filter: because queries travel over standard HTTPS alongside regular web traffic, network operators have a much harder time identifying or blocking requests to specific websites without disrupting general internet use.

Common use cases

Here are some common applications of DoH:

  • Web browsers: Some browsers, such as Mozilla Firefox and Google Chrome, enable DoH by default in regions where compatible DNS resolvers are available.
  • Privacy-focused users: Individuals concerned about tracking or surveillance use DoH to keep their browsing habits private.
  • Enterprises and remote work: Organizations deploy DoH-compatible resolvers to secure DNS traffic for remote employees and ensure compliance with data-protection standards.

DoH vs. DoT

DoH and DNS over Transport Layer Security (DoT) both encrypt DNS queries, but they use different channels. DoH sends DNS requests over HTTPS on port 443, allowing them to blend with regular web traffic and making blocking or filtering more difficult. DoT uses a dedicated TLS connection on port 853, which makes encrypted DNS easy to identify and gives networks more control over how DNS traffic is managed.

Security and privacy considerations

To get the most out of DoH while staying secure, it’s important to be aware of potential limitations and follow best practices:

  • Choose a trusted resolver: The DoH resolver can see the domain requests, so the level of privacy depends on the trustworthiness of the provider.
  • Check network compatibility: Some organizations or managed networks disable DoH because it interferes with the tools they use to monitor DNS traffic for security or compliance reasons.
  • Combine with a virtual private network (VPN): DoH encrypts only DNS queries, while a VPN encrypts all internet traffic. Together, they provide broader privacy and security.
  • Ensure proper configuration: If DoH isn’t configured correctly, DNS traffic could leak, negating the benefits DoH provides.

Further reading

FAQ

Is DNS over HTTPS (DoH) better than regular Domain Name System (DNS)?

Yes, DoH is more secure and private than regular DNS. Traditional DNS sends queries in plaintext, while DoH encrypts both requests and responses. This prevents intermediaries such as internet service providers (ISPs) or bad actors from seeing or tampering with DNS traffic.

Does DoH replace a VPN?

No, DNS over HTTPS (DoH) and VPNs serve different purposes. DoH encrypts Domain Name System (DNS) queries, while a VPN encrypts all internet traffic, providing broader privacy and security.

Can ISPs block DoH?

It’s more difficult for internet service providers (ISPs) to block DNS over HTTPS (DoH) because it sends Domain Name System (DNS) queries over standard HTTPS on port 443. This is the same port used for regular web traffic, making it hard to distinguish from other encrypted connections.

Is DNS over HTTPS (DoH) enabled by default?

It depends. Some browsers, such as Mozilla Firefox and Google Chrome, enable DoH by default in regions with compatible resolvers, while other devices or applications may require manual configuration.

Get Started