Step-by-step guide to configure Firefox to use our secure, token-gated DNS-over-HTTPS (DoH) service.
๐ฆ Firefox • Desktop โ Verified • Working ๐ DoH • Token AuthFirefox includes built-in support for DNS-over-HTTPS (DoH) with custom providers. This guide will help you configure Firefox to use our secure DNSaaS service with token-based authentication.
| Service | Endpoint | Authentication |
|---|---|---|
| Primary DNS | https://dns1.oss.co.za/xxxxx/dns-query |
Token in URL path |
| Protocol | DNS-over-HTTPS (DoH) • Port 443 • TLS 1.3 | |
| Firefox Version | Version 90+ (all recent versions) | |
/dns-query and supports the {?dns} template variable.
Click the Firefox menu (three horizontal lines in the top-right corner) โ select Settings.
Alternatively, type about:preferences in the address bar and press Enter.
In the left sidebar, click Privacy & Security.
Scroll down to the DNS over HTTPS section.
Check the box for "Enable DNS over HTTPS".
Select "Custom" from the provider dropdown.
Enter the following URL (replace token_testclient123 with your token):
/token_testclient123/dns-query suffix?dsn or {?dns} neededClick "OK" or "Apply" to save the settings.
about:networking#dns.
If the Settings UI doesn't work, you can configure DoH using Firefox's advanced configuration.
Type about:config in the address bar and press Enter.
Click "Accept the Risk and Continue" if prompted.
Search for network.trr.mode and set it to 2 (Custom DoH).
Search for network.trr.uri and set it to:
Set network.trr.fallback-option to false to prevent fallback to native DNS.
Restart Firefox for changes to take effect.
Use these test sites to verify your Firefox configuration is working correctly.
| Test Domain | Expected Result | What You Should See |
|---|---|---|
http://zycdjz.com |
BLOCKED | "Server not found" or DNS_PROBE_POSSIBLE |
http://malware.testcategory.com |
BLOCKED | "Server not found" or DNS_PROBE_POSSIBLE |
http://phishing.testcategory.com |
BLOCKED | "Server not found" or DNS_PROBE_POSSIBLE |
http://adult.filterdns.net |
BLOCKED | "Server not found" or DNS_PROBE_POSSIBLE |
| Test Domain | Expected Result | What You Should See |
|---|---|---|
https://example.com |
LOAD | Normal page loads |
https://google.com |
LOAD | Normal page loads |
| Test Domain | Expected Result | What You Should See |
|---|---|---|
https://dnsleaktest.com |
Your DNS Server | Should show dns1.oss.co.za or 102.220.218.218 |
Different browsers require different endpoint formats:
| Browser | Endpoint Format | Example | Status |
|---|---|---|---|
| ๐ฆ Firefox | /dns-query suffix |
https://dns1.oss.co.za/xxxxx/dns-query |
โ Working |
| ๐ฆ Brave | ?dsn parameter |
https://dns1.oss.co.za/xxxxx?dsn |
โ Working |
/dns-query at the end of the URL?dsn at the end of the URLhttps://dns1.oss.co.za/xxxxx/dns-querydns1.oss.co.zaabout:preferences#privacy โ DNS over HTTPSabout:networking#dns โ Clear DNS Cache/etc/powerdns/siteslist.rpzabout:networking#dns and check for DoH querieshttp://adult.filterdns.net - should show "Server not found"https://dnsleaktest.com - should show dns1.oss.co.zaGo to about:preferences#privacy and scroll to DNS over HTTPS.
It should show "Custom" with your URL.
To revert to your previous DNS settings:
Go to about:preferences#privacy โ DNS over HTTPS
Uncheck "Enable DNS over HTTPS"
Go to about:config
Set network.trr.mode to 0
Clear network.trr.uri
Visit about:networking#dns and click "Clear DNS Cache"
https://dns1.oss.co.za/xxxxx/dns-query/dns-query suffix
Settings โ Privacy & Security โ DNS over HTTPS โ Custom
https://dns1.oss.co.za/testclient123/dns-query
Firefox: https://dns1.oss.co.za/xxxxx/dns-query
Brave: https://dns1.oss.co.za/xxxxx?dsn