Local DNS ignored when DoH not available

Description of the issue:

I am running a local adguard home locally for dns-level adblocking and content filtering. Due to limitations in my current setup, it is not possible to set up DoH properly, so I am stuck with normal DNS, which is fine for me as I only use it on my LAN. The DNS is entered and already used by windows just fine, however Brave still appears to ignore this DNS server.

What I tried:

  • Disabling “Use secure DNS” in brave://settings/security (and restarting brave/windows after for good measure)

How can this issue be reproduced?

  1. have a dns server on the local network without DoH

  2. enter it as the only dns server for this network in windows

  3. disable secure dns in brave

  4. notice that no dns requests from brave arrive at the local dns server

Expected result:

all dns requests from brave should appear in my local dns resolver’s logs

Brave Version (check About Brave):

Brave 1.90.122

Additional Information:

@XilefTech

Re flushing DNS …

Clear host cache, close idle sockets, and flush socket pools

In a New Window, go to: ‘brave://net-internals/#dns’ and click on “Clear host cache”

Next, go to: ‘brave://net-internals/#sockets’ and click on both

  • “Close idle sockets”
  • “Flush socket pools”

Restart Brave Browser.

How to flush DNS cache in Windows OS:

‘https://www.wikihow.com/Flush-DNS’


Enter the local DNS server info - manually in Window OS settings.


Using nslookup command

‘nslookup hp.com 192.168.1.2’

Explanation:

  • hp.com → test domain you want to resolve
  • 192.168.1.2 → IP of your local AdGuard Home DNS server

Thanks for the quick reply!

Unfortunately, none of those changed the behavior for me. I tried all: clearing host cache, closing idle sockets, flushing socket pools, restarting brave, restarting windows, flushing dns in windows. none of it changed a thing.

The DNS server works, is correctly added in windows settings as the only DNS server and already used by Windows services successfully. Just Brave refuses to use it.

@XilefTech

‘Use secure DNS’ setting <–probably involved in combination with ______ I forget; and a search for "local’ at ‘brave://flags’ might turn up something to experiment with.

If I recall correctly, when Brave Browser starts, it reaches out to the DNS servers used by the ISP and/or VPN.

You need to manually add in Windows setting, the DNS server you prefer, and figure a way to frustrate Brave process finding the ISP/VPN DNS server(s). NetLimiter might work.