TheStilbruch / dnsproxy

A tiny caching DNS server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dnsproxy

A tiny caching DNS server

Compiling & Installation

$ git clone git://github.com/vietor/dnsproxy.git
$ cd dnsproxy
$ 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 tiny caching DNS server

License:GNU General Public License v2.0


Languages

Language:C 95.8%Language:Shell 2.3%Language:Makefile 1.9%