Disabling Firefox's 'Choose Your Own DNS' Feature on Windows with Cloudflare DNS

Abstract: Disable Firefox's DNS-over-HTTPS to resolve conflicts when using custom Cloudflare DNS on Windows.

Created: 2026-09-29 by
To disable Firefox's built-in DNS-over-HTTPS feature and switch to Cloudflare DNS on Windows, you must access the advanced configuration editor. Navigate to your network settings to ensure no system-level overrides exist, then type about:config in the address bar. Accept the warning, search for network.trr.mode, change it from 3 (DoH) to 0 (Off), and restart the browser to apply the standard DNS resolution provided by your operating system or custom provider.

Understanding Firefox DNS Settings

Firefox includes a privacy-focused feature called DNS-over-HTTPS (DoH). By default, this encrypts your domain name lookups, preventing your Internet Service Provider (ISP) from seeing which websites you visit. While this enhances security, some users prefer to manage their own DNS providers, such as Cloudflare (1.1.1.1) or Google (8.8.8.8), for reasons related to local network policies, speed optimization, or specific filtering requirements. When you want to use these external services, you often need to disable Firefox's native DoH implementation to prevent conflicts or redundant encryption layers. The core setting controlling this behavior is located deep within Firefox's internal preferences. It is not available through the standard graphical user interface options found in the main settings menu. Instead, it resides in the about:config page, which allows power users to modify hidden parameters. Understanding how this mode works is crucial before making changes, as incorrect values can break internet connectivity or revert to less secure methods unexpectedly.

Configuring System-Level DNS on Windows

Before altering browser-specific settings, it is wise to verify that your Windows operating system is configured to use the desired DNS servers. If Windows itself is using your ISP's DNS, Firefox might inherit those settings unless explicitly overridden. To check or change this, open the Network & Internet settings from the Start menu. Select your active connection, whether Wi-Fi or Ethernet, and click on Hardware properties or Edit DNS server assignment. If you intend to use Cloudflare globally across all applications, set the IPv4 DNS servers to 1.1.1.1 and 1.0.0.1, and IPv6 to 2606:4700:4700::1111 and 2606:4700:4700::1001. This ensures that any application not using its own private DNS resolver will benefit from Cloudflare's infrastructure. However, if you only wish to affect Firefox while leaving other apps with default settings, you can skip this step and rely solely on the browser configuration changes described below. Note that changing system DNS affects all programs, so proceed with caution if you have specific corporate or home network requirements. For more information on managing Windows features, you might find Photos Folders Turned Black useful for troubleshooting other display-related issues.

Accessing the About:Config Editor

The primary method to control Firefox's DNS behavior is via the about:config interface. Type this exact string into the address bar and press Enter. Firefox will display a large orange warning screen stating, "Proceed with Caution." This is a standard safety measure because modifying these values can impact browser stability or security. Click the button labeled Accept the Risk and Continue to access the preference list. Once inside, you will see a search bar at the top. The interface may look intimidating due to the sheer number of technical parameters, but you only need to focus on one specific key. In the search field, type network.trr.mode. This parameter controls the "Trusted Recursive Resolver" mode, which is Firefox's technical term for DNS-over-HTTPS. The current value will likely be displayed prominently. If it is set to 3, it means DoH is enabled and managed by Firefox. If it is 5, it indicates that DoH is disabled entirely, which might already solve your problem if you are experiencing issues. You may also encounter the setting network.trr.uri. This defines the specific URL of the DNS provider Firefox uses when DoH is active. Common defaults include Cloudflare's endpoint (https://mozilla.cloudflare-dns.com/dns-query) or Quad9's. Changing the mode to off will ignore this URI entirely, forcing Firefox to fall back to the OS-level DNS resolution.

Changing the Mode Value

To disable the 'Choose Your Own DNS' feature effectively, you need to change the value of network.trr.mode. Double-click the entry in the search results. A dialog box will appear showing the current integer value. Replace this value with 0. Here is what the different modes mean:
  • 0 (Off): Disables DNS-over-HTTPS completely. Firefox uses the standard DNS protocol provided by your operating system.
  • 1 (Fallback): Uses DoH primarily but falls back to standard DNS if the DoH service fails.
  • 2 (Prefer): Prefers DoH but allows standard DNS as a backup.
  • 3 (Only): Forces DoH exclusively. Standard DNS queries are blocked.
  • 5 (Off): Similar to 0, but strictly disables the feature without allowing fallback mechanisms.
Setting it to 0 is the most direct way to stop Firefox from handling DNS separately. After entering 0, close the dialog box. The change takes effect immediately; you do not need to restart the browser, although restarting ensures that any cached DNS records are cleared. You can verify the change by visiting a site like cloudflare.com/cdn-cgi/trace and checking the dns field in the output. If it shows your ISP's resolver instead of Cloudflare's DoH endpoint, the setting has been applied correctly. For tips on managing your browsing session efficiently, consider reading How to Close Firefox Windows: Preferred Extension Solution.

Troubleshooting and Verification

If you disable DoH and find that you cannot connect to certain sites, it may be due to firewall restrictions or ISP blocking of standard DNS ports. In such cases, you might need to re-enable DoH or configure your router to allow outbound DNS traffic. Additionally, ensure that no third-party extensions are interfering with your network settings. Extensions like privacy blockers sometimes enforce their own DNS rules, which can conflict with about:config changes. It is also important to note that disabling DoH reduces the privacy layer Firefox provides against network eavesdroppers. Your ISP or network administrator will be able to see the domains you visit again. If you still want some level of encryption but prefer Cloudflare, you can keep network.trr.mode at 3 but change network.trr.uri to point to a different provider, though Cloudflare is already a common default. For most users switching to Cloudflare DNS, simply turning off the feature (Mode 0) and letting Windows handle the resolution to 1.1.1.1 is the cleanest approach.

Frequently Asked Questions

Does disabling DoH make my browsing slower?

No, disabling DoH typically does not slow down your browsing; in fact, it may slightly improve performance on fast networks because it removes the overhead of establishing encrypted TLS connections for every DNS lookup. However, if your ISP's DNS servers are geographically distant or overloaded, you might notice a minor delay compared to a well-cached DoH provider.

Can I use Cloudflare DNS without enabling DoH?

Yes, you can configure Windows to use Cloudflare's IP addresses (1.1.1.1) as your standard DNS resolver while keeping Firefox's DoH disabled. This allows Firefox to resolve domains using Cloudflare's infrastructure without encrypting the query via HTTPS, relying instead on the system-level DNS configuration.

What happens if I set the mode to 5 instead of 0?

Setting the mode to 5 also disables DNS-over-HTTPS, similar to mode 0. The primary difference is subtle: mode 5 strictly prevents the browser from attempting to use DoH under any circumstances, whereas mode 0 might allow fallback behavior in rare edge cases depending on the Firefox version. Both are effective for disabling the feature.

Will this change affect my ability to access .onion sites or Tor?

Disabling standard DoH does not directly impact Tor Browser functionality, as Tor uses its own specialized routing. However, if you are using the regular Firefox with a Tor proxy extension, ensuring that DNS leaks are prevented becomes critical. You should verify that your DNS settings are not leaking queries outside the Tor circuit when using such configurations.

How do I revert this change if I experience connectivity issues?

To revert the change, return to about:config, find network.trr.mode, and double-click it again. Change the value back to 3 (or whatever was previously selected) to restore Firefox's default DoH behavior. This will immediately re-enable encrypted DNS lookups managed by Firefox.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More