Skip to content

A shell script to download malware domains from various sources, and configuring unbound DNS config file to be used as a local recursive DNS server

Notifications You must be signed in to change notification settings

farhanfaisal/DNSblacklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#DNSBlacklist project.

##Introduction. This project aims to be an assisting tool to setup your own DNS blacklisting in your enterprise environment. While the DNS provide blacklisting service, it will provide a good and fast caching for the enterprise DNS use. This tool will retrieve latest known malicious domains, and generate configuration file for BIND or UNBOUND DNS server.

This script utilizing unbound as local recursive DNS server for your environment.

##How it works

The script will pull malicious domains from various sources, to be configured in an
unbound/bind DNS server. This server will be your internal DNS server in your environment.
Any DNS request to malicious domain by any user in your environment will be handled by 
Unbound/BIND by returning a specified IP, usually 127.0.0.1, or any 'blackhole' IP. You 
can point to another server to monitor the malicious request

This include domain parser from various malicious domain provider

##Main features

  • Configurables of which domain sources to be used.
  • Option for output format, Unbound or Bind DNS server (Unbound by default)
  • Domain permanent whitelisting and blacklisting

The main script is preparation.sh, which generate a configuration file for unbound DNS server. You can choose BIND format output as well

##How to use

  • Pull to /etc/unbound/
  • Edit /etc/unbound/unbound.conf according to your server environment. (Note the reference to "/etc/unbound/blackhole/blacklisted_domains.conf")
  • Run run.sh in /etc/unbound/blackhole/. Your "/etc/unbound/blackhole/blacklisted_domains.conf" will be created automatically.
  • run unbound-checkconf to verify the config file
  • Restart unbound for the config file to be effective.

####@2014

About

A shell script to download malware domains from various sources, and configuring unbound DNS config file to be used as a local recursive DNS server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages