Browsers and Mail Enable or Disable Secure DNS over HTTPS (DoH) in Microsoft Edge


Microsoft_Edge_banner.png

This tutorial will show you how to turn on or off secure DNS in Microsoft Edge for your account or all users in Windows 10 and Windows 11.

The Microsoft Edge web browser is based on Chromium and was released on January 15, 2020. It is compatible with all supported versions of Windows, and macOS. With speed, performance, best in class compatibility for websites and extensions, and built-in privacy and security features.

To navigate to a website, the browser needs to look up the network address (e.g. 93.184.216.34) for the host name (e.g. example.com) that’s used in the website’s URL. Secure DNS (DNS over HTTPS (DoH)) performs this lookup using a service over an HTTPS connection to the DNS service provider, thus protecting the lookups from modification or eavesdropping by attackers on the network.

By default, Microsoft Edge uses your current secure DNS provider. Microsoft Edge also offers alternate secure DNS providers to use.

References:

If you disable Allow Microsoft to save your browsing activity including history, usage, favorites, web content, and other browsing data to personalize Microsoft Edge and Microsoft services like ads, search, shopping and news using the PersonalizationReportingEnabled Edge policy, it will also disable Secure DNS in this tutorial.




Contents

  • Option One: Turn On or Off Secure DNS in Microsoft Edge for Current User from Settings
  • Option Two: Enable or Disable Secure DNS in Microsoft Edge for All Users using REG file




Option One

Turn On or Off Secure DNS in Microsoft Edge for Current User from Settings


1 Open Microsoft Edge.

2 Click/tap on the Setting and more (Alt+F) 3 dots button, and click/tap on Settings. (see screenshot below)

Microsoft_Edge_Settings.png

3 Click/tap on Privacy, search, and services in the left pane, and click/tap on Security in the right pane. (see screenshot below)

If you do not see a left pane, then either click/tap on the 3 bars menu button towards the top left OR widen the horizontal borders of the Microsoft Edge window until you do.


Microsoft_Edge_secure_DNS-1a.webp

4 Do step 5 (on - current), step 6 (on - choose), or step 7 (off) below for what you want.

5 Turn On Secure DNS and Use Current Service Provider in Microsoft Edge

This is the default setting.


A) Under Security on the right side, turn on Use secure DNS. (see screenshot below)​

B) Select (dot) Use current service provider.​

Microsoft_Edge_secure_DNS-1.webp

6 Turn On Secure DNS and Choose a Service Provider in Microsoft Edge

A) Under Security on the right side, turn on Use secure DNS. (see screenshot below)​

B) Select (dot) Choose a service provider.​

C) Click/tap inside the Enter custom provider box to open its drop menu.​

D) Select the DNS over HTTPS (DoH) provider you want to use in the drop menu.​

Microsoft_Edge_secure_DNS-2.webp

7 Turn Off Secure DNS in Microsoft Edge

A) Under Security on the right side, turn off Use secure DNS. (see screenshot below)​

Microsoft_Edge_secure_DNS-3.webp




Option Two

Enable or Disable Secure DNS in Microsoft Edge for All Users using REG file


You must be signed in as an administrator to use this option.

This option uses the BuiltInDnsClientEnabled, DnsOverHttpsMode, and DnsOverHttpsTemplates policies for Microsoft Edge.


1 Do step 2 (always on), step 3 (always off), or step 4 (default) below for what you want.

2 Always Turn On "Use secure DNS to specify how to lookup the network address for websites" in Microsoft Edge for All Users

This will override and gray out Option One.


A) Click/tap on the Download button below to download the REG file below, and go to step 5 below.​

Always_turn_on_secure_DNS_in_Microsoft_Edge_for_all_users.reg​


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"BuiltInDnsClientEnabled"=dword:00000001
"DnsOverHttpsMode"=-
"DnsOverHttpsTemplates"=-
"PersonalizationReportingEnabled"=-

3 Always Turn Off "Use secure DNS to specify how to lookup the network address for websites" in Microsoft Edge for All Users

This will override and gray out Option One.


