This project generates a BIND and DNSMASQ zone files to be used in DNS based AD Blockers such as oznu/dns-ad-blocker.
The blacklist is generated using data from the StevenBlack/hosts project which is extending and consolidating hosts files from a variety of sources like adaway.org, mvps.org, malwaredomains.com, someonewhocares.org, yoyo.org, and potentially others.
Since DNS based AD Blockers can support wildcard entries, this tool filters out any subdomains of known adware or malware domains, reducing the number of BIND entries required from over 29,000 to just under 19,000.
The blacklist can be generated using Node.js 6.9.1 or later.
Install:
git clone https://github.com/oznu/dns-zone-blacklist.git
cd dns-zone-blacklist
npm install
Then build:
node build/index.js
The updated blacklist files will be saved to the ./bind and ./dnsmasq directories in the root of the project.
Custom entries can be added to the custom.blacklist.json file in the root of this project before building.
Any domains you wish to exclude from the blacklist can be added to the custom.whitelist.json file in the root of this project before building.