monokoo / dnsproxy

A simple DNS proxy server, runing on multiple platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dnsproxy

A simple DNS proxy server, runing on multiple platform

Compiling & Installation

$ git clone git://github.com/vietor/dnsproxy.git
$ cd dnsproxy
$ git submodule init
$ git submodule update
$ make && make install

Simple tutorial

$ 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)

Hosts file example

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

About

A simple DNS proxy server, runing on multiple platform

License:GNU General Public License v2.0


Languages

Language:C 93.3%Language:Shell 3.6%Language:Makefile 3.1%