Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

gevent and twisted based customizable DNS servers

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 dns_cli.py
Octocat-spinner-32 gevent_dns.py
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 tx_dns.tac
README.md

Python, DNS and Redis

About

Simple servers to deliver customized DNS data. These servers rely on Redis as storage backend. If the data isn't on redis, they will use the configured DNS to resolve and answer back. These servers can be used to intercept queries, test devices that have no accessible resolv.conf, etc There are two versions with gevent or twisted. Make sure the user you run these daemons can bind to port 53.

cli

There is a CLI to ease inserting new hosts

python dns_cli.py add host ip
python dns_cli.py del host

gevent version

python gevent_dns.py

twisted version

python tx_dns.tac

test and usage

$ sudo python gevent_dns.py

$ dig google.com
$ dig @127.0.0.1 google.com
$ python dns_cli.py add google.com 127.0.0.1
$ dig @127.0.0.1 google.com
Something went wrong with that request. Please try again.