-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkresd.conf
38 lines (33 loc) · 993 Bytes
/
kresd.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
-- Switch to unprivileged user --
user('knot-resolver','knot-resolver')
-- Unprivileged
-- verbose(true)
-- Load useful modules
modules = {
'hints > iterate', -- Load /etc/hosts and allow custom root hints
'stats', -- Track internal statistics
'predict', -- Prefetch expiring/frequent records
'rebinding < iterate',
'serve_stale < cache',
'workarounds < iterate'
}
-- Cache size
cache.size = 512 * MB
-- DNS Flag Day 2020
net.bufsize(1220)
-- Import root zone data
modules.load('prefill')
prefill.config({
['.'] = {
url = 'https://www.internic.net/domain/root.zone',
ca_file = '/etc/ssl/certs/ca-certificates.crt',
interval = 86400 -- seconds
}
})
-- Prefetch learning
predict.config({
window = 30, -- 30 minutes sampling window
period = 24*(60/30) -- track last 24 hours
})
-- Block Firefox DoH
policy.add(policy.suffix(policy.DENY, {todname('use-application-dns.net')}))