Closed Bug 1678041 Opened 5 years ago Closed 5 years ago

When "DNS over https" option is enabled, Firefox ignores local etc/hosts file (Win10).

Categories

(Core :: Networking: DNS, defect)

Firefox 82
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mrkosjan, Unassigned)

Details

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

Steps to reproduce:

  1. try opening https://www.mozilla.org in Firefox (the site should load)
  2. Add entry to the local hosts file (C:/Windows/System32/drivers/etc/hosts on Windows10), e.g.:
    127.0.0.1 www.mozilla.org
  3. Restart firefox and try opening https://www.mozilla.org in Firefox (the site should become unaccessible)
  4. in "Options" -> "Network Settings", check the option "Enable DNS over HTTPS" with provider "Cloudflare (Default)"
  5. try opening https://www.mozilla.org again (the site will load again)

Actual results:

When using DNS over HTTPS, local DNS entries in the hosts files are ignored and I can access sites that I blocked using the etc/hosts entries.

Expected results:

Firefox should use the local etc/hosts entries even when "DNS over HTTPs" is used.

Component: Untriaged → Networking: DNS
Product: Firefox → Core

I think we've fixed this in bug 1616252.
Could you test again with the latest nightly?

Flags: needinfo?(mrkosjan)

Yep, I could not reproduce the issue in nightly 85.0a1. Thank you!

Flags: needinfo?(mrkosjan)

Thank you for the quick response!

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