2013-07-23 11:10:38 +00:00
|
|
|
#Toml config file
|
|
|
|
|
|
|
|
|
|
|
|
Title = "GODNS"
|
2018-08-31 03:03:39 +00:00
|
|
|
Version = "0.2.0"
|
|
|
|
Author = "kenshin, tystuyfzand"
|
2013-07-23 11:10:38 +00:00
|
|
|
|
2015-10-14 17:11:04 +00:00
|
|
|
Debug = false
|
2013-07-23 11:10:38 +00:00
|
|
|
|
|
|
|
[server]
|
2018-08-05 01:53:31 +00:00
|
|
|
host = "0.0.0.0"
|
2013-07-23 11:10:38 +00:00
|
|
|
port = 53
|
|
|
|
|
|
|
|
[resolv]
|
2018-02-01 11:22:45 +00:00
|
|
|
# Domain-specific nameservers configuration, formatting keep compatible with Dnsmasq
|
|
|
|
# Semicolon separate multiple files.
|
2018-08-05 08:48:26 +00:00
|
|
|
resolv-file = "etc/resolv.conf"
|
2013-07-24 02:52:59 +00:00
|
|
|
timeout = 5 # 5 seconds
|
2015-05-07 09:58:31 +00:00
|
|
|
# The concurrency interval request upstream recursive server
|
|
|
|
# Match the PR15, https://github.com/kenshinx/godns/pull/15
|
|
|
|
interval = 200 # 200 milliseconds
|
2017-02-14 17:08:08 +00:00
|
|
|
setedns0 = false #Support for larger UDP DNS responses
|
|
|
|
|
2013-07-23 11:10:38 +00:00
|
|
|
[redis]
|
2018-02-01 07:39:47 +00:00
|
|
|
enable = true
|
2018-08-05 08:48:26 +00:00
|
|
|
host = "192.168.1.71"
|
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"
|
2018-08-05 08:48:26 +00:00
|
|
|
level = "DEBUG" #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"
|
2018-08-05 08:48:26 +00:00
|
|
|
redis-enable = true
|
2013-07-26 04:06:16 +00:00
|
|
|
redis-key = "godns:hosts"
|
2013-07-26 10:54:19 +00:00
|
|
|
ttl = 600
|
2018-08-05 08:48:26 +00:00
|
|
|
refresh-interval = 60 # 5 seconds
|
2016-09-18 04:04:21 +00:00
|
|
|
|
2013-07-26 04:06:16 +00:00
|
|
|
|