Configure DNS-over-HTTPS in Firefox

Configure DNS-over-HTTPS in Firefox


REPLACE {DOH PREFIX} with your DoH prefix.

Configuring DNS-over-HTTPS with Firefox Manually

    Click the menu button Menu and select Preferences.

    In the General panel, scroll down to Network Settings and click the Settings button.

    In the dialog box that opens, scroll down to Enable DNS over HTTPS.

    On: Select the Enable DNS over HTTPS checkbox. Select a provider or set up a custom provider. Off: Deselect the Enable DNS over HTTPS checkbox.

    Click the Use Provider drop-down under Enable DNS over HTTPS to select a provider.

    Change DNS Provider

    Add your DOH URL* (https://{DOH PREFIX}

    Click OK to save your changes and close the window.

* Do not use this example address.
Configuring DNS-over-HTTPS with Firefox Options

network.trr.custom_uri={DOH PREFIX}
network.trr.uri={DOH PREFIX}
network.trr.mode (

You should not change the mode manually, instead use the UI in the Network Settings section of about:preferences

• 0 - Off (default). use standard native resolving only (don't use TRR at all)
• 1 - Reserved (used to be Race mode)
• 2 - First. Use TRR first, and only if the name resolve fails use the native resolver as a fallback.
• 3 - Only. Only use TRR, never use the native resolver.
• Up to FF >= 73, this mode also requires the bootstrapAddress pref to be set.
• Starting with Firefox 74, setting the bootstrap address is no longer mandatory - the browser will simply bootstrap itself using regular DNS, unless the DoH server domain can't be resolved.

• The native resolver will still be used for portal detection and telemetry (Bug 1593873)
• 4 - Reserved (used to be Shadow mode)
• 5 - Off by choice. This is the same as 0 but marks it as done by choice and not done by default.

    • Related Articles

    • Configure DNS-over-HTTPS in Chrome

      REQUIRED: MOBILE DOH ADDRESS PREFIX REPLACE {DOH PREFIX} with your DoH prefix. {DoH Hostname}: https://{DOH PREFIX} Setting up DoH in Chrome isn’t as easy as Firefox DoH. Google is behind Mozilla with rolling out support for ...
    • Configure DNS-over-HTTPS in Linux

      To configure DNS-over-HTTPS in Linux, you will need a DoH address prefix from a Virtual Site. Replace {doh_prefix} with your DoH prefix. systemd-resolved /etc/systemd/resolved.conf or /etc/systemd/resolved.conf.d/*.conf [Resolve] ...
    • Configure DNS-over-HTTPS for Windows 10 (Build 19628 or Newer)

      REQUIRED: Windows 10 (Build 19628 or Newer) REQUIRED: MOBILE DOH ADDRESS PREFIX REPLACE {DOH PREFIX} with your DoH prefix. Enable DoH in Windows 10 • Open the Registry Editor (regedit). • Navigate to the following registry key: ...
    • DNS Acronyms

      These acronyms and terms are frequently used when discussing securing DNS. DNS: Domain Name System. This is a system that translates human-readable domain names (such as into numerical IP addresses that computers can use to ...
    • HTTP Log Forwarding DNS Logs

      DigitalStakeout PDNS supports real-time log HTTP forwarding. Log forwarding is a real-time fork of your DNS log data to a target HTTP webhook endpoint. We do the hard work by enriching and annotating your logs with contextual information. DNS logs ...