forked from fleschutz/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.kresd.conf
More file actions
29 lines (25 loc) · 818 Bytes
/
Copy pathdefault.kresd.conf
File metadata and controls
29 lines (25 loc) · 818 Bytes
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
-- SETTINGS FOR KNOT RESOLVER (adapt to your needs, please)
-- LISTEN TO:
net.listen({'127.0.0.1', '::1'}, 53, { kind = 'dns' })
net.listen({'127.0.0.1', '::1'}, 853, { kind = 'tls' })
net.listen('192.168.178.71', 53, { kind = 'dns' })
net.listen('192.168.178.71', 853, { kind = 'tls' })
-- CACHE:
cache.size = 100 * MB -- 100 MB cache size
cache.min_ttl(3600) -- 1 hour minimum time-to-live
cache.max_ttl(604800) -- 1 week maximum time-to-live
-- FORWARD TO:
policy.add(policy.all(
policy.FORWARD(
{'192.168.178.1', -- Fritz!Box
'1.1.1.1', -- Cloudflare #1
'1.0.0.1' -- Cloudflare #2
})
))
-- MODULES:
modules = {
predict = {
window = 15, -- 15 minutes sampling window
period = 6*(60/15) -- track last 6 hours
}
}