Skip to content
This project generates dnsmasq, bind and unbound zone files to be used in DNS based AD Blockers.
Branch: master
Clone or download
Latest commit 42194e0 May 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis-ci Use Travis CI to validate zone files before publishing (#8) Dec 1, 2017
bind Automated Update May 14, 2019
dnsmasq Automated Update May 14, 2019
unbound Automated Update May 14, 2019
.gitignore add yarn files to git ignore Jun 13, 2018
.travis.yml Use Travis CI to validate zone files before publishing (#8) Dec 1, 2017
README.md Automated Update May 14, 2019
README.template.md updated readme template Dec 1, 2017
build.js Add support for bind nxdomain responses using RPZ (#7) Dec 1, 2017
custom.blacklist.json
custom.whitelist.json added fls-na.amazon.com to whitelist, it is used for "Login with Amazon" Dec 20, 2018
package-lock.json updated deps Feb 9, 2019
package.json updated deps Feb 9, 2019

README.md

Travis branch

DNS Zone Blacklist Generator

This project generates a zone file for BIND, Dnsmasq and Unbound DNS servers using data from the StevenBlack/hosts project. The generated zone files can be used to block ads and malware for an entire network when used with a local DNS server.

DNS based ad blockers can support wildcard entries. This tool filters out any subdomains of known adware or malware domains, reducing the number of zone entries required from 39,087 down to 25,293.

DNS Server Response Type Download SHA256 Checksum
BIND 0.0.0.0 link link
BIND (RPZ) NXDOMAIN link link
Dnsmasq 0.0.0.0 link link
Dnsmasq NXDOMAIN link link
Unbound 0.0.0.0 link link
Unbound NXDOMAIN link link

Blacklist Updates

The blacklists are updated every 24 hours with the latest data from StevenBlack/hosts. The builds logs are publicly available on Travis CI and each zone file is tested to be valid before publishing.

Building the Blacklist

The blacklist can be generated using Node.js 8.4.0 or later.

Install:

git clone https://github.com/oznu/dns-zone-blacklist.git
cd dns-zone-blacklist

npm install

Then build:

node build.js

The compiled blacklist files will be saved to the ./bind, ./dnsmasq and ./unbound a 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.

You can’t perform that action at this time.