Firefox can send DNS requests to its own secure DNS provider even while your VPN is connected, so your VPN's DNS resolver may never see them.
Open Firefox Settings, go to General, then Network Settings, and set DNS over HTTPS to Off in the Connection Settings dialog. DNS queries then follow the VPN or the system network settings.
In this guide, I have covered:
Contents
Turn off Firefox DNS over HTTPS
When Firefox uses DNS over HTTPS while your VPN is connected, it can send DNS queries to a separate secure DNS provider instead of the VPN’s resolver. Turn the feature off in Firefox’s connection settings when you want DNS requests to follow your VPN or system network configuration.
Mozilla’s Firefox DNS over HTTPS guide explains the protection choices and the network settings involved.
- Open the Firefox menu and select Settings.
- Scroll to the General section and find Network Settings.
- Click the Settings… button beside Network Settings.
- In the Connection Settings dialog, find Enable DNS over HTTPS or the secure DNS provider control.
- Change the DNS over HTTPS setting to Off.
- Close the Connection Settings dialog.
Firefox may show the choice as a checkbox, a provider menu, or both. If you see a provider menu, select Off and confirm if Firefox asks.
Restart the VPN connection and reopen Firefox. Back in the Connection Settings dialog, the DNS over HTTPS control should read Off.
Firefox may show secure DNS as inactive when it detects a VPN or hits DNS errors. That label does not confirm the setting is right for your VPN, so check that the control itself is set to Off.
Which DNS over HTTPS setting to pick
The DNS over HTTPS menu can include Default Protection, Max Protection, Increased Protection, Custom…, and Off. The setting controls whether Firefox sends ordinary DNS requests through an encrypted HTTPS connection.
For a VPN you want Firefox to follow, choose Off. Default Protection lets Firefox decide when to use secure DNS, and the other protection choices can keep DNS queries inside Firefox’s selected secure DNS service.
If an organization or network administrator manages the control, use Mozilla’s network configuration guidance.
Check the VPN proxy settings in Firefox
If your VPN is configured through Firefox rather than as a system-wide connection, its proxy settings are in the same Connection Settings dialog. Check them after changing DNS over HTTPS so the browser still uses the intended VPN proxy.
- Open the Firefox menu and select Settings.
- Go to General and click Settings… beside Network Settings.
- Review the proxy configuration for your VPN, including proxy type, address, port, and authentication.
- Close the dialog without changing the entries your VPN or administrator supplied.
Do not copy proxy details from another VPN or service. If your VPN runs as a browser extension or at the operating-system level, its connection controls may not appear in Firefox’s proxy panel.
To remove an unwanted VPN extension or review proxy entries another way, see Disable a VPN Extension and Proxy Settings in Firefox.
Test the connection after disabling DNS over HTTPS
After you change the setting, check that Firefox still loads pages and resolves them through the VPN’s DNS.
- Disconnect and reconnect the VPN.
- Open a new Firefox tab and load a website that was not already open.
- Open the address bar and check the connection information for the site.
- Compare the displayed DNS information with what your VPN reports.
If the connection is not using the VPN, check that the VPN is connected and that Firefox’s proxy settings still point to the VPN service. If sites load but the DNS information looks wrong, open Connection Settings and confirm DNS over HTTPS is Off.
When to turn DNS over HTTPS back on
DNS over HTTPS encrypts DNS requests, which helps on networks where DNS queries need privacy. Turning it off in Firefox does not stop encryption for the websites you visit. It lets DNS requests use the resolver set by the operating system or VPN.
Turn the setting back on when you no longer need the VPN’s DNS resolver, or when your network administrator requires secure DNS in Firefox. Mozilla has a separate Firefox DNS over HTTPS guide and guidance for networks that disable it.
Disabling DNS over HTTPS does not disable Encrypted Client Hello (ECH). ECH is a separate Firefox feature and may still be active after you turn DNS over HTTPS off.
Frequently Asked Questions
Should I turn off DNS over HTTPS whenever I use a VPN?
Turn it off if your VPN is configured to provide DNS and you want Firefox to use that resolver. You can leave it on if you intentionally want Firefox to use its own secure DNS provider.
Does disabling Firefox DNS over HTTPS disable HTTPS for websites?
No. It changes how Firefox handles DNS requests, not the HTTPS connection used to load a website. It also does not disable ECH, which is a separate feature.
Why does Firefox show DNS over HTTPS as inactive when a VPN is connected?
Firefox can mark the setting inactive when it detects network conditions such as a VPN or hits DNS errors. Check the actual configuration in Connection Settings rather than relying only on that status label.
Can I use my VPN’s DNS resolver in Firefox without disabling all secure DNS?
Firefox can still use its selected secure DNS provider in some configurations, but that provider may not be the VPN’s resolver. For direct control over which DNS server handles requests, set DNS over HTTPS to Off and check the VPN’s proxy or network configuration.
