Coder Social home page Coder Social logo

docker-rbldnsd's Introduction

RBLDNSD

rbldnsd is a simple DNS server that allows to serve realtime blacklists (or whitelists) via DNS. All you need is a DNS zone file as described in the rbldnsd documentation. Then run the container with the zonename:type:fname,fname,fname... as the command and let the NS entry of your DNS zone point to the docker host.

Example usage via docker

docker run -it --rm \
    -v /path_to_your_zone_directory/:/var/lib/rbldnsd/:ro \
    -p 53:53/udp \
    kurthuwig/rbldnsd:latest \
    my-blacklist.example.com:ip4set:my-blacklist

Example usage via fig

This is an example fig file to launch rbldnsd. You only have to change the command and maybe the source directory for the volume containing the zone files.

rbldnsd:
  image: kurthuwig/rbldnsd:latest
  volumes:
   - /path_to_your_zone_directory/:/var/lib/rbldnsd/:ro
  ports:
   - "53:53/udp"
  command: "my-blacklist.example.com:ip4set:my-blacklist"

Testing

Normal DNS blacklists list an entry for 127.0.0.2 for testing purposes. If you did this as well, you can test your setup on a unix system with the host command:

$ host 2.0.0.127.my-blacklist.example.com. localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases: 

2.0.0.127.my-blacklist.example.com has address 127.0.0.2

and the negative test with

$ host 1.0.0.127.my-blacklist.example.com. localhost
    Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases: 

Host 1.0.0.127.my-blacklist.example.com. not found: 3(NXDOMAIN)

docker-rbldnsd's People

Contributors

kurthuwig avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

loomly

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.