Skip to content

Instantly share code, notes, and snippets.

Avatar

Erle Pereira erlepereira

View GitHub Profile
@erlepereira
erlepereira / DNSMasq_withMalwareBlocking.md
Last active Aug 11, 2020
Using DNSMasq as a caching nameserver & add in a malware etc blocking
View DNSMasq_withMalwareBlocking.md

Assuming a Properly configured DNSMasq

a quickstart for dnsmasq is given at the end if you have not set it up yet.

something like this will add a great regularly updated malware file for it to use. More security and privacy to you! Specifically, this uses https://github.com/StevenBlack/hosts Choose one of the Raw Hosts file from there to use.

To setup DNSMasq, follow the below ...

wget -O- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | awk '$1 == "0.0.0.0" { print "address=/"$2"/0.0.0.0/"}' > /etc/dnsmasq.d/malware.conf`
You can’t perform that action at this time.