Specify server in server-list-file
This commit is contained in:
5
examples/china.conf
Normal file
5
examples/china.conf
Normal file
@ -0,0 +1,5 @@
|
||||
server=8.8.8.8#53
|
||||
server=127.0.0.1#5553
|
||||
|
||||
server=/baidu.com/114.114.114.114
|
||||
# refer https://github.com/felixonmars/dnsmasq-china-list
|
44
examples/godns.conf
Normal file
44
examples/godns.conf
Normal file
@ -0,0 +1,44 @@
|
||||
#Toml config file
|
||||
|
||||
|
||||
Title = "GODNS"
|
||||
Version = "0.1.1"
|
||||
Author = "kenshin"
|
||||
|
||||
Debug = false
|
||||
|
||||
[server]
|
||||
host = "127.0.0.1"
|
||||
port = 53
|
||||
|
||||
[resolv]
|
||||
server-list-file = "/etc/godns.d/servers"
|
||||
resolv-file = "/etc/resolv.conf"
|
||||
timeout = 5 # 5 seconds
|
||||
|
||||
[redis]
|
||||
enable = true
|
||||
host = "127.0.0.1"
|
||||
port = 6379
|
||||
db = 0
|
||||
password =""
|
||||
|
||||
[log]
|
||||
#If didn't set the log file,log will be redirected to console.
|
||||
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 = false
|
||||
host-file = "/etc/hosts"
|
||||
redis-key = "godns:hosts"
|
||||
ttl = 600
|
||||
|
Reference in New Issue
Block a user