Skip to content

Using RPZ this script helps to add and remove entries into a Bind DNS Server

Notifications You must be signed in to change notification settings

frohoff/sinkholeupdate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

sinkholeupdate

This script faciliates the addition and deletion of a domain to the local DNS server that zone transfers into a remote DNS server

Requirements

Python 2.x and dnspython (http://www.dnspython.org)

Usage

Usage:  ./sinkhole.py -z <all|whitelist|phishing|malware> [[-a|-r]<-d <domain>|-f <inputfile>>]|-l|-s <searchtring>|-F
        -z <rpz name> the zone name to use (all|whitelist|phishing|malware)
        -a [-d <domain>|-f <input file>] add domain(s) to zone file - existing domains will be overwritten
        -r [-d <domain>|-f <input file>] remove domain(s) from zone file
        -l list all domains in given zone
        -s <string> search for domain in given zone
        -F <string> force addition if domain trying to be added is in whitelist file
        -S <string> subdomain for sinkhole (default is -z parameter)
Examples:
Add domain to the malware zonefile using default sink
        ./sinkhole.py -z malware -ad thisbaddomain.com
Add domain to the phishing zonefile using another sink
        ./sinkhole.py -z phishing -ad imabaddomain.com -S phishing3
Remove a domain from the phishing zonefile
        ./sinkhole.py -z phishing -rd domaintoremove.co.nz
Search for string softpedia in the malware zonefile
        ./sinkhole.py -z malware -s softpedia.com
List all domains in the phishing zonefile
        ./sinkhole.py -lz phishing

About

Using RPZ this script helps to add and remove entries into a Bind DNS Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%