Skip to main content

Blocklist Updater for DNS Masq

Project description

dnsblock-update

Blocklist Updater for DNSmasq

Usage

Installation

Run the following command: pip3 install dnsblock_update

Configuration

Create a configuration file with the following content:

dnsmasq: 
  path: "result.conf"   # Generated DNSMasq configuration
repository:
  path: "./repo/"       # Path to the cache repository used by the updater
blocklists:
  - name: "notracking"                      # name of the blocklist
    url: https://example.com/blacklist.txt  # url of the blocklist

Execution

Create a cronjob:

0 2 * * * /usr/bin/python3 -m dnsblock_update /etc/dnsblock_update/config.yml

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

dnsblock_update-0.0.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dnsblock_update-0.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file dnsblock_update-0.0.2.tar.gz.

File metadata

  • Download URL: dnsblock_update-0.0.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for dnsblock_update-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8c9ebe4d45b37f3c0e3c86135ca7ab36622165d0a0216824e47bce1d95d51a27
MD5 7e0f9689410504af6396bec1cb122698
BLAKE2b-256 f26092fc3e9c8890f448b0116a97c79f1d48d00b24d4ce248829839757037e78

See more details on using hashes here.

File details

Details for the file dnsblock_update-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dnsblock_update-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 974a1351aef88cc8673a0ac6496f5b7a33e29d6bd68abe8134e5621698cfd090
MD5 3435db9f1626cacf0f232ae5ba64b1ca
BLAKE2b-256 eff781128dc14e0f6465bfdc1c7a50c89e5b626de8f7303b2c49206b8a2b2374

See more details on using hashes here.

Supported by

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