Cloudflare Docs
Cloudflare-One
Visit Cloudflare Zero Trust on GitHub
Set theme to dark (⇧+D)

DNS over HTTPS

Browser

Browsers can be configured to use any DoH endpoint. If you choose to configure DoH directly in your browser, you must choose a Gateway location as your DoH endpoint, otherwise Gateway DNS filtering will not occur in that browser.

Firefox

Before you start
Obtain a location’s DoH subdomain (previously known as a unique id).

With Firefox, you can send DNS queries using the DNS over HTTPS protocol.

  1. Open Preferences and scroll to the bottom.

  2. Click on Network Settings.

  3. Click on Settings.

  4. Check Enable DNS over HTTPS.

  5. Choose Custom from the drop-down for Use Provider.

  6. Enter https://YOUR_UNIQUE_SUBDOMAIN.cloudflare-gateway.com/dns-query in the Custom field. In place of YOUR_UNIQUE_SUBDOMAIN, include your unique ID.

  7. Click OK.

  8. Enter about:config in the address bar.

  9. Click on Accept the risk! if you see a prompt from Firefox.

1.Set network.trr.bootstrapAddress to 162.159.36.5.

1.Set network.trr.mode to 3.

You should now be able to send queries through the DNS over HTTPS protocol.

Google Chrome / Microsoft Edge / Brave

  1. Open Settings.
  2. In your address bar, type the following and hit Enter: chrome://flags/#dns-over-https. This will take you to Secure DNS lookups.
  3. Click on the Secure DNS lookups radio button to enable DoH.

Read more about enabling DNS over HTTPS on Chrome.

Safari

As of today, Safari does not support DNS over HTTPS.