Skip to main content

Downloads and converts domain block lists for use with BIND/named RPZ files or dnsmasq host files.

Project description

nxdomain

Build status

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


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.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

nxdomain-1.0.0-py2.py3-none-any.whl (16.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nxdomain-1.0.0.tar.gz.

File metadata

  • Download URL: nxdomain-1.0.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for nxdomain-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1504b5cc68ce25b0db7265571b7033cf119adf99049a919c2f50b483ee9b9fda
MD5 bfcf9d2c2ca4d4ec99a2398ba28fdaaf
BLAKE2b-256 59f69aeaf1763c7a2c57cc7b407226a14b472f7ce37e6f72e7a6a4f13db81918

See more details on using hashes here.

File details

Details for the file nxdomain-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nxdomain-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for nxdomain-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 17ff54fd5f71fdc739912854d27f0a12094c862fcec76ca0ad2593a196971220
MD5 b096cf65e3725ffee15d12bb8adf7a3c
BLAKE2b-256 49946df9cc56e82b50ee63a39c5c2ee6fd1fc573bb110a8cd48c194f180db86b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page