Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Does DoH support /etc/hosts?

  • 1 reply
  • 1 has this problem
  • 4 views
  • Last reply by philipp

more options

The initial version of FF support for DoH does not support querying etc/hosts as documented here: https://daniel.haxx.se/blog/2018/06/03/inside-firefoxs-doh-engine/ Yet in the Q&A, Daniel states "Parsing /etc/hosts has been requested as well as the ability to “whitelist” domains to use the native resolver (which then also would read /etc/hosts). My personal opinion is that we *should* support something like that."

I would like to know if this has been implemented and if not, is it on the roadmap for changes?

The initial version of FF support for DoH does not support querying etc/hosts as documented here: https://daniel.haxx.se/blog/2018/06/03/inside-firefoxs-doh-engine/ Yet in the Q&A, Daniel states "Parsing /etc/hosts has been requested as well as the ability to “whitelist” domains to use the native resolver (which then also would read /etc/hosts). My personal opinion is that we *should* support something like that." I would like to know if this has been implemented and if not, is it on the roadmap for changes?

Chosen solution

hello, this currently isn't on the roadmap for changes to the trr/doh implementation - see https://bugzilla.mozilla.org/show_bug.cgi?id=1453207. however, you could use the "network.trr.excluded-domains" preference in about:config to exclude particular domain names from resolution through the doh-provider which - i would guess - falls back to the system settings including the hosts-file.

Read this answer in context 👍 0

All Replies (1)

more options

Chosen Solution

hello, this currently isn't on the roadmap for changes to the trr/doh implementation - see https://bugzilla.mozilla.org/show_bug.cgi?id=1453207. however, you could use the "network.trr.excluded-domains" preference in about:config to exclude particular domain names from resolution through the doh-provider which - i would guess - falls back to the system settings including the hosts-file.