Secure Windows DNS with DNS over HTTPS (DoH)

Enable DNS over HTTPS in Windows to encrypt DNS queries so your ISP or others on the network can’t see which sites you visit. This guide walks through switching to a secure DNS provider and configuring DoH for encrypted DNS resolution.

What the video covers

Configure an individual Windows machine to use a secure DNS provider and enable DNS over HTTPS (DoH) for encrypted DNS queries.

Watch the video on YouTube

Step-by-step instructions

  1. Open network settings
    Open the Settings app, go to Network & internet, and select the connection you are using (Wi‑Fi or Ethernet).
  2. Edit DNS assignment
    Find the DNS server assignment area and choose Edit to change how DNS is configured for this connection.
  3. Switch to manual and enable IPv4
    Change the assignment mode from Automatic (DHCP) to Manual, then enable IPv4 (if you use IPv4).
  4. Enter preferred and alternate DNS servers
    In the Preferred DNS field enter a secure provider address such as 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google). In Alternate DNS enter the provider’s secondary address such as 1.0.0.1 or 8.8.4.4.
  5. Enable DNS encryption (DoH)
    Set the Preferred DNS encryption to use encrypted DNS only (DNS over HTTPS). Do the same for the Alternate DNS entry so both use encryption, then save the changes.
  6. Verify encryption and test browsing
    Check the connection properties to confirm the DNS servers show an encrypted status. Open a browser and visit websites to ensure pages load normally; use an online DNS/DoH check if you want external verification.

Watch the video

Video thumbnail for Secure Windows DNS with DNS over HTTPS (DoH) Play tutorial

Watch on YouTube

Why it matters

By default DNS queries are sent in plain text and can be observed by your ISP or anyone on your network. Enabling DoH wraps DNS queries in TLS, protecting your browsing history and improving privacy.

Check your result

After saving settings you should see your chosen DNS servers listed in the network properties and a status or label showing the connection is encrypted (e.g., "Encrypted"). Test by visiting a website and confirming normal browsing behavior; use an external DNS-check site if available to verify DoH is active.

Troubleshooting

If web pages fail to load on public or captive-portal networks, the portal may block encrypted DNS (port 443). Change the DNS encryption option to allow fallback (e.g., "Encrypted preferred" or similar) so the system can use unencrypted DNS until the captive portal is completed. If DNS resolution still fails, try temporarily switching back to Automatic (DHCP) and reconnecting, then reapply DoH after network access is granted.