Skip to content

bahirul/dns-blacklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Blacklist

Python script for generate blacklist or rpz file: pi-hole, bind, dnsmasq, mikrotik, powerdns and system hosts.

asciicast

List of DNS Support

Setup

  • minimum python version : 3.6.9

  • install required modules

    • run pip3 install -r requirements.txt
  • setup config/app.yaml

    • copy config/app.yaml.example to config/app.yaml
    • app.yaml parameters :
      • resolve_ip : resolve ip of blacklisted domain (bind, dnsmasq, mikrotik, powerdns and system hosts).
      • wildcard : add wildcard on blacklisted domain (only for bind, dnsmasq and powerdns).
      • blacklist : set of blacklist url (format source : system hosts file or list domain).
      • whitelist : set of whitelist url (format source : system hosts file or list domain).
      • axfr_zones_blacklist : set of blacklist with axfr (zone transfer dns), this may take some time on huge zone.
      • axfr_zones_whitelist : set of whitelist with axfr (zone transfer dns), this may take some time on huge zone.

Usage

  • generate blacklist

    • run python3 run.py
    • check generated files on build folder for each format
  • clean generated tmp and build file

    • run python3 clean.py