Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

Beginners Questions • [Networking] Mantaining and updating a HOSTS file

$
0
0
I would recommend either using NextDNS with your desired settings. It's the easiest way to have DNS-based adblocking.

Alternatively, you could install your own resolver (e.g. unbound) and set it up to block a list of domains, etc. This is better/cleaner than (ab)using /etc/hosts for that.
dnsmasq has a nice clean way to handle that, which I have been meaning to migrate over to. I'm just procrastinating at this point.

dnsmasq.conf:

Code:

# Add domains which you want to force to an IP address here.# The example below send any host in double-click.net to a local# web-server.#address=/double-click.net/127.0.0.1
It's supposedly faster, too.

Unfortunately, this interferes with uBlock Origin's CNAME uncloaking lookups, assuming your Firefox is respecting your system wide DNS configuration (network.trr.mode=5).

Statistics: Posted by Uptorn — 2024-06-14 05:03 — Replies 9 — Views 200



Viewing all articles
Browse latest Browse all 3567

Trending Articles