A) Click/tap on the Download button below to download the REG file below, and go to step 5 below.​

Always_turn_off_secure_DNS_in_Microsoft_Edge_for_all_users.reg​


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"BuiltInDnsClientEnabled"=dword:00000000
"DnsOverHttpsMode"=-
"DnsOverHttpsTemplates"=-

4 Default User Choice "Use secure DNS to specify how to lookup the network address for websites" in Microsoft Edge

This is the default setting to allow using Option One.


A) Click/tap on the Download button below to download the REG file below, and go to step 5 below.​

Default_user_choice_secure_DNS_in_Microsoft_Edge.reg​


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"BuiltInDnsClientEnabled"=-
"DnsOverHttpsMode"=-
"DnsOverHttpsTemplates"=-
"PersonalizationReportingEnabled"=-

5 Save the .reg file to your desktop.

6 If you have Smart App Control turned on, you will need to unblock the downloaded REG file.

7 Double click/tap on the downloaded .reg file to merge it.

8 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

9 If Microsoft Edge is currently open, then close and reopen Microsoft Edge to apply.

10 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

Last edited:
In Windows 11, Instead of enabling it in Edge or any other browser, it's best that this is done within Windows settings. When you set it up globally, you have a fallback choice in case something doesn't work. If something doesn't work, it will fall back to the unsecure method.
 

My Computer My Computer

At a glance

Windows 11 Pro for WorkstationsIntel® Core™ i9-9900KCorsair Vengeance RGB Pro 128GB (4x32GB) ‎CMW...Nvidia GeForce RTX 3080 TI Founders Edition
OS
Windows 11 Pro for Workstations
Computer type
PC/Desktop
Manufacturer/Model
Custom Built (ASUS, Intel, Nvidia, Creative Labs, Corsair, Seasonic, Lian Li)
CPU
Intel® Core™ i9-9900K
Motherboard
ASUS ROG MAXIMUS XI EXTREME
Memory
Corsair Vengeance RGB Pro 128GB (4x32GB) ‎CMW128GX4M4E3200C16
Graphics Card(s)
Nvidia GeForce RTX 3080 TI Founders Edition
Sound Card
Creative Sound Blaster AE-9
Monitor(s) Displays
ASUS ROG Swift PG32UQXR Mini LED backlit & HDR1000
Screen Resolution
3840 x 2160 (4K)
Hard Drives
Samsung 970 Pro 1TB
Samsung 980 Pro 1TB
PSU
Seasonic Prime TX 1000
Case
Lian Li 011 Dynamic XL ROG Edition
Cooling
ASUS ROG STRIX LC II 360 ARGB AIO, 10x UNI FAN SL-INFINITY Fans
Keyboard
Razer Huntsman Elite (Silent keys)
Mouse
Logitech MX Master 3s
Internet Speed
1024 Mb/s Down and 40 Mb/s Up
Browser
Microsoft Edge
Antivirus
Windows Defender
Other Info
Speakers: Vanatoo Transparent One Encore with a REL HT/1003 Subwoofer
Why do I get this error (for some DNS servers)?!

s2.png
 

My Computer My Computer

At a glance

Win 11 Enterprisei7
OS
Win 11 Enterprise
Computer type
Laptop
CPU
i7
Hard Drives
SSD
Is there a way to disable the same on brave browser with a reg file please?
 

My Computer My Computer

At a glance

windows 11
OS
windows 11
Computer type
PC/Desktop
Jesseinsf Stated: In Windows 11, Instead of enabling it in Edge or any other browser, it's best that this is done within Windows settings. When you set it up globally, you have a fallback choice in case something doesn't work. If something doesn't work, it will fall back to the unsecure method.

If this is truly the case, how do you do that, is their a reg file available to enable / undo this globally in windows settings ? Can someone master one up real quick--I use Google Chrome but that would not matter I guess if it's a global setting that is applied. Many thanks to the wonderful folks out there..
 

My Computer My Computer

At a glance

Windows 11 Pro 64 Bit 25H2 26200 9168Intel Core I5-8250U 1.80 GHZ16 GBIntel UHD Graphics 620
OS
Windows 11 Pro 64 Bit 25H2 26200 9168
Computer type
Laptop
Manufacturer/Model
Asus X510UAR
CPU
Intel Core I5-8250U 1.80 GHZ
Memory
16 GB
Graphics Card(s)
Intel UHD Graphics 620
Sound Card
Conexant
Monitor(s) Displays
Dell 24" ST2420
Screen Resolution
1920x1080
Hard Drives
ADATA SU635 DDS
Keyboard
Logitech
Mouse
Logitech
Internet Speed
465
Browser
Google Chrome, MS Edge
Antivirus
Norton 360
Other Info
Windows Feature Experience Pack 1000.26100.297
Is there a way to disable the same on brave browser with a reg file please?
This reg file was the only way for edge to connect properly with my secured dns provider configured via windows 11. However id like to implement the same to brave and chrome, and I’m not sure how to do it..
 

My Computer My Computer

At a glance

windows 11
OS
windows 11
Computer type
PC/Desktop
Is there a way to choose a specific DNS using regedit?
 

My Computer My Computer

At a glance

Windows 11 Education
OS
Windows 11 Education
Is there a way to choose a specific DNS using regedit?

Hello I also have this problem, turns out we can set it using two configuration. One forcing the DNS mode to secure DoH, see

Microsoft Edge Browser Policy Documentation DnsOverHttpsMode

then configure the URL

Microsoft Edge Browser Policy Documentation DnsOverHttpsTemplates

In short it should lead to

1752405022811.webp

On Registry it's
1752405059519.webp



I look it multiple ways and in the end I can use the DoH.

Because the browser is enforced by company Sharepoint configuration, but for some reason can be overridedn by machine Registry.

I hope that helps
 

My Computer My Computer

At a glance

Windows 11 SL
OS
Windows 11 SL
Computer type
Laptop
Manufacturer/Model
Dell
i use AcrylicDNS a resolving caching server that enables DNS over HTTPS

its fairly easy to set up via the configuration page
then just set the systems DNS IPv4 to 127.0.0.1 and DNS IPv6 to ::1

best of luck, Steve ..
 

My Computers My Computers

  • At a glance

    Windows 11 HomeRyzen 7 5825u64GB DDR4 3200Ryzen 7 5825u
    OS
    Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP 24" AiO
    CPU
    Ryzen 7 5825u
    Motherboard
    HP
    Memory
    64GB DDR4 3200
    Graphics Card(s)
    Ryzen 7 5825u
    Sound Card
    Realtek External 5w speaker bar.
    Monitor(s) Displays
    24" HP AiO
    Screen Resolution
    1920 x 1080 @60 Hz
    Hard Drives
    1TB WD Blue SN580 M2 SSD Partitioned C:/D: drives.
    2x 1TB USB HDD External Backup/Storage.
    all VeraCrypt encrypted.
    PSU
    90W external power brick
    Case
    24" All in One
    Cooling
    Default Air Cooling
    Keyboard
    Dell WiFi UK extended
    Mouse
    Dell WiFi 3 Button
    Internet Speed
    1GB full fibre
    Browser
    Vivaldi Browser/Email/Calendar
    Antivirus
    AVG Internet Security/Windows Defender
    Other Info
    Mainly Open Source Software
  • At a glance

    Ubuntu 22.04.5 LTSi5 7200u16GB DDR4Intel
    Operating System
    Ubuntu 22.04.5 LTS
    Computer type
    Laptop
    Manufacturer/Model
    Dell 13" Latitude 2017
    CPU
    i5 7200u
    Motherboard
    Dell
    Memory
    16GB DDR4
    Graphics card(s)
    Intel
    Sound Card
    Intel
    Monitor(s) Displays
    13" Dell Laptop
    Hard Drives
    250GB Crucial 2.5" SSD
    Mouse
    Generic WiFi 3 button
    Internet Speed
    WiFi only
    Browser
    Firefox
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software

Latest Support Threads

Back
Top Bottom