2 Star 6 Fork 0

坚慧/gomasq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
godns.conf 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
坚慧 提交于 2014-09-03 15:40 . 更新了配置文件和说明
#Toml config file
Title = "GODNS"
Version = "0.1.1"
Author = "kenshin"
Debug = true
#Debug =false
[server]
host = "127.0.0.1"
port = 53
[resolv]
resolv-file = "/usr/local/etc/resolv.conf"
timeout = 5 # 5 seconds
[redis]
host = "127.0.0.1"
port = 6379
db = 0
password =""
Enable = false
[log]
#If didn't set the log file,log will be redirected to console.
file = "log.txt"
#file = ""
[cache]
# backend option [memory|redis]
# redis backend not implemented yet
backend = "memory"
expire = 600 # 10 minutes
maxcount = 0 #If set zero. The Sum of cache itmes will be unlimit.
[hosts]
#If set false, will not query hosts file and redis hosts record
enable = true
host-file = "/usr/local/etc/hosts"
redis-key = "godns:hosts"
ttl = 600
[specservers]
# You can indent as you please. Tabs or spaces. TOML don't care.
[specservers.alpha]
dnsserver = "121.40.145.3"
domain = "google.com."
port = "53"
search = "suffix"
[specservers.beta]
dnsserver = "210.28.96.10"
domain = "eqdc10"
port = "53"
search = "regex"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jianhui/gomasq.git
git@gitee.com:jianhui/gomasq.git
jianhui
gomasq
gomasq
master

搜索帮助