How to enable DNS over HTTPS (DoH) on Windows 11

Windows 11 now includes support for DNS over HTTPS to improve your online privacy, and here's how to configure the feature.

Windows 11 with DNS over HTTPS
Windows 11 with DNS over HTTPS / Image: Mauro Huculak
  • To enable DoH on Windows 11, open Settings > Network & internet > Wi-Fi and manually configure the “DNS server assignment” setting.
  • To check DoH configuration, open Settings > Network & internet > Wi-Fi, and check the “IPv4 DNS servers” address, which should include an Encrypted label.

On Windows 11, you can enable DNS over HTTPS (DoH) for a more secure and private online browsing experience, and in this guide, I will teach you how to complete this configuration.

What is DNS over HTTPS?

DNS over HTTPS is a networking protocol designed to encrypt Domain Name System (DNS) queries using the Hypertext Transfer Protocol Secure (HTTPS) protocol. The main purpose of DoH is to protect these queries and increase user privacy and security by stopping malicious individuals from viewing and manipulating DNS traffic originating from your computer to prevent man-in-the-middle attacks.

Web browsers like Google Chrome and Mozilla Firefox already support this additional layer of security, but Windows 11 now natively supports DoH, which you can configure in the Settings app.

This guide will teach you the steps to enable DNS over HTTPS on Windows 11, which will make your online experience a little more private.

Enable DNS over HTTPS (DoH) on Windows 11

To configure DNS over HTTPS (DoH) on Windows 11, use these steps:

  1. Open Start on Windows 11.

  2. Search for Settings and click the top result to open the app.

  3. Click on Network & internet.

  4. Click the Ethernet or Wi-Fi tab (depending on the active connection).

    Quick note: If you have a wireless connection, you need to click on the connection properties setting to access the settings.
  5. Click the Edit button in the “DNS server assignment” setting.

    Open DNS settings on Windows 11

  6. Select the Manual option from the drop-down menu.

  7. Turn on the IPv4 toggle switch.

  8. Under the “Preferred DNS” and “Alternate DNS” sections, specify the primary and secondary DoH IP address from one of the supported services:

    • Cloudflare:
    • 1.1.1.1 
    • 1.0.0.1 
    • Google:
    • 8.8.8.8
    • 8.8.4.4 
    • Quad9:
    • 9.9.9.9
    • 149.112.112.112

    Enable DoH for IPv4

  9. Use the “DNS over HTTPS” drop-down menu and select the On (automatic template) option, but you can also choose other encryption preferences, including:

    • Off: Transmits all DNS traffic without encryption.
    • On (automatic template): Sends all DNS traffic with encryption (recommended).
    • On (manual template): This option allows you to specify a specific template. It is only required if the DNS service doesn’t work automatically or has a template that works as expected.
  10. Turn off the “Fallback to plaintext” toggle switch.

    Quick tip: If you enable this feature, the system will encrypt DNS traffic, but it allows queries to be sent without encryption.
  11. (Optional) Turn on the IPv6 toggle switch.

  12. Under the “Preferred DNS” and “Alternate DNS” sections, specify the primary and secondary DoH IP address from one of the supported services:

    • Cloudflare:
    • 2606:4700:4700::1111
    • 2606:4700:4700::1001
    • Google:
    • 2001:4860:4860::8888
    • 2001:4860:4860::8844
    • Quad9:
    • 2620:fe::fe
    • 2620:fe::fe:9

    Enable DoH for IPv6

  13. Select the On (automatic template) option in the “Preferred DNS encryption” setting.

  14. Turn off the “Fallback to plaintext” toggle switch unless you want to allow traffic to be sent unencrypted when encryption isn’t available.

  15. Click the Save button.

Once you complete the steps, Windows 11 will encrypt DNS traffic over the HTTPS protocol.

Check DNS over HTTPS status

To check if DoH is working on Windows 11, use these steps:

  1. Open Start.

  2. Search for Settings and click the top result to open the app.

  3. Click on Network & Internet.

  4. Click the Ethernet or Wi-Fi tab.

  5. The “IPv4 DNS servers” address should include an Encrypted label under the “DNS server assignment” section.

    Check DoH on Windows 11

After you complete the steps, you will know whether the DNS over HTTPS has been configured correctly on Windows 11.

Update May 7, 2024: This guide has been updated to ensure accuracy and reflect changes to the process.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].