PowerShell/Data/default.kresd.conf

30 lines
818 B
Plaintext
Raw Normal View History

2021-08-22 16:20:36 +02:00
-- SETTINGS FOR KNOT RESOLVER (adapt to your needs, please)
-- LISTEN TO:
2021-08-22 16:09:50 +02:00
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:
2021-08-22 16:20:36 +02:00
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
2021-08-22 16:09:50 +02:00
2021-08-22 16:20:36 +02:00
-- FORWARD TO:
2021-08-22 16:09:50 +02:00
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
}
}