User Agents

Web browsers and everyday web tech, explained

Chrome DNS over HTTPS: How to Enable and Configure it

· 7 min read · How the Web Works

In this article
  1. Understanding DNS and the Need for Encryption
  2. Step-by-Step Guide to Enabling DoH in Chrome
  3. How to Choose the Right DNS Provider
  4. Potential Problems and Troubleshooting
  5. Comparing DoH to Other DNS Security Methods
  6. Frequently Asked Questions

To enable DNS over HTTPS (DoH) in Google Chrome, open the browser settings, navigate to Privacy and security, select Security, and under the Use secure DNS section, toggle the switch to on and choose your preferred DNS provider. This process ensures that your DNS queries are encrypted, preventing third parties from seeing which websites you are attempting to visit.

Understanding DNS and the Need for Encryption

To understand why DNS over HTTPS is necessary, one must first understand the Domain Name System (DNS). DNS acts as the phonebook of the internet. When you type a URL like "example.com" into your browser, your computer does not inherently know where that server is located. It must send a request to a DNS resolver to translate that human-readable hostname into a machine-readable IP address, such as 93.184.216.34.

Traditionally, these DNS queries are sent in plaintext via UDP or TCP. This means that any entity sitting between your device and the DNS resolver—such as your Internet Service Provider (ISP), a network administrator at a workplace, or a malicious actor on a public Wi-Fi hotspot—can see exactly which domains you are requesting. Even if the website itself uses HTTPS to encrypt the content of the page, the initial DNS request is exposed. This creates a privacy gap where your browsing habits can be logged and analyzed despite the use of secure websites.

DNS over HTTPS (DoH) solves this by wrapping the DNS query inside an encrypted HTTPS session. Instead of sending a raw request to a DNS server on port 53, the browser sends an encrypted request to a DoH-compatible resolver via port 443. To an outside observer, the DNS request looks like any other piece of encrypted web traffic, making it significantly harder for intermediaries to intercept, spoof, or log your destination requests.

Step-by-Step Guide to Enabling DoH in Chrome

Chrome provides a straightforward interface for managing secure DNS. While the exact menu labels may shift slightly between browser versions, the general path remains consistent across Windows, macOS, and Linux.

  1. Launch the Google Chrome browser and click the three vertical dots (the menu icon) in the top-right corner of the window.
  2. Select Settings from the dropdown menu.
  3. In the left-hand sidebar, click on Privacy and security.
  4. Click on the Security tile. This will open a detailed list of security settings.
  5. Scroll down to the section labeled Advanced or Secure DNS.
  6. Locate the toggle switch for Use secure DNS and click it to turn it on.
  7. You will see two options: With your current service provider and With (followed by a dropdown menu).
  8. If your current ISP supports DoH, you can leave it on the default. However, for greater privacy and control, click the dropdown menu to select a known provider like Cloudflare, Google Public DNS, or OpenDNS.
  9. Alternatively, you can select Custom and enter the specific DoH URL provided by a private DNS service.

Once these settings are applied, Chrome will automatically attempt to use the encrypted protocol for all subsequent DNS lookups. There is no need to restart the browser for these changes to take effect.

How to Choose the Right DNS Provider

When enabling DoH, the choice of provider impacts your privacy, speed, and the types of content you can access. Not all DNS providers are created equal, and the "best" choice depends on your specific priorities.

  • Google Public DNS: Known for high reliability and speed. Because it is integrated into the Google ecosystem, it is often the default. However, users with strict privacy concerns regarding data collection may prefer other options.
  • Cloudflare (1.1.1.1): Positioned as a privacy-first provider. Cloudflare promises to purge its logs every 24 hours and does not sell user data to advertisers. It is frequently cited as one of the fastest resolvers globally.
  • OpenDNS (Cisco): Excellent for those who need content filtering. OpenDNS allows users to block certain categories of websites (such as adult content or gambling), making it a strong choice for family environments.
  • Quad9: Focuses heavily on security. Quad9 blocks known malicious domains (phishing, malware) at the DNS level, preventing your browser from even connecting to a dangerous site.

When choosing, consider the trade-off between speed and security. For example, if you are in a region with heavy censorship, a provider that specializes in bypassing blocks may be more useful than one that focuses solely on speed. Conversely, for a home office, a security-focused provider like Quad9 might be the optimal choice to mitigate malware risks.

Potential Problems and Troubleshooting

While DoH is generally seamless, some users may encounter issues after enabling it. Understanding these common pitfalls can help in restoring connectivity quickly.

One common issue is DNS Leakage. A DNS leak occurs when your browser is configured to use DoH, but some queries still bypass the encrypted tunnel and go through your ISP's plaintext DNS. This can happen if the browser falls back to the system default due to a timeout or a configuration error. Users can verify their status using online DNS leak test tools to ensure that only the chosen provider's IP addresses are visible.

Another problem is Network Conflicts. In some corporate or school environments, network administrators use DNS to route traffic internally or to block specific sites for security reasons. If you enable DoH, you are bypassing these local DNS rules. This may result in the inability to access internal company portals (intranets) or may trigger a security alert on the network management console. If you find that internal resources are suddenly unavailable, disabling DoH or switching back to the "current service provider" usually resolves the conflict.

Lastly, some users may experience a slight increase in initial latency. Because DoH uses HTTPS (TCP/TLS) instead of the lightweight UDP protocol used by standard DNS, the initial "handshake" takes slightly longer. While this is usually measured in milliseconds and is imperceptible during browsing, it can occasionally cause a delay in the very first request made after the browser is opened.

Comparing DoH to Other DNS Security Methods

It is important to distinguish DNS over HTTPS (DoH) from other similar technologies like DNS over TLS (DoT) and traditional DNS encryption. While they all aim to protect DNS queries, they operate differently.

DNS over TLS (DoT) is similar to DoH in that it encrypts the query. However, DoT uses a dedicated port (port 853), whereas DoH uses the standard HTTPS port (port 443). The primary advantage of DoH is that its traffic is indistinguishable from other web traffic. This makes it much harder for firewalls to block DoH without blocking all HTTPS traffic, which would effectively break the internet. DoT, being on its own port, is easier for network administrators to identify and block.

Another comparison is with VPNs (Virtual Private Networks). A VPN encrypts all traffic from your device, including DNS. If you are using a high-quality VPN, your DNS queries are already routed through the VPN tunnel, making a browser-level DoH setting redundant. However, DoH is a lighter alternative for users who want DNS privacy without the overhead or cost of a full VPN. DoH only protects the "address request," while a VPN protects the entire data stream.

Frequently Asked Questions

Does enabling DNS over HTTPS make my internet faster?

In most cases, DoH does not significantly increase speed, and in some instances, it may slightly increase the time it takes for a page to begin loading due to the HTTPS handshake. However, if your ISP's default DNS servers are slow or unreliable, switching to a high-performance provider like Cloudflare or Google via DoH can result in a noticeable improvement in responsiveness.

Will DoH hide my browsing history from my ISP?

DoH hides the specific DNS queries you make, meaning your ISP cannot see the "request" for a domain. However, it does not make you invisible. Your ISP can still see the IP addresses you are connecting to through other methods, such as SNI (Server Name Indication) in the TLS handshake, unless you are using additional technologies like Encrypted Client Hello (ECH) or a VPN.

Can I use a custom DNS provider with DoH?

Yes, Google Chrome allows you to enter a custom DoH URL. If you use a private DNS service or a self-hosted resolver (like Pi-hole with a DoH proxy), you can select the "Custom" option in the Secure DNS settings and paste the specific HTTPS endpoint provided by your service.

Does DoH work on mobile versions of Chrome?

Yes, the process is very similar on Android and iOS. You can find the Secure DNS settings under Settings > Privacy and security > Use secure DNS. The available providers and the ability to use a custom URL are generally consistent across the mobile and desktop versions of the browser.

Is DNS over HTTPS safe for all websites?

DoH is safe and does not interfere with the content of the websites you visit. It only changes how your browser finds the server. It does not alter the data transmitted between you and the website. However, as mentioned, it may interfere with local network settings in corporate environments that rely on specific DNS configurations for internal access.