godns/etc/godns.conf

58 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-07-23 11:10:38 +00:00
#Toml config file
Title = "GODNS"
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]
host = "0.0.0.0"
2013-07-23 11:10:38 +00:00
port = 53
[resolv]
# 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
# The concurrency interval request upstream recursive server
# Match the PR15, https://github.com/kenshinx/godns/pull/15
interval = 200 # 200 milliseconds
setedns0 = false #Support for larger UDP DNS responses
2013-07-23 11:10:38 +00:00
[redis]
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
2013-07-26 04:06:16 +00:00