Overview
Firefox has native support for DNS over HTTPS. Once configured, all DNS queries made by Firefox are sent encrypted to the resolver you specify. Other applications on the same system are not affected.
Configuration takes about two minutes. No extension or add-on is needed.
Configure DoH in Firefox settings
- Open Firefox and go to
Settings(hamburger menu > Settings, or typeabout:preferencesin the address bar). - Scroll down to the Privacy & Security section.
- Scroll to DNS over HTTPS.
- Select Max Protection (recommended) or Increased Protection.
- Under Choose provider, select Custom.
-
Enter one of the following:
- Standard:
https://dns.hostux.net/dns-query - With ad and tracker blocking:
https://dns.hostux.net/ads
- Standard:
- Close settings. The change takes effect immediately.
Protection modes explained
- Max Protection
- Firefox only uses the DoH resolver you configured. If it is unreachable, DNS fails rather than falling back to the system resolver. This is the most private option.
- Increased Protection
- Firefox uses the DoH resolver by default but falls back to the system resolver if DoH fails. Less strict, but more resilient on unreliable networks.
- Off
- Firefox uses the system DNS resolver, which is unencrypted by default.
Advanced: configure via about:config
For scripted or policy-based deployment, you can set these preferences directly in about:config:
| Preference | Value |
|---|---|
network.trr.mode |
3 (Max Protection) or 2 (Increased Protection) |
network.trr.uri |
https://dns.hostux.net/dns-query |