forked from kenshinx/godns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgodns.conf
50 lines (37 loc) · 906 Bytes
/
godns.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#Toml config file
Title = "GODNS"
Version = "0.1.2"
Author = "kenshin"
Debug = false
[server]
host = "127.0.0.1"
port = 53
[resolv]
resolv-file = "/etc/resolv.conf"
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
[redis]
host = "127.0.0.1"
port = 6379
db = 0
password =""
[log]
stdout = true
file = "./godns.log"
level = "INFO" #DEBUG | INFO |NOTICE | WARN | ERROR
[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 = "/etc/hosts"
redis-enable = false
redis-key = "godns:hosts"
ttl = 600
refresh-interval = 5 # 5 seconds