How To Turn DNS Over HTTPS On Or Off In Firefox (2027)

Quick answer

  • Open the Firefox menu, choose Settings, select Privacy & Security, scroll to DNS over HTTPS, click Advanced settings, then pick Default Protection, Increased Protection, Max Protection, Custom or Off.
  • Default Protection turns DoH off by itself when a VPN, parental controls or an enterprise policy is active; the status line shows Active, Not active or Off.
  • To keep one site on your normal DNS, click Manage Exceptions in the same section and add it; Max Protection also offers that exception when a secure lookup fails.

Applies to: Firefox for desktop (Mozilla’s support page lists versions 149 to 161 and 153 ESR)

Firefox turns DNS over HTTPS on or off in Settings > Privacy & Security, in the DNS over HTTPS section. Firefox calls it secure DNS, and it has a few protection levels.

Which level you pick decides whether Firefox can quietly fall back to your normal DNS or has to stop and warn you.

This guide follows Mozilla’s two support articles on the feature and lists what each choice does.

Table of Contents

The protection levels at a glance

LevelWhat Firefox doesIf the secure lookup fails
Default ProtectionUses secure DNS in available regions, and can use local providers when possibleFalls back to your default resolver
Increased ProtectionKeeps DoH on with the provider you selectSwitches to a backup only if your provider has problems
Max ProtectionAlways uses secure DNSShows a security warning, with an option to add an exception for that domain
CustomAlways uses secure DNS with the provider you chooseFalls back only on provider problems; the warn option shows the Max Protection warning
OffUses your default DNS resolverNot applicable

Mozilla lists Custom as a level on its article, so it appears here even though the three named levels are the ones most people use.

What DNS over HTTPS does

Normally the lookup that turns a web address into an IP address travels over an unencrypted connection, so others on the network can see which sites you visit.

DoH sends that lookup to a compatible DNS server over an encrypted HTTPS connection instead.

By default Firefox sends DoH queries to servers run by a trusted partner, and Mozilla’s Trusted Recursive Resolver policy forbids those partners from collecting personally identifying information.

If a DoH lookup fails, Firefox falls back to the DNS configured by your operating system rather than showing an error, except when you choose Max Protection.

Change the setting on a computer

  1. Click the menu button and select Settings. On a Mac, use the Firefox menu in the menu bar.
  2. Select Privacy & Security on the left.
  3. Scroll down to the DNS over HTTPS section.
  4. Click Advanced settings.
  5. Choose a protection level, or choose Off to use your default resolver.
  6. Under Increased Protection or Custom, select the provider you want to use.

Mozilla’s article does not list the available providers, so the names you see in the drop-down are the ones your Firefox offers.

Add a site exception

If one site fails with secure DNS but works with your normal DNS, you do not have to turn the feature off for everything.

  1. Open Settings, then Privacy & Security.
  2. Scroll to DNS over HTTPS and click Manage Exceptions. You can also open Advanced settings first and click it there.
  3. Add the sites you want excluded from secure DNS.

Those sites then use your system resolver instead of the secure one.

What the status line means

StatusMeaning
ActiveQueries are being sent securely
Not activeErrors or network conditions, such as a VPN, parental controls or an enterprise policy, are preventing DoH
OffDoH is disabled

“Not active” does not mean something is broken; it is often Firefox stepping aside on purpose.

When Firefox turns DoH off by itself

Mozilla says Firefox will not enable DoH if parental controls are on.

It also holds back when the default DNS server is filtering potentially malicious content, or when the device is managed by an organization with a special DNS configuration.

These checks run each time the device connects to a different network.

Organizations can disable DoH through enterprise policies and a canary domain lookup, and Mozilla links to a separate page for network administrators.

Why you might switch it off

Mozilla warns that DoH bypasses your local DNS resolver, which can defeat malware blocking, parental controls or filtering you set up through that resolver.

That is the main reason to pick Off, or an exception, on a home network that filters through its own DNS. If a site only fails in Firefox, comparing it with another browser helps show whether DNS is the cause.

Mozilla also notes that the DoH provider can still see your queries, although its policy limits what partners may do with them.

Where it is on by default

RegionDefault rollout
United States, desktopFully rolled out by default in 2019
CanadaFully rolled out by default in 2021
Russia and UkraineRollout by default began in March 2022

Mozilla says it is working toward more countries.

Why Mozilla suggests leaving it on

Firefox 118 and later support Encrypted Client Hello, which encrypts the first handshake with a website.

ECH needs an HTTPS DNS record, which Firefox can get through DoH or through the operating system resolver, and Mozilla recommends keeping DoH on to get the full benefit.

Mozilla also says the performance impact in its testing is minimal, and sometimes DoH is faster than traditional DNS.

If sites fail in every browser, the cause is likely your system or router, so see our guide to the DNS Server Not Responding error on Windows or how to change the DNS server in Windows 11.

For other privacy settings in the browser, see how to turn off AI features in Firefox.

Sources

Mozilla Support: Configure DNS over HTTPS protection levels in Firefox and Firefox DNS over HTTPS, read on Nov 29, 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *