What is DNS-over-HTTPS (DoH) and how to enable it

Understanding the Enhanced Security of DNS-over-HTTPS

DNS-over-HTTPS (DoH) is a protocol designed to increase user privacy and security by encrypting DNS queries using the HTTPS protocol. This method prevents eavesdropping and manipulation of DNS data by third parties, including ISPs and malicious actors.

Traditional DNS queries are sent in plaintext, making them vulnerable to interception and spoofing. DoH addresses these vulnerabilities by encapsulating DNS requests within standard HTTPS traffic, making it indistinguishable from regular web browsing.

The Role of DNS in Internet Communication

The Domain Name System (DNS) translates human-readable domain names into IP addresses necessary for locating computer services and devices on the internet. Without DNS, users would need to remember complex numerical IP addresses to access websites and online services.

The Role of DNS in Internet Communication

Because DNS queries are fundamental to internet navigation, securing them is critical to preventing cyber threats such as DNS spoofing, which can redirect users to fraudulent websites. DoH offers a modern approach to safeguarding this process.

How DNS-over-HTTPS Works

DNS-over-HTTPS sends DNS queries and responses over an encrypted HTTPS connection, using port 443. This integration leverages existing HTTPS infrastructure, providing confidentiality and integrity to DNS traffic.

How DNS-over-HTTPS Works

By using standard web protocols, DoH bypasses traditional DNS monitoring and filtering mechanisms that rely on unencrypted DNS traffic. It also helps mitigate certain types of attacks like man-in-the-middle and DNS spoofing.

Encryption and Privacy Benefits

DoH encrypts DNS requests, preventing unauthorized parties from viewing the websites a user is attempting to visit. This encryption enhances online privacy and reduces the risk of targeted advertising and tracking based on DNS activity.

Encryption and Privacy Benefits

, DoH can improve protection on unsecured public Wi-Fi networks where DNS queries are particularly vulnerable to interception. It provides a secure channel that helps maintain confidentiality regardless of network conditions.

Performance Considerations

Implementing DoH may introduce minimal latency due to HTTPS overhead, but modern implementations optimize this to maintain fast DNS resolution. Many users experience similar or improved performance compared to traditional DNS, especially when using high-quality DoH servers.

Performance can vary based on the chosen DoH provider, network configuration, and client implementation. Selecting reputable and geographically close DoH servers helps minimize delays.

Comparing DNS Protocols: Traditional DNS vs DNS-over-HTTPS

Feature Traditional DNS DNS-over-HTTPS (DoH)
Encryption No, queries are plaintext Yes, queries are encrypted within HTTPS
Port Used UDP 53 (sometimes TCP 53) TCP 443 (HTTPS port)
Privacy Protection Low, vulnerable to eavesdropping High, prevents third-party observation
Susceptibility to Spoofing High, due to lack of encryption Low, secured by HTTPS encryption
Compatibility Universal support across devices Growing support in modern browsers and OS

Enabling DNS-over-HTTPS in Popular Web Browsers

Google Chrome

To enable DoH in Google Chrome, navigate to Settings > Privacy and Security > Security. Locate the “Use Secure DNS” option and toggle it on, then select a preferred DoH provider or enter a custom provider URL.

This setting ensures all DNS queries from the browser are sent via DoH, enhancing privacy without the need for additional software. Chrome supports well-known providers, including Cloudflare and Google Public DNS.

Mozilla Firefox

Firefox provides native support for DoH accessible through Options > General > Network Settings. Click on “Settings…” and check the box labeled “Enable DNS over HTTPS.” Users can choose from default or custom DoH providers.

Enabling this setting in Firefox encrypts DNS queries for all browsing activities within the browser, providing a seamless privacy upgrade. Firefox also offers options to disable DoH for networks or domains.

Microsoft Edge

Microsoft Edge includes DoH support that can be enabled via Settings > Privacy, Search, and Services > Security. Activate the “Use Secure DNS to specify look up the network address for websites” option and select a service provider.

Edge’s implementation ensures DNS requests are encrypted when browsing, improving security without affecting user experience. The browser supports popular DoH servers for user convenience.

Activating DoH on Operating Systems

Windows 10 and Windows 11

Windows 10 (version 2004 and later) and Windows 11 support DoH system-wide. Users can enable DoH by modifying DNS settings in the Network & Internet panel and selecting a DoH-compatible DNS server.

Alternatively, Windows allows configuration through the Registry or PowerShell for advanced users. This system-level implementation encrypts DNS queries for all applications, not just browsers.

macOS

macOS does not provide a native graphical interface for DoH configuration but supports DoH via network configuration profiles or third-party applications. Users can configure DoH by setting DNS servers that support DoH within the Network preferences.

Third-party system utilities and VPN services may offer easier DoH activation on macOS. These solutions route DNS traffic securely, enhancing privacy for all network activities.

Linux

Linux users can enable DoH by configuring DNS clients such as systemd-resolved, dnscrypt-proxy, or by adjusting browser settings directly. Many distributions provide tools and documentation to implement DoH based on user preferences.

Command-line configuration allows for granular control over DoH behavior, including specifying providers and fallback options. This flexibility benefits users seeking enhanced privacy and security on Linux systems.

Choosing a DNS-over-HTTPS Provider

public DoH providers offer and privacy-focused DNS services. Popular options include Cloudflare (1.1.1.1), Google Public DNS (8.8.8.8), and Quad9 (9.9.9.9), each with varying privacy policies and performance metrics.

When selecting a provider, consider factors such as logging policies, geographic server locations, and performance benchmarks. Trusted providers ensure encrypted DNS queries remain private and are resolved quickly.

Potential Challenges and Considerations

While DoH improves privacy, it may interfere with enterprise network filtering and parental controls that rely on traditional DNS monitoring. Organizations must adapt network policies to accommodate encrypted DNS traffic.

, some ISPs and network administrators may block or throttle DoH traffic, requiring alternative configurations or VPN usage. Understanding the network environment is for successful DoH deployment.