Skip to content

This project generates a BIND zone file to be used in DNS based AD Blockers such as oznu/dns-ad-blocker.

Notifications You must be signed in to change notification settings

jbatalle/dns-zone-blacklist

 
 

Repository files navigation

DNS Zone Blacklist Generator

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.

Building the Blacklist

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

Custom entries can be added to the custom.blacklist.json file in the root of this project before building.

Whitelist

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.

About

This project generates a BIND zone file to be used in DNS based AD Blockers such as oznu/dns-ad-blocker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%