-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
48 lines (42 loc) · 934 Bytes
/
settings.py
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
import resolvers.cloudflare as cf
import resolvers.google as google
import resolvers.quad9 as quad9
import resolvers.dnssb as dnssb
import resolvers.securedns as securedns
import resolvers.dohli as dohli
import resolvers.hostux as hostux
import resolvers.sebyio as sebyio
import dnslibext
SETTINGS_DATA = 'settings.json'
NAMES_DATA = 'custom-names.json'
START_TIME = 0
DNS_ANSWERED = 0
DNS_ANSWER_BY_CACHE = 0
DNS_ANSWER_BY_DOH = 0
DNS_ANSWER_FROM_CUSTOM = 0
DNS_FALLBACK = 0
ENABLE_DNS_CACHE = True
TIMEOUT = 3
RESOLVERS = {
'cloudflare': cf,
'google': google,
'quad9': quad9,
'dnssb': dnssb,
'dohli': dohli,
'hostux': hostux,
'sebyio': sebyio,
# 'securedns': securedns,
}
BINDS = [
{
'addr': '0.0.0.0',
'port': 53,
},
{
'addr': '::',
'port': 53,
'server': dnslibext.UDPServerIPv6,
}
]
FALLBACK_DNS_ADDR = '8.8.8.8'
FALLBACK_DNS_PORT = 53