godns/README.MD

53 lines
905 B
Plaintext
Raw Normal View History

2013-07-23 11:10:38 +00:00
GODNS
====
A tiny dns cache server written by go.
Similar as [dnsmasq](http://www.thekelleys.org.uk/dnsmasq/doc.html) ,but support some difference features:
* Keep hosts configuration in redis instead of local file /etc/hosts
So can be updated from remote server
* Atuo-Reload when hosts configuration changed. (Yes,dnsmasq need restart)
* Cache records save in memory or redis configurable
2013-07-23 16:37:38 +00:00
2013-07-24 10:29:38 +00:00
## Install & Running
## Configuration
2013-07-23 16:37:38 +00:00
2013-07-24 02:52:59 +00:00
All the configuration on `godns.conf` a TOML formating config file.
2013-07-23 16:37:38 +00:00
More about Toml :[https://github.com/mojombo/toml](https://github.com/mojombo/toml)
2013-07-24 02:52:59 +00:00
#### resolv.conf
Upstream server can be configuration by change file from somewhere other that "/etc/resolv.conf"
```
[resolv]
resolv-file = "/etc/resolv.conf"
```
If multi `namerserver` set at resolv.conf, the upsteam server will try in order of up to botton
2013-07-23 16:37:38 +00:00
2013-07-24 10:29:38 +00:00
#### hosts
#### cache
2013-07-23 16:37:38 +00:00