Closed Bug 1846872 Opened 2 years ago Closed 2 years ago

Unable to connect to Quad9 for DNS-over-HTTPS (v116.0, Windows 10)

Categories

(Core :: Security: PSM, defect)

Firefox 116
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: footwear_gesture295, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0

Steps to reproduce:

  1. Uninstall Mozilla Firefox.
  2. Remove "%APPDATA%\Mozilla" and "%LOCALAPPDATA%\Mozilla" directories.
  3. Install Mozilla Firefox.
  4. In Firefox, go to about:preferences#privacy > DNS over HTTPS.
  5. Make a net request (e.g. go to https://www.mozilla.org)

Please note:

Actual results:

Connection failure page:

Possible security risk looking up this domain
Firefox can’t protect your request for this site’s address through our trusted DNS resolver. Here’s why:
Firefox wasn’t able to connect to dns.quad9.net.
Learn more…
You can continue with your default DNS resolver. However, a third-party might be able to see what websites you visit.
[Try Again] [Change DNS settings]

Expected results:

Firefox makes a connection successfully, as it did in v115.1.0 (Windows 10).

The Bugbug bot thinks this bug should belong to the 'Core::Networking' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Networking
Product: Firefox → Core

Hi Reporter,

Could you try to record a http log?
Please try to use the steps below.

  1. Go to about:logging and select Logging to a file, then start logging.
  2. Change your DoH settings to use https://dns.quad9.net/dns-query
  3. Visit any web site and see if the warning page shows.
  4. Stop logging and send the log file to necko@mozilla.com.

Thanks.

Flags: needinfo?(footwear_gesture295)

(In reply to Kershaw Chang [:kershaw] from comment #2)

Hi Reporter,

Could you try to record a http log?
Please try to use the steps below.

  1. Go to about:logging and select Logging to a file, then start logging.
  2. Change your DoH settings to use https://dns.quad9.net/dns-query
  3. Visit any web site and see if the warning page shows.
  4. Stop logging and send the log file to necko@mozilla.com.

Thanks.

Log sent.

Flags: needinfo?(footwear_gesture295)

Thanks for the log.
It seems we have the following error for the connection to dns.quad9.net.

2023-08-03 15:12:36.170000 UTC - [Parent 8404: Socket Thread]: D/nsSocketTransport nsSocketOutputStream::Write [this=1a5ecc8ced0 count=366]
2023-08-03 15:12:36.170000 UTC - [Parent 8404: Socket Thread]: D/nsSocketTransport   calling PR_Write [count=366]
2023-08-03 15:12:36.170000 UTC - [Parent 8404: Socket Thread]: D/nsSocketTransport   PR_Write returned [n=-1]
2023-08-03 15:12:36.170000 UTC - [Parent 8404: Socket Thread]: D/nsSocketTransport ErrorAccordingToNSPR [in=-16376 out=805a3ff8]

The error 805a3ff8 is MOZILLA_PKIX_ERROR_OCSP_RESPONSE_FOR_CERT_MISSING.
So, I'll change the component and ask PSM team to have a look.

Component: Networking → Security: PSM

Thank you for your time and effort.

I got an error page for MOZILLA_PKIX_ERROR_OCSP_RESPONSE_FOR_CERT_MISSING when attempting to browse to https://dns.quad9.net/dns-query?name=quad9.net with an unspecified port number (defaulted to 443). I dismissed the error because my firewall blocks most ports (including port 5053) and because of this statement on the aforementioned reference:

An easy way to test without changing anything in your favorite DoH client is to just perform the following query right from your browser:

https://dns.quad9.net:5053/dns-query?name=quad9.net

Updated 7/25/2019 – This is now running on a custom port since this implementation is not inline with the most recent standards based DoH implementation. (see RFC 8484)

I apologize for not even considering to mention it. I look forward to to an updated certificate store in a future release.

Using https://dns.quad9.net:5053/dns-query works for me, which I think is what you're saying in comment 5?

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.