dnsmasq + lists of domains and hostnames to redirect to a fake web server
50K+
There are 2 lists:
/adblock/hostnames.txt which is a list of hostnames to blacklist.
/adblock/domains.txt which is a list of domains to blacklist
The dns server will read them to redirect all the domains and hostnames to a fake ip.
conf-file=/adblock/domains.txt
addn-hosts=/adblock/hostnames.txt
Those files are empty in the image.
Personally I use the list from https://github.com/notracking/hosts-blocklists This list is daily updated and pretty complete. What I suggest:
cd ~/adblockwget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txtwget https://raw.githubusercontent.com/notracking/hosts-blocklists/master/domains.txtdocker run -d --name dns-adblock --net=host --cap-add=NET_ADMIN -e TZ=Europe/Paris -v ~/adblock:/adblock docker imthai/dnsmasq-adblockdocker container logs -f --tail 100 dns-adblock docker run -d --name dns-adblock --cap-add=NET_ADMIN -p 53:53/udp -v ~/adblock:/adblock -e TZ=`ls -la /etc/localtime | cut -d/ -f8-9` imthai/dnsmasq-adblockContent type
Image
Digest
Size
7.5 MB
Last updated
over 4 years ago
docker pull imthai/dnsmasq-adblock