File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1- // Work around Mozilla's evil plan - https://sk.tl/3Ek6tzhq
1+ // Firefox DoH Canary Domain Plugin
2+ //
3+ // This plugin prevents Firefox from bypassing dnscrypt-proxy and using external DoH servers.
4+ // Firefox queries "use-application-dns.net" (the canary domain) to determine if it should
5+ // enable its built-in DoH. When this domain returns NXDOMAIN, Firefox respects the local
6+ // DNS configuration and doesn't override it with external DoH servers.
7+ //
8+ // Why this is important:
9+ // - Without this plugin, Firefox may bypass dnscrypt-proxy entirely and send DNS queries
10+ // directly to external DoH servers (like Cloudflare), defeating the purpose of running
11+ // a local DNS proxy for privacy, filtering, or security.
12+ // - This is especially critical when NOT using local DoH, as Firefox would otherwise
13+ // route around the proxy.
14+ // - Even when using local DoH, this plugin ensures Firefox respects the user's DNS choice.
15+ //
16+ // Technical details:
17+ // - Firefox performs a lookup for "use-application-dns.net" and its subdomains
18+ // - If the query returns NXDOMAIN (name error), Firefox disables its automatic DoH
19+ // - This allows dnscrypt-proxy to handle all DNS queries as configured
20+ //
21+ // Reference: https://sk.tl/3Ek6tzhq (Mozilla's canary domain documentation)
222
323package main
424
You can’t perform that action at this time.
0 commit comments