godns/godns.conf

56 lines
1013 B
Plaintext
Raw Normal View History

2013-07-23 11:10:38 +00:00
#Toml config file
Title = "GODNS"
2015-10-14 17:11:04 +00:00
Version = "0.1.2"
2013-07-23 11:10:38 +00:00
Author = "kenshin"
2015-10-14 17:11:04 +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
# The concurrency interval request upstream recursive server
# Match the PR15, https://github.com/kenshinx/godns/pull/15
interval = 200 # 200 milliseconds
2013-07-23 11:10:38 +00:00
setedns0 = false #Support for larger UDP DNS responses
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 =""
2016-02-12 13:29:25 +00:00
[memcache]
servers = ["127.0.0.1:11211"]
2013-07-23 11:10:38 +00:00
[log]
2015-10-13 11:35:29 +00:00
stdout = true
file = "./godns.log"
2015-10-20 05:59:22 +00:00
level = "INFO" #DEBUG | INFO |NOTICE | WARN | ERROR
2015-10-13 11:35:29 +00:00
2013-07-23 11:10:38 +00:00
[cache]
2016-02-12 13:29:25 +00:00
# backend option [memory|memcache|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
2015-10-13 17:00:28 +00:00
enable = true
2013-07-26 04:06:16 +00:00
host-file = "/etc/hosts"
2015-10-13 17:00:28 +00:00
redis-enable = false
2013-07-26 04:06:16 +00:00
redis-key = "godns:hosts"
2013-07-26 10:54:19 +00:00
ttl = 600
refresh-interval = 5 # 5 seconds
2013-07-26 04:06:16 +00:00