---
description: >-
  Use one of the following methods to configure for a secure browsing
  experience.
---

# DNS-over-HTTPS in Mozilla Firefox

## **Preferences Menu** <a href="#preferences-menu" id="preferences-menu"></a>

1. Open Mozilla Firefox.
2. In the menu, navigate to **Tools** > **Preferences** > **General** > **Settings** > **Network Settings.**
3. Select **Enable DNS over HTTPS**.
4.  To set DNS resolver, choose one of the following options:

    `(Default) Set Cloudfare.`

    `Set a custom DNS resolver.`



## Configuration Panel <a href="#configuration-panel" id="configuration-panel"></a>

1. Open Mozilla Firefox.
2. Type **about:config** in the URL bar.
3.  Search for **network.ttr.mode** and set one of the following values:

    **`2:`**`Turns on DoH and keeps the regular DNS only as a backup.`

    **`3:`** `Turns on DoH with no regular DNS support.`
4. To set the domain name of the DNS resolver, search for **network.ttr.uri** and enter the following Cloudflare URI:&#x20;
   * [https://mozilla.cloudflare-dns.com/dns-query](https://mozilla.cloudflare-dns.com/dns-query)​
5.  (Optional). Search for **network.ttr.bootstrapAddress** and set up one of the IP addresses.

    **Cloudfare:** 1.1.1.1

    **Google:** 8.8.8.8

## &#x20;<a href="#configuration-panel" id="configuration-panel"></a>
