How to Set Up DNS over HTTPS in Chrome
This guide will walk you through the process of configuring DNS over HTTPS (DoH) in Google Chrome, including basic setup, advanced options, and troubleshooting.
Prerequisites
- Google Chrome browser (version 83 or later)
- Basic understanding of DNS concepts
- Access to Chrome settings
Basic Configuration
Step 1: Access Chrome Settings
- Open Google Chrome
- Click the three dots menu (⋮) in the top-right corner
- Go to Settings
- Click on “Privacy and security” in the left sidebar
- Scroll down to “Security” section
Step 2: Enable Secure DNS
- Find “Use secure DNS” option
- Toggle the switch to enable it
- Choose your preferred DNS provider:
- Google (Public DNS)
- Cloudflare (1.1.1.1)
- Custom provider
Step 3: Configure Custom Provider
If you want to use a custom DoH provider:
- Select “Use custom”
- Enter your preferred DoH provider URL, for example:
https://dns.google/dns-query https://1.1.1.1/dns-query https://dns.quad9.net/dns-query
Advanced Configuration
Using Chrome Flags
For advanced users, you can use Chrome flags to configure additional DoH settings:
- Open Chrome and go to
chrome://flags
- Search for “doh”
- Configure the following flags:
doh-with-https-svcb
doh-with-https-svcb-alpn
doh-with-https-svcb-ipv4
doh-with-https-svcb-ipv6
Network Settings
You can also configure DoH through Chrome’s network settings:
- Go to
chrome://net-internals/#dns
- Enable “Use secure DNS”
- Configure your preferred provider
Verification
Method 1: Using Chrome DevTools
- Open Chrome DevTools (F12 or right-click > Inspect)
- Go to the Network tab
- Check “Preserve log”
- Visit any website
- Look for DNS queries in the network log
- Verify that queries are using HTTPS
Method 2: Using Online Tools
- Visit DNS Leak Test
- Run the test
- Verify that your DNS queries are using the configured DoH provider
Troubleshooting
Common Issues
-
DoH Not Working
- Check if your network allows HTTPS traffic
- Verify your DNS provider is accessible
- Try a different DoH provider
-
Performance Issues
- Choose a geographically closer provider
- Check your network connection
- Try different providers to find the fastest one
-
Configuration Problems
- Clear Chrome cache and cookies
- Reset Chrome settings
- Update Chrome to the latest version
Advanced Troubleshooting
-
Check DNS Resolution
# Using dig command dig @8.8.8.8 example.com
-
Verify HTTPS Connection
# Using curl curl -v https://dns.google/dns-query
Best Practices
-
Provider Selection
- Choose providers with good uptime
- Consider privacy policies
- Test performance before finalizing
-
Security Considerations
- Use providers with DNSSEC support
- Enable additional security features
- Regular security audits
-
Performance Optimization
- Monitor DNS resolution times
- Use providers with global distribution
- Enable DNS caching
Next Steps
- Server List - Choose the right DoH provider
- Security Best Practices - Ensure secure configuration
- Performance Optimization - Optimize your setup
- FAQ - Get help with common issues