DNS over HTTPS (DoH) encrypts your DNS queries so your internet service provider or anyone on your network can’t see which websites you visit. It also helps prevent DNS spoofing. This guide shows you exactly how to enable DoH in Windows 11, either for a specific connection or for the whole system, using the built-in Settings app.
What You’ll Need
- A Windows 11 PC with administrator rights (you’ll need to confirm a UAC prompt).
- An internet connection (to download the update if needed).
- Optional: A DNS server that supports DoH. Windows 11 includes a list of known providers (Google, Cloudflare, Quad9, and others). If you want to use a custom provider, you’ll need its DoH template URL.
Step-by-Step
- Open Settings. Press Win + I on your keyboard, or click the Start button and select the gear icon.
- Go to Network & Internet. In the left sidebar, click Network & Internet.
- Choose your connection type.
- If you’re using Wi-Fi, click Wi-Fi and then click the network name you’re connected to (e.g., “HomeWiFi”).
- If you’re using Ethernet, click Ethernet and then click the network name (e.g., “Ethernet”).
- Find the DNS server assignment section. Scroll down until you see DNS server assignment. It’s usually near the bottom of the page.
- Click the Edit button. It’s next to “DNS server assignment” and looks like a small pencil icon.
- Change the setting to Manual. In the “Edit DNS settings” dialog, use the dropdown that says “Automatic (DHCP)” and select Manual.
- Turn on IPv4 or IPv6. You’ll see two toggles: one for IPv4 and one for IPv6. Turn on the toggle for the protocol you use (most connections use IPv4).
- Enter a preferred DNS server. In the “Preferred DNS” field, type a DNS server IP that supports DoH. For example, for Cloudflare, enter
1.1.1.1. For Google, enter8.8.8.8. - Select “On” for DNS over HTTPS. Below the IP field, you’ll see a dropdown labeled “DNS over HTTPS.” Click it and choose On (automatic template). This will use the provider’s default DoH template. If you have a custom template URL, choose “On (manual template)” and paste the URL.
- Add an alternate DNS server (optional). You can also fill in the “Alternate DNS” field with a second server (e.g.,
1.0.0.1for Cloudflare) and set its DoH dropdown to “On (automatic template)” as well. - Click Save. The dialog will close and Windows will apply the settings.
- Verify it’s working. To confirm DoH is active, you can use the command line. Press Win + R, type
cmd, and press Enter. Then runnetsh dns show encryption. Look for “DNS over HTTPS” and check that it says “Yes” for your connection.
Common Mistakes
- Forgetting to turn on the DoH toggle. Simply entering a DNS server IP without selecting “On” for DoH will leave your queries unencrypted. The dropdown must be set to “On (automatic template)” or “On (manual template)”.
- Using a DNS server that doesn’t support DoH. If you enter an IP like
8.8.4.4(Google’s alternate) and set DoH to “On (automatic template)”, Windows may fall back to plain DNS if that server doesn’t support DoH. Always use a provider that supports DoH. - Only setting IPv4. If your connection uses IPv6 and you only configure IPv4, your IPv6 queries will remain unencrypted. Enable both if your network uses IPv6.
- Editing the wrong connection. If you have multiple network adapters (e.g., both Wi-Fi and Ethernet), make sure you’re editing the one that’s actually in use. Check the “Connected” status.
Tips
- Use a reliable provider. Cloudflare (1.1.1.1), Google (8.8.8.8), and Quad9 (9.9.9.9) are popular and have well-documented DoH support. You can also use NextDNS or AdGuard DNS if you want ad-blocking.
- Keep the alternate DNS server. If your primary DNS server is temporarily unreachable, Windows will use the alternate. Make sure the alternate also supports DoH to keep encryption.
- Test your DNS. After enabling, you can visit a site like
1.1.1.1/help(if using Cloudflare) to see if it says “Connected to 1.1.1.1 via DoH”. - Use the manual template if you need a specific endpoint. Some providers require a unique URL (e.g.,
https://dns.google/dns-query). You can find these on the provider’s website. - DoH is per-connection. If you switch networks (e.g., from home Wi-Fi to a mobile hotspot), you’ll need to enable DoH again for that new connection.
Troubleshooting
- DoH doesn’t seem to work. First, double-check that the DoH dropdown is set to “On” for both preferred and alternate DNS. Then run
netsh dns show encryptionin Command Prompt (as administrator) to see the status. If it says “No”, try restarting your PC or network adapter. - Internet stops working after enabling DoH. This usually means the DNS server you entered is unreachable or doesn’t support DoH. Try switching to a known-good provider like Cloudflare (1.1.1.1). If that doesn’t help, revert to “Automatic (DHCP)” and check if the internet returns.
- Can’t find the DNS server assignment section. Make sure you’re on the properties page for your specific connection (not the “Network & Internet” overview). Click on the network name under “Wi-Fi” or “Ethernet”.
- Windows says “The template is invalid”. If you’re using a manual template, ensure the URL starts with
https://and is the exact DoH endpoint from your provider. A common mistake is using the normal website URL instead of the DoH endpoint. - DoH works on some apps but not others. Some apps (like browsers) have their own DoH settings. Windows-level DoH only affects apps that use the system resolver. For browsers, you may need to enable DoH separately in the browser’s settings.
Frequently Asked Questions
Does DNS over HTTPS slow down my internet?
Usually not. The encryption adds a tiny bit of overhead, but in practice most users see no difference. In some cases, DoH can be faster because your DNS provider may have better routing.
Can I use DoH with a VPN?
Yes, but it depends on the VPN. If your VPN routes all traffic through its own tunnel, DNS queries may go through the VPN’s DNS servers, not your local ones. Some VPNs have their own DoH settings. You can still enable DoH on your Windows connection, but it may not be used when the VPN is active.
Will DoH hide my browsing history from my ISP?
DoH hides the domain names you look up, but your ISP can still see the IP addresses you connect to and the amount of data you send. It doesn’t hide your traffic content – for that you need HTTPS (which is already used by most sites) or a VPN.
Do I need to enable DoH for both IPv4 and IPv6?
If your network uses IPv6, yes. Otherwise, only IPv4 is needed. You can check if you have IPv6 by running ipconfig in Command Prompt and looking for an IPv6 address.
What is the difference between “On (automatic template)” and “On (manual template)”?
Automatic template uses a built-in list of known DoH providers. If you enter an IP that matches a known provider (like 1.1.1.1), Windows automatically uses the correct DoH URL. Manual template lets you specify a custom URL for any provider that isn’t in Windows’ list.
Can I set DoH via Group Policy for all users?
Yes, if you have Windows 11 Pro or Enterprise, you can configure DoH through Group Policy. Navigate to Computer Configuration > Administrative Templates > Network > DNS Client and set “DNS over HTTPS (DoH)” to Enabled. You can then specify the DNS server and template.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- Fix Administrator Account Disabled Error in Windows 11
- How to Play Kodi on Smart TV from PC
- Factory Reset on Samsung Galaxy: What It Erases