Giter Site home page Giter Site logo

bbxnet / dns-blacklist Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 14 KB

This repository contains sciprts for generating DNS blacklist configuration files for BIND.

License: GNU General Public License v2.0

Makefile 7.62% Shell 92.38%
dns blacklist dns-blacklist bind

dns-blacklist's Introduction

DNS Blacklist

This repository contains sciprts for generating DNS blacklist configuration files for BIND.

Configuration

This script recognizes the following variables that can be set in config.mk file.

BLACKLIST

File containing new-line separated list of domains to be blocked.

DEPLOYDIR

Directory containing BIND configuration files.

HOSTMASTER

DNS SOA hostmaster for blocked domains.

NAMEDBLACKLIST

Filename of BIND blacklist configuration file.

NAMEDCONF

Filename of BIND main configuration file, should be located in DEPLOYDIR.

PRIMARYDNS

Primary nameserver for blocked domains.

SECONDARYDNS

Secondary nameserver for blocked domains.

SERVICE

BIND service name.

ZONEFILE

Filename of BIND blacklist zone file.

Example configuration

BLACKLIST = blacklist.txt
NAMEDBLACKLIST = named.conf.blacklist
ZONEFILE = db.blacklist
PRIMARYDNS = dnsa.example.com
SECONDARYDNS = dnsb.example.com
HOSTMASTER = root.example.com
DEPLOYDIR = /etc/bind
NAMEDCONF = named.conf
SERVICE = bind9

Usage

To download latest version from GitHub and setup DNS blacklist run:

$ git clone --recursive https://github.com/bbxnet/dns-blacklist
$ cd dns-blacklist
$ make
$ sudo make deploy

NOTE: This script requires config.mk configration file (see Configuration section) and new-line separated domain list to be present.

Test

This repository also provides a simple test, which checks basic functionality of DNS blacklist.

$ cd dns-blacklist
$ make test 

dns-blacklist's People

Contributors

havlasme avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

w3bservice

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.