godns/etc/godns.conf

48 lines
1000 B
Plaintext

#Toml config file
debug = false
[server]
host = "0.0.0.0"
nets = ["tcp:53", "udp:53"]
[resolv]
file = ""
timeout = 5 # 5 seconds
interval = 200 # 200 milliseconds
edns0 = false #Support for larger UDP DNS responses
# Domain-specific nameservers configuration, formatting keep compatible with Dnsmasq
server-list = "etc/serverlist.conf"
[log]
stdout = true
file = "./godns.log"
level = "DEBUG" #DEBUG | INFO |NOTICE | WARN | ERROR
[cache]
# backend option [memory|memcache|redis]
backend = "memory"
expire = 600 # 10 minutes
maxcount = 0 #If set zero. The Sum of cache itmes will be unlimit.
[cache.memcached]
servers = ["127.0.0.1:11211"]
# Redis cache backend config
[cache.redis]
host = "127.0.0.1"
port = 6379
db = 0
password =""
[hosts]
# File provider, supports inotify hot-reload
[hosts.file]
enable = true
file = "/etc/hosts"
ttl = 600
# Redis provider
[hosts.redis]
enable = true
key = "godns:hosts"
ttl = 600