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.1.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

dnsblock_update-0.0.1-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

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