Skip to main content

1 dnslist

https://travis-ci.com/marmeladema/dnslist.svg?branch=master
Author:

Elie ROUDNINSKI

dnslist is a Python package that allows to easily load domain list from various sources and merge them together. It is mainly used for merging ads/malware domain list together.

1.1 Installation

1.1.1 Requirements

dnslist requires Python 3. It has been tested on Python 3.6 on Linux. For dependencies, see requirements.txt file.

1.1.2 From github

You can clone this repository and install it with setuptools directly:

$ python3 setup.py install --user

1.1.3 From pip

As every pip available package, you can install it easily with the pip package:

$ python3 -m pip install --user dnslist

1.2 Usage

dnslist comes with both a Python module and an executable tool. You will more lilely want to use the executable directly.

1.2.1 Configuration

First, you will need to create a configuration file with toml syntax:

[source.yoyo]
url = "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0"

This file should most likely resides in ~/.config/dnslst/config.toml

1.2.2 Generation

Then you can just execute the dnslist executable tool:

$ dnslist domains.txt

This should generate a domain.txt file in the current working directory.

1.2.3 Template

You can customize how the generated file looks like by providing a moustache template:

$ dnslist -t <path/to/template.moustache> domains.txt

If you need help with moustache syntax, you can check out the:

1.2.4 Examples

Take a look at the examples/ directory for some classic configurations or templates.

Metadata

Release files for dnslist 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dnslist 0.2
File Size Uploaded Provenance Actions
dnslist-0.2.tar.gz 3.8 kB Without provenance Details for dnslist-0.2.tar.gz

Release files / dnslist-0.2.tar.gz

Download URL dnslist-0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2a7bff402af4c87e96555f9e2453c86e117e509894782db311217b81d342dfc1
BLAKE2b-256 checksum
How to use checksums
b5436bd28f1a789e727b1f2337e44df720a53a8d442c1c86e0c47bea72d35cd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Security for dnslist 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page