Quick Reference
Configuration Endpoints
Use this address across all methods below.
🔒 DNS over HTTPS
⚙ Bootstrap Address
§ I
Firefox Settings
The simplest approach — works in Firefox 62 and later, no configuration files needed.
Method 1 — Built-in Network Settings
Click the menu button (☰) → "Settings".
Scroll to the bottom of the General tab → click "Settings…" under Network Settings.
Check the box labelled "Enable DNS over HTTPS".
Select "Custom" from the provider dropdown and enter:
Click "OK", then visit about:networking#dns to confirm DoH is active.
§ II
about:config
Fine-grained control over TRR behaviour — navigate to about:config and set each preference.
Method 2 — Advanced Preferences
Type about:config in the address bar, accept the warning, then search for and set each value below.
Set network.trr.mode to 3 for TRR-first (recommended) or 4 for TRR-only with no fallback.
§ III
user.js
Drop a user.js file into your Firefox profile folder for automatic configuration on every launch.
Method 3 — user.js Profile File
Locate your profile folder via about:profiles → "Open Folder", then create or edit user.js:
Firefox reads user.js on every startup, overriding stored preferences.
§ IV
Enterprise Policies
Lock DoH settings across a fleet via policies.json or command-line flags.
Method 4 — policies.json
Place policies.json in the Firefox distribution/ folder to enforce settings for all users on the machine.
Command-Line Launch Flags
Useful for testing or kiosk setups without touching profile files.
Reference
TRR Mode Values
The network.trr.mode preference controls how aggressively Firefox uses DoH.
Off
DoH disabled. Uses system DNS resolver entirely.
Shadow
Runs DoH in parallel for testing — system DNS still used.
TRR-First ✦
Recommended. DoH first, falls back to system DNS if needed.
TRR-Only
DoH only — no fallback. Queries fail if DoH is unreachable.
Confirm It's Working
Verification
Use these built-in Firefox pages to confirm DoH is active.
Firefox Internal Pages
Under about:networking#dns you should see DNS queries resolved via TRR with your DoH endpoint listed.
External Leak Tests
Common Issues
Troubleshooting
If DoH isn't working, check these first.
DoH Not Working?
- Firefox 62 or later required
- Check for enterprise policies overriding settings
- Verify the DoH endpoint URL is exactly correct
- Disable VPN or proxy temporarily and retest
- Check for parental controls or content filters
- Restart Firefox after any configuration change
Common Firefox Issues
- Enterprise policies: may lock or block custom providers
- Extensions: some privacy add-ons conflict with TRR
- Corporate networks: port 443 for DNS may be filtered
- Clock skew: certificate errors if system time is wrong
- Mode 4: switch to mode 3 if sites become unreachable
Need More Help?
Reach out or explore other platform guides in the Knowledge Base.