Downloads and converts domain block lists for use with BIND/named RPZ files or dnsmasq host files.
Project description
nxdomain
A domain (ad) block list creator. Takes block lists from local files or URLs as input
(in hosts(5)
or domain-list format) and outputs a BIND zone or dnsmasq config.
Sample usage
$ python -m nxdomain \
# Where to store the output file.
--out=adblock.zone \
# BIND Response Policy Zone file. Also available: --format=dnsmasq.
--format=bind \
# A simple list of domains, one per line. Lines starting with '#' are skipped.
--simple=https://mirror1.malwaredomains.com/files/justdomains \
# A hosts(5) formatted list of domains. Lines starting with '#' are skipped.
--hosts=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
Notes
This program does not try to be smart. Reloading the DNS server is your responsibility. There is no caching or smart diffing.
The only smartness is that, with --format=bind
, the SOA serial will be incremented automatically if the file already exists.
License
GNU General Public License v3.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nxdomain-1.0.2.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for nxdomain-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c733cb3f1751575523a81a2953106f6ae2ef996af4d61a20ccf6447818a786a7 |
|
MD5 | b1814757abf2ecad835a2a5327e442ee |
|
BLAKE2b-256 | 20143247e1bba792678d6ed01226d505bff3abae22b6ba82f1e8db322368c286 |