Debian Codegraph @

etc/config/config.cluster

raw
1 -- SPDX-License-Identifier: CC0-1.0
2 -- vim:syntax=lua:set ts=4 sw=4:
3 -- Config file example useable for larger resolver farms
4 -- In this case cache should be made as large as possible, and prefetching turned off
5 -- as the resolver is busy most of the time.
6 -- Alternative is using `etcd` as a configuration backend.
7 -- Refer to manual: https://www.knot-resolver.cz/documentation/latest/
8
9 -- Network interface configuration
10 net.listen('127.0.0.1', 53, { kind = 'dns' })
11 net.listen('::1', 53, { kind = 'dns'})
12 net.listen('127.0.0.1', 853, { kind = 'tls' })
13 net.listen('::1', 853, { kind = 'tls' })
14 net.listen('127.0.0.1', 443, { kind = 'doh2' })
15 net.listen('::1', 443, { kind = 'doh2'})
16
17 -- Refer to manual for optimal cache size
18 cache.size = 16 * GB
19
20 -- Load Useful modules
21 modules = {
22 'hints > iterate', -- Allow loading /etc/hosts or custom root hints
23 'stats', -- Track internal statistics
24 graphite = { -- Send statistics to local InfluxDB
25 -- Address of the Graphite/InfluxDB server
26 host = '192.168.1.2',
27 },
28 }
29
30 -- Use local root server copy for performance reasons
31 hints.root({
32 ['j.root-servers.net.'] = { '192.168.1.4', '2001:503:c27::2:30', '192.58.128.30' }
33 })
34
35 -- Apply RPZ for all clients, default rule is DENY
36 policy.add(policy.rpz(policy.DENY, 'blocklist.rpz'))