I do not know if there is browser based utility to do this. But you can do it for the entire OS. The key file is
/etc/nsswitch.conf. To support only DNS records you should have record inside like:
if you need to have
/etc/hosts and the file have precedence over DNS you need to have record like:
hosts: files DNS
EDIT: You can set Firefox to use DNS over https. Here you can find detailed instructions:
about:config in the Firefox address bar and then press enter. When Firefox asks, click on the button stating that you accept the
In the search field enter
network.trr to display all of the settings for Firefox's Trusted Recursive Resolver, which is the
DNS-over-HTTPS Endpoint used by Firefox.
network.trr.mode, enter 2 in the field, and press OK as shown below. This turns on DoH in Firefox.
Next you need to make sure the
network.trr.uri is set to https://mozilla.cloudflare-dns.com/dns-query as this is Cloudflare's
DoH DNS resolver that Firefox has partnered with for the test. If it
is not set to this URL, please double-click on the setting and enter
You can now close the