brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.71k stars 2.31k forks source link

[Feature Request] DoH advanced controls and Fallback to local DNS #35791

Open brokoler opened 8 months ago

brokoler commented 8 months ago

Description

Brave should give more control over DNS over HTTPS (DoH). Right now it's only possible to use either a DoH resolver or disable DoH and use a local DNS resolver. It should be possible to use a DoH resolver and fallback to a local DNS resolver when domains can't be resolved by DoH.

Following features are missing:

Problems with existing implementation

If DoH is configured it's impossible to resolve a local domain by a Local DNS resolver.

With today's implementation, there are two ways getting Local DNS resolving to work:

Both solutions are not intuitive and a fallback to a local DNS resolver would me much appreciated.

Solution

This feature would allow to use a DoH resolver whenever it is possible and to have a local fallback when it is needed. DoH can be enabled all the time and local DNS entries would get resolved.

Example how Firefox solved it

Firefox added more granular control a few months ago, Brave should adopt something similar:

image

diracdeltas commented 8 months ago

cc @arthuredelstein