Update README.md

nghttp2
Dingjun 9 years ago
parent 8b4da6602c
commit 89e7b6fe89

@ -6,15 +6,16 @@ gdns much like dnsmasq or chinadns, but it can run on windows.
Features Features
======== ========
support different domains use different upstream servers support different domains use different upstream dns servers
support contact to the upstream server by tcp or udp support contact to the upstream dns server by tcp or udp
support blacklist list to block the fake ip support blacklist list to block the fake ip
Install Install
======= =======
```bash
# get the depended library # get the depended library
go get github.com/miekg/dns go get github.com/miekg/dns
go get github.com/vharitonsky/iniflags go get github.com/vharitonsky/iniflags
@ -26,11 +27,12 @@ Install
# generate a sample config file # generate a sample config file
./gdns -dumpflags > dns.ini ./gdns -dumpflags > dns.ini
# edit the dns.ini # edit the dns.ini and run, need root privileges to bind on port 53
sudo ./gdns -config dns.ini sudo ./gdns -config dns.ini
# test it # test it
dig @localhost twitter.com dig @localhost twitter.com
```
Arguments Arguments
=========== ===========
@ -39,4 +41,14 @@ use `gdns -h` to show the command line arguments.
all arguments can specialed in config file or in command line. all arguments can specialed in config file or in command line.
this is a sample file in the config_sample directory. 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

Loading…
Cancel
Save