Skip to content

fix(connlib): answer use-application-dns.net with NXDOMAIN - #6831

Merged
thomaseizinger merged 4 commits into
mainfrom
fix/disable-doh-firefox
Sep 26, 2024
Merged

thomaseizinger merged 4 commits into
mainfrom
fix/disable-doh-firefox

Conversation

@thomaseizinger

Copy link
Copy Markdown
Member

Firefox uses this so-called canary domain use-application-dns.net to detect, whether it should use DoH for its DNS queries. If answered with a server error or without records, Firefox disables DoH as long as it only its "Default protection" is enabled. If a user forces DoH, this hint from the network is ignored.

See https://support.mozilla.org/en-US/kb/canary-domain-use-application-dnsnet for details.

I tested this on MacOS and Firefox does indeed instantly disable DoH. A default installation of Chrome doesn't use DoH for me.

Related: #6375.

@vercel

vercel Bot commented Sep 26, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 9:56pm

@jamilbk

jamilbk commented Sep 26, 2024

Copy link
Copy Markdown
Member

Good find! I stumbled on that this morning and forgot to update the issue. Relevant reading: https://www.chromium.org/developers/dns-over-https/#faq

Comment thread rust/connlib/tunnel/src/dns.rs Resolved
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
Signed-off-by: Thomas Eizinger <thomas@eizinger.io>

@conectado conectado left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

Comment thread rust/connlib/tunnel/src/dns.rs Resolved
Signed-off-by: Thomas Eizinger <thomas@eizinger.io>
@thomaseizinger
thomaseizinger added this pull request to the merge queue Sep 26, 2024
Merged via the queue into main with commit 81564e2 Sep 26, 2024
@thomaseizinger
thomaseizinger deleted the fix/disable-doh-firefox branch September 26, 2024 22:21
@thomaseizinger

Copy link
Copy Markdown
Member Author

This should probably have a changelog entry.

github-merge-queue Bot pushed a commit that referenced this pull request Sep 27, 2024

This branch was successfully deployed

1 active deployment
Preview — 0f39ca8f Deployed Sep 26, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants