From 606657035935ee802d2d3dc00abdd1dd95b17d03 Mon Sep 17 00:00:00 2001 From: kenshin Date: Sat, 27 Jul 2013 00:29:19 +0800 Subject: [PATCH] add comment about hosts configuration --- README.MD | 42 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/README.MD b/README.MD index 7ad761a..94d30ec 100644 --- a/README.MD +++ b/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 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