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
Release files for nxdomain 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nxdomain-1.0.2.tar.gz | 17.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nxdomain-1.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 34.9 kB
Release files / nxdomain-1.0.2.tar.gz
| Download URL | nxdomain-1.0.2.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6be2f823bce3555e60ce2d1b243d1786ad0b480870f665dd71f93fd9d6b4476d
|
|
BLAKE2b-256 checksum How to use checksums |
ed491cd3cfe9cad1c69b15562ecdd88b7d2ee2f42119a02d7c4054a8a636f1ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nxdomain-1.0.2-py2.py3-none-any.whl
| Download URL | nxdomain-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c733cb3f1751575523a81a2953106f6ae2ef996af4d61a20ccf6447818a786a7
|
|
BLAKE2b-256 checksum How to use checksums |
20143247e1bba792678d6ed01226d505bff3abae22b6ba82f1e8db322368c286
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|