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
Built Distribution
File details
Details for the file nxdomain-1.0.2.tar.gz
.
File metadata
- Download URL: nxdomain-1.0.2.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6be2f823bce3555e60ce2d1b243d1786ad0b480870f665dd71f93fd9d6b4476d |
|
MD5 | 04ecf20c0f7172f399dd03e47b4b4c70 |
|
BLAKE2b-256 | ed491cd3cfe9cad1c69b15562ecdd88b7d2ee2f42119a02d7c4054a8a636f1ca |
File details
Details for the file nxdomain-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: nxdomain-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c733cb3f1751575523a81a2953106f6ae2ef996af4d61a20ccf6447818a786a7 |
|
MD5 | b1814757abf2ecad835a2a5327e442ee |
|
BLAKE2b-256 | 20143247e1bba792678d6ed01226d505bff3abae22b6ba82f1e8db322368c286 |