You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gdns/README.md

55 lines
1.1 KiB
Markdown

9 years ago
# gdns
a dns proxy server write by go
9 years ago
gdns much like dnsmasq or chinadns, but it can run on windows.
Features
========
9 years ago
support different domains use different upstream dns servers
9 years ago
9 years ago
support contact to the upstream dns server by tcp or udp
9 years ago
support blacklist list to block the fake ip
Install
=======
9 years ago
```bash
# get the depended library
go get github.com/miekg/dns
go get github.com/vharitonsky/iniflags
9 years ago
9 years ago
git clone https://github.com/fangdingjun/gdns
cd gdns
go build
9 years ago
9 years ago
# generate a sample config file
./gdns -dumpflags > dns.ini
9 years ago
9 years ago
# edit the dns.ini and run, need root privileges to bind on port 53
sudo ./gdns -config dns.ini
9 years ago
9 years ago
# test it
dig @localhost twitter.com
```
9 years ago
Arguments
===========
use `gdns -h` to show the command line arguments.
all arguments can specialed in config file or in command line.
9 years ago
there is a sample file in the `config_sample/` directory.
Third-part library
==================
use
[dns](https://github.com/miekg/dns)
library to parse the dns message
use
[iniflags](https://github.com/vharitonsky/iniflags)
library to process the command line arguments and the config file