Complete guide to DNS over HTTPS: What it is, advantages and how to configure it

  • DNS over HTTPS (DoH) encrypts domain name queries to prevent third parties from spying on which websites we visit.
  • Unlike VPNs, DoH only protects the domain lookup and not the entire traffic or IP address.
  • Its implementation improves privacy from the ISP and can reduce latency in browsing.

Laptop with padlock icon symbolizing security and privacy in web browsing.

You've probably wondered how it is that when you type a simple address into your browser, you end up on the correct page without having to remember endless numbers. Well, that's where the DNS system comes in, although the problem is that, traditionally, this process has been a privacy vulnerability. To solve this problem, DNS over HTTPS, or DoH , has emerged—a technology designed to secure these requests and make browsing the web a much more discreet experience.

The idea is simple yet powerful: instead of sending your queries to the name server in plain text, they are wrapped in a layer of encryption. This way, your Internet Service Provider (ISP) or any curious onlooker snooping on your local network is much less likely to find out which sites you're visiting. In this article, we'll break down exactly what it is, how it differs from other tools like DoT or VPNs, and how you can set it up in your favorite browsers.

Understanding how traditional DNS works

Wooden blocks forming the word 'encryption' to illustrate data encryption.

To fully grasp the concept of DoH, you first need to know that the DNS (Domain Name System) acts like the internet's phone book . Computers don't understand names like "google.es," but rather numerical IP addresses. When you request access to a website, the DNS translates that name into an IP address so your computer knows where to go. The major problem is that, until now, these queries were made unencrypted, allowing anyone along the way to see exactly which domains you were querying.

This lack of security opens the door to problems like DNS hijacking , where an attacker intercepts your request and redirects you to a fake website to steal your data or install malware. Furthermore, governments and internet service providers exploit this weakness to censor websites or monitor your browsing habits to sell you targeted advertising.

What exactly is DNS over HTTPS (DoH)?

Letters forming the word 'PRIVACY' on a red background, representing the main objective of DNS over HTTPS.

DoH is a protocol that makes name resolutions happen through port 443, the same port used by secure HTTPS traffic. Essentially, it encrypts the DNS query so that it's indistinguishable from other web traffic. This way, anyone trying to eavesdrop on the connection won't see a clear DNS request, but rather a stream of encrypted data, protecting your privacy and making illegal eavesdropping extremely difficult.

Aside from security, Domain-based Ethernet (DoH) has been shown to boost performance. By optimizing how domains are resolved, latency can be reduced , making browsing feel a bit smoother and faster. Best of all, it's something you can manage yourself from your browser, without having to wait for your internet service provider to deign to activate it on your router.

DoH vs. DoT: What's the difference?

Matrix-style digital background with binary code, ideal for representing the technical infrastructure of the Internet.

It's normal to get confused with so many acronyms, but the battle between DNS over HTTPS (DoH) and DNS over TLS (DoT) boils down to the port they use. DoT uses a specific port (853), which means that even though the data is encrypted, a network administrator can tell you 're making a DNS query , even if they don't know which website you're accessing. DoH, on the other hand, hides behind port 443, blending in with normal web traffic.

This is why there's a debate: privacy advocates prefer DoH because it's much harder to block or track. On the other hand, enterprise network administrators prefer DoT because it allows them to maintain some control over network traffic to prevent access to dangerous sites, something DoH makes very difficult.

DoH vs VPN: They are not the same

Tablet showing an active VPN connection, used to compare the overall protection of a VPN against DoH-specific encryption.

This is where many people go wrong. DoH is great, but it's not a substitute for a VPN . To be clear: DoH protects the question (where is this website?), but a VPN protects the entire journey (the complete route). A VPN creates an encrypted tunnel for all traffic from your device, also hiding your real IP address , something DoH doesn't do at all.

If you use DoH, the website you're visiting will still see your IP address and know who you are if you have cookies or open sessions. A VPN, on the other hand, makes it appear as if you're in a different location. That said, you can use both; however, it's usually more convenient to let the VPN manage your DNS to prevent DNS leaks , which is when your browser bypasses the VPN tunnel and queries the DNS externally.

How to enable secure DNS in your browsers

Getting this up and running is a piece of cake and doesn't require installing any unusual programs in most cases:

  • Google Chrome: Write chrome://flags/#dns-over-https in the address bar. Look for the option Secure DNS lookups and changes the state from Default to Enabled.
  • Microsoft Edge: Just like in Chrome, go to edge://flags/#dns-over-https, locate Secure DNS lookups and select Enabled.
  • Mozilla Firefox: Enter the Options menu, go to the General section and scroll down to Network ConfigurationThere you can check the box Enable DNS over HTTPS and choose providers like Cloudflare or NextDNS.

Potential drawbacks of DNS encryption

It's not all good news. By hiding DNS queries, some security tools stop working. For example, parental controls that block adult websites based on DNS become obsolete, as they can't read the request. Similarly, companies that filter content to prevent malware on their networks find that DoH traffic is invisible to their traditional filters.

There is also the fear of centralization. If everyone starts using the same DoH resolvers (like those from Google or Cloudflare), these companies would have massive control over the browsing data of millions of people, shifting the power from the local ISP to a global tech giant.

In short, DNS over HTTPS is a fundamental tool for those seeking an extra layer of privacy, as it prevents the path to websites from being an open book for the internet service provider. While DoH ensures that the lookup of the address remains secret, VPNs protect the entire journey and conceal our digital identity. Combining these technologies or choosing the one that best suits our needs allows for much more secure browsing in an environment where digital surveillance is the norm.


Add as preferred source in Google