godns/godns.conf

43 lines
682 B
Plaintext
Raw Normal View History

2013-07-23 11:10:38 +00:00
#Toml config file
Title = "GODNS"
Version = "0.1.1"
Author = "kenshin"
2013-07-26 16:10:17 +00:00
Debug = false
2013-07-23 11:10:38 +00:00
[server]
host = "127.0.0.1"
port = 53
[resolv]
resolv-file = "/etc/resolv.conf"
2013-07-24 02:52:59 +00:00
timeout = 5 # 5 seconds
2013-07-23 11:10:38 +00:00
[redis]
2013-07-26 16:10:17 +00:00
host = "127.0.0.1"
2013-07-23 11:10:38 +00:00
port = 6379
db = 0
password =""
[log]
#If didn't set the log file,log will be redirected to console.
file = ""
[cache]
# backend option [memory|redis]
2013-07-24 14:40:18 +00:00
# redis backend not implemented yet
2013-07-23 11:10:38 +00:00
backend = "memory"
expire = 600 # 10 minutes
2013-07-29 09:30:10 +00:00
maxcount = 0 #If set zero. The Sum of cache itmes will be unlimit.
2013-07-26 04:06:16 +00:00
[hosts]
2013-07-26 10:54:19 +00:00
#If set false, will not query hosts file and redis hosts record
2013-07-26 16:10:17 +00:00
enable = false
2013-07-26 04:06:16 +00:00
host-file = "/etc/hosts"
redis-key = "godns:hosts"
2013-07-26 10:54:19 +00:00
ttl = 600
2013-07-26 04:06:16 +00:00