add comment about hosts configuration
This commit is contained in:
parent
3d88269c95
commit
6066570359
42
README.MD
42
README.MD
|
@ -57,14 +57,6 @@ If multi `namerserver` set at resolv.conf, the upsteam server will try in order
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### hosts
|
|
||||||
|
|
||||||
Force resolv domain to assigned ip, support two types hosts configuration: locale file and remote redis
|
|
||||||
|
|
||||||
#hosts file#
|
|
||||||
can be
|
|
||||||
|
|
||||||
|
|
||||||
#### cache
|
#### cache
|
||||||
|
|
||||||
Only the local memory storage backend implemented now. The redis backend is in todo list
|
Only the local memory storage backend implemented now. The redis backend is in todo list
|
||||||
|
@ -77,6 +69,40 @@ maxcount = 100000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### hosts
|
||||||
|
|
||||||
|
Force resolv domain to assigned ip, support two types hosts configuration:
|
||||||
|
|
||||||
|
* locale hosts file
|
||||||
|
* remote redis hosts
|
||||||
|
|
||||||
|
__hosts file__
|
||||||
|
|
||||||
|
can be assigned at godns.conf,default : `/etc/hosts`
|
||||||
|
|
||||||
|
```
|
||||||
|
[hosts]
|
||||||
|
host-file = "/etc/hosts"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
__redis hosts__
|
||||||
|
|
||||||
|
This is a espeical requirment in our system. Must maintain a gloab hosts configuration,
|
||||||
|
and support update the hosts record from other remote server.
|
||||||
|
so "redis-hosts" is be supported, and will query the reids when each dns request reached.
|
||||||
|
|
||||||
|
The hosts record is organized with redis hash map. and the key the map is configired.
|
||||||
|
|
||||||
|
```
|
||||||
|
[hosts]
|
||||||
|
redis-key = "godns:hosts"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Benchmak
|
## Benchmak
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue