A simple DNS proxy server, runing on multiple platform
$ git clone git://github.com/vietor/dnsproxy.git
$ cd dnsproxy
$ git submodule init
$ git submodule update
$ make && make install
$ dnsproxy -h
Usage: dnsproxy [options]
-d or --daemon
(daemon mode)
-p <port> or --port=<port>
(local bind port, default 53)
-R <ip> or --remote-addr=<ip>
(remote server ip, default 8.8.8.8)
-P <port> or --remote-port=<port>
(remote server port, default 53)
-T or --remote-tcp
(connect remote server in tcp, default no)
-f <file> or --hosts-file=<file>
(user-defined hosts file)
-h, --help (print help and exit)
-v, --version (print version and exit)
127.0.0.1 example.com www.example.com
192.168.0.1 *.test.com
192.168.0.2 2*.test.com
192.168.0.3 *3.test.com