A small command-line DNS server written in Python.
- Tim Newsham < tim at isecpartners dot com >
- 28 Jun 2013
dnsRedir.py is a small DNS server that will respond to certain queries with addresses provided on the command line. All other queries will be proxied to a "real" name server. This program can be used to redirect a few domain names to test addresses for the purpose of security and protocol testing.
See man.txt for more details.
Run the server
- $ ./dnsRedir.py -p 1053 'A:www.evil.com.=220.127.116.11'
Now query it
dnsRedir.py requires Python 2.5 or greater. It does not require any other dependencies and can be run from a single source file.