- The DNS over HTTPS (DoH) protocol encrypts domain name queries using port 443, preventing third parties from spying on the user's browsing.
- There are key technical differences between DoH and DoT, with the former being more difficult to block because it integrates into standard web traffic.
- Its implementation poses a challenge to corporate cybersecurity, as it can create blind tunnels that bypass traditional firewalls.
- The configuration varies depending on the operating system, allowing everything from the use of browsers to the installation of local proxies such as Cloudflared.

You've probably heard of DNS as the internet's phone book, the system that translates the website names we type into IP addresses that computers understand. The problem is that, for decades, this process has been an open book; anyone with the right tools along your connection path could see exactly which sites you visited, leaving our privacy completely exposed to ISPs or attackers.
To address this security vulnerability, encryption protocols have emerged to protect these requests. Among them, DNS over HTTPS (DoH) has become the star, as it not only hides the content of the query but also disguises the traffic to resemble conventional web browsing, making it much more difficult for third parties to track or block.
What exactly does the DoH protocol consist of?

Domain-based DNS (DoH) is a technical specification that encapsulates name resolution requests within HTTP/2 or HTTP/3 data streams. Unlike traditional DNS, which travels on port 53 in plain text, DoH uses TCP port 443 , the same port used by secure pages with a padlock icon. This means that communication between your device and the DNS server is encrypted using TLS, ensuring that no intermediary can read or alter the request.
It's crucial to distinguish it from other similar technologies like DNS over TLS (DoT). While DoT uses a dedicated port (853), making it easily identifiable for a network administrator, DoH blends in with web traffic. This characteristic is what makes it so powerful for the end user, but a real headache for enterprise security experts.
Advantages and benefits of encrypting DNS

The first major improvement is undoubtedly privacy. By using Domain-based Handling (DoH), your Internet Service Provider (ISP) can no longer profile your activity based on your DNS queries or block access to domains through DNS hijacking. Furthermore, critical risks such as Man-in-the-Middle attacks , DNS spoofing, and hijacking are eliminated, as authentication via TLS certificates ensures you are communicating with the correct server.
- Response speed: Thanks to HTTP/2 and HTTP/3 optimizations, queries can be faster.
- Censorship evasion: By using port 443, it is very difficult for governments to block DNS traffic without taking down the Internet completely.
- Data integrity: Encryption prevents someone from modifying the destination IP to redirect you to a fraudulent website.
DoH in corporate environments: the risk of perimeter blindness

It's not all sunshine and rainbows. For a network engineer, DoH can be a nightmare because it creates a blind tunnel. Firewalls and IDS/IPS systems that scan port 53 to detect malware or data exfiltration become completely obsolete . Malicious software could use DoH to communicate with your command and control (C2) server without leaving a trace in internal audits, since the request appears to be a simple website visit.
To combat this, companies use the strategy of Canary IslandsBefore activating DoH, browsers consult a special domain called use-application-dns.netIf the company's internal DNS server responds with an NXDOMAIN error, the browser understands that it is on a managed network and disable encryption to revert to the corporate DNS. If the user attempts to bypass this, the company can resort to deep TLS inspection (SSL Interception) or block IPs from public resolvers like Google or Cloudflare.
Technical configuration in different systems

In Windows Server 2022 and Windows 11, DoH support is already native. It can be configured through the Networking Control Panel by selecting a known DNS server (such as Cloudflare's 1.1.1.1 or Google's 8.8.8.8) and choosing the encryption mode. There are three options: Encryption Only (maximum security, but fails if the server doesn't support DoH), Encryption Preferred (attempts DoH and if it fails, reverts to plaintext), and Unencrypted Only.
If you use older versions of Windows or want more control, tools like YogaDNS or AdGuard allow you to manage DoH, DoT, and even DoQ (DNS over QUIC). For Linux and Raspberry Pi enthusiasts, a popular option is to install the cloudflared daemon . This software acts as a local proxy, receiving normal DNS requests on port 5053 and forwarding them encrypted to Cloudflare, allowing tools like Pi-hole to continue blocking ads while external traffic travels securely.
Other technologies and the future of privacy
It's important to mention that transport encryption isn't a panacea. Even with a secure path, if the DNS server is malicious, the response will still be false. To address this, DNSSEC exists , which adds digital signatures to the records to verify that the response is authentic. On the other hand, the arrival of ECH (Encrypted Client Hello) is closing the last remaining vulnerability: SNI, which revealed the destination domain during the initial TLS handshake.
The widespread adoption of these protocols is forcing telecommunications operators to rethink legal interception. Unable to see queries on the network, they are forced to manage their own encrypted resolvers or search for data at the application layer. The trend is clear: we are moving towards a fully encrypted internet where network visibility is drastically reduced in favor of user sovereignty.
The implementation of Domain-based DNS (DoH) represents a significant leap forward in protecting our digital footprint, shifting control from the ISP to the user and their chosen resolvers. While it presents considerable operational challenges for enterprise network security and lawful surveillance, its ability to mitigate interception attacks and enhance confidentiality makes it an essential standard. Whether through native Windows 11 configuration, the use of browsers like Firefox or Chrome, or advanced deployments with proxies on Raspberry Pi, DNS query encryption is now the best defense against mass tracking on the web.