Compare Revisions
Firefox DNS over HTTPS
Revision 187386:
Revision 187386 by AliceWyman on
Revision 189284:
Revision 189284 by Lamont287 on
Keywords:
Search results summary:
DoH improves privacy by hiding domain name lookups from anyone lurking on public WiFi, your ISP or others on your local network. Learn more
DoH improves privacy by hiding domain name lookups from anyone lurking on public WiFi, your ISP or others on your local network. Learn more
Content:
__TOC__
=About DNS-over-HTTPS=
When you type a web address or domain name into your address bar (example: www.mozilla.org), your browser sends a request over the Internet to look up the IP address for that website.
Traditionally, this request is sent to servers over a plain text connection. This connection is not encrypted, making it easy for third-parties to see what website you’re about to access.
[https://wikipedia.org/wiki/DNS_over_HTTPS DNS-over-HTTPS] (DoH) works differently. It sends the domain name you typed to a DoH-compatible DNS server using an encrypted HTTPS connection instead of a plain text one. This prevents third-parties from seeing what websites you are trying to access.
==Benefits==
DoH improves privacy by hiding domain name lookups from someone lurking on public WiFi, your ISP, or anyone else on your local network.
DoH, when enabled, ensures that your ISP cannot collect and sell personal information related to your browsing behavior.
==Risks==
* Some individuals and organizations rely on DNS to block malware, enable parental controls, or filter your browser’s access to websites. When enabled, DoH bypasses your local DNS resolver and defeats these special policies. Firefox allows users (via settings) and organizations (via enterprise policies and a canary domain lookup) to disable DoH when it interferes with a preferred policy.
* In the US, Firefox by default directs DoH queries to DNS servers that are operated by CloudFlare, meaning that CloudFlare has the ability to see users' queries. Mozilla has a strong [https://wiki.mozilla.org/Security/DOH-resolver-policy Trusted Recursive Resolver (TRR) policy] in place that forbids CloudFlare or any other DoH partner from collecting personal identifying information. To mitigate this risk, our partners are contractually bound to adhere to this policy.
* DoH could be slower than traditional DNS queries, but in testing we found that the [https://blog.mozilla.org/futurereleases/2019/04/02/dns-over-https-doh-update-recent-testing-results-and-next-steps/ impact is minimal and in many cases DoH is faster].
=Enabling and disabling DNS-over-HTTPS=
You can enable or disable DoH in your [[Connection settings in Firefox|Firefox connection settings]]:
[[Template:dohtoggle]]
=Switching providers=
#[[Template:optionspreferences]]
#Scroll down to ''Network Settings'' and click the {button '''Settings…'''} button.
#Click the drop-down under '''Enable DNS over HTTPS''' to select a provider.
=Excluding specific domains=
You can configure exceptions so that Firefox uses your OS resolver instead of DOH:
#[[Template:aboutconfig]]
#Find and double-click the {pref network.trr.excluded-domains} preference.
#* To quickly find it, type '''excluded-domains''' in the ''Search'' field above the list of preferences.
#Add domains, separated by commas, to the list and click {button OK}. ('''Note:''' Do not remove any domains from the list.)
{note}'''A note about subdomains:''' Firefox will check all the domains you've listed in {pref network.trr.excluded-domains} and their subdomains. For instance, if you enter ''example.com'', Firefox will also exclude ''www.example.com''.{/note}
=Configuring Networks to Disable DOH=
See [[Configuring Networks to Disable DNS over HTTPS]]
__TOC__
=About DNS-over-HTTPS=
When you type a web address or domain name into your address bar (example: www.mozilla.org), your browser sends a request over the Internet to look up the IP address for that website.
Traditionally, this request is sent to servers over a plain text connection. This connection is not encrypted, making it easy for third-parties to see what website you’re about to access.
[https://wikipedia.org/wiki/DNS_over_HTTPS DNS-over-HTTPS] (DoH) works differently. It sends the domain name you typed to a DoH-compatible DNS server using an encrypted HTTPS connection instead of a plain text one. This prevents third-parties from seeing what websites you are trying to access.
==Benefits==
DoH improves privacy by hiding domain name lookups from someone lurking on public WiFi, your ISP, or anyone else on your local network.
DoH, when enabled, ensures that your ISP cannot collect and sell personal information related to your browsing behavior.
==Risks==
* Some individuals and organizations rely on DNS to block malware, enable parental controls, or filter your browser’s access to websites. When enabled, DoH bypasses your local DNS resolver and defeats these special policies. Firefox allows users (via settings) and organizations (via enterprise policies and a canary domain lookup) to disable DoH when it interferes with a preferred policy.
* In the US, Firefox by default directs DoH queries to DNS servers that are operated by CloudFlare, meaning that CloudFlare has the ability to see users' queries. Mozilla has a strong [https://wiki.mozilla.org/Security/DOH-resolver-policy Trusted Recursive Resolver (TRR) policy] in place that forbids CloudFlare or any other DoH partner from collecting personal identifying information. To mitigate this risk, our partners are contractually bound to adhere to this policy.
* DoH could be slower than traditional DNS queries, but in testing we found that the [https://blog.mozilla.org/futurereleases/2019/04/02/dns-over-https-doh-update-recent-testing-results-and-next-steps/ impact is minimal and in many cases DoH is faster].
=About the US rollout of DNS over HTTPS=
Mozilla has [https://blog.mozilla.org/futurereleases/2019/09/06/whats-next-in-making-dns-over-https-the-default/ announced] plans to enable DoH for all Firefox desktop users in the United States in 2019. DoH will be enabled for users in “fallback” mode. For example, if the domain name lookups that are using DoH fail for some reason, Firefox will fall back and use the default DNS configured by the operating system (OS) instead of displaying an error.
==Opt-out==
For existing Firefox users that are based in the US, the notification below will display if and when DoH is first enabled, allowing the user to choose not to use DoH and instead continue using their default OS DNS resolver.
[[Image:DoH Opt Out]]
In addition, Firefox will check for certain functions that might be affected if DoH is enabled, including:
* Are parental controls enabled?
* Is the default DNS server filtering potentially malicious content?
* Is the device managed by an organization that might have a special DNS configuration?
If any of these tests determine that DoH might interfere with the function, DoH will not be enabled. These tests will run every time the device connects to a different network.
=Manually Enabling and disabling DNS-over-HTTPS=
You can enable or disable DoH in your [[Connection settings in Firefox|Firefox connection settings]]:
[[Template:dohtoggle]]
=Switching providers=
#[[Template:optionspreferences]]
#Scroll down to ''Network Settings'' and click the {button '''Settings…'''} button.
#Click the drop-down under '''Enable DNS over HTTPS''' to select a provider.
#;[[Image:change dns provider|width=620]]
=Excluding specific domains=
You can configure exceptions so that Firefox uses your OS resolver instead of DOH:
#[[Template:aboutconfig]]
#Find and double-click the {pref network.trr.excluded-domains} preference. <br>To quickly find it, enter '''excluded-domains''' in the ''Search'' field above the list of preferences.
#Add domains, separated by commas, to the list and click {button OK}. <br>'''Note:''' Do not remove any domains from the list.
{note}'''A note about subdomains:''' Firefox will check all the domains you've listed in {pref network.trr.excluded-domains} and their subdomains. For instance, if you enter ''example.com'', Firefox will also exclude ''www.example.com''.{/note}
=Configuring Networks to Disable DOH=
See [[Configuring Networks to Disable DNS over HTTPS]] and the [[DNS-over-HTTPS FAQ|DNS over HTTPS FAQ]].