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

How do I make Firefox ignore the and always use my DNS server?

  • Akukho zimpendulo
  • 1 inale nkinga
more options


I've set up an AdGuard Home server in my network. It provides the DNS-over-HTTPS service, I added it to my Firefox Network Settings configuration as and my machine has in its /etc/hosts file.

The upstream AdGuard DNS server is my home router, which has several static DNS entries added for hosts in my network, e.g. pointing to

During regular use, the domains resolve properly - when I navigate to everything works OK.

However when my machine is connected to VPN, the browser is unable to connect to, but it is still able to reach:, regular internet as well as (which is obtained from /etc/hosts).

This is on MacOS, using openconnect as a VPN client (and of course, the VPN connection changes the host DNS servers, this is what I'm trying to circumvent with Firefox' DoH feature).

I noticed one thing: with VPN, the resolves to something, without VPN it does not. I found this article, which mentions: "When any of these checks indicates a potential issue, Firefox will disable DoH for the remainder of the network session, unless the user has enabled the “DoH always” preference as mentioned above."

I have DoH explicitly enabled, the network.trr.mode is set to 2 (tried 3 as well, did not help). There's no such option as "DoH always" in the settings!

How do I make Firefox ignore the and always use my DNS server?

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.