# dnsproxy **Repository Path**: vietor/dnsproxy ## Basic Information - **Project Name**: dnsproxy - **Description**: 简单的跨平台DNS代理工具,支持远端TCP连接,支持自定义HOSTS文件。 - **Primary Language**: C - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 3 - **Created**: 2014-04-14 - **Last Updated**: 2022-07-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dnsproxy ======== A simple DNS proxy server, runing on multiple platform ## Compiling & Installation ```bash $ git clone git://github.com/vietor/dnsproxy.git $ cd dnsproxy $ git submodule init $ git submodule update $ make && make install ``` ## Simple tutorial ```bash $ dnsproxy -h Usage: dnsproxy [options] -d or --daemon (daemon mode) -p or --port= (local bind port, default 53) -R or --remote-addr= (remote server ip, default 8.8.8.8) -P or --remote-port= (remote server port, default 53) -T or --remote-tcp (connect remote server in tcp, default no) -f or --hosts-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 ```