godns/godns.conf

49 lines
875 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"
2015-10-13 11:35:29 +00:00
Debug = true
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
[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]
2015-10-13 11:35:29 +00:00
stdout = true
file = "./godns.log"
level = "DEBUG" #DEBUG | INFO |NOTICE | WARNING | ERROR
2013-07-23 11:10:38 +00:00
[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
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
2013-07-26 04:06:16 +00:00