Debian Codegraph @

etc/config/config.splitview

raw
1 -- SPDX-License-Identifier: CC0-1.0
2 -- vim:syntax=lua:set ts=4 sw=4:
3 -- Config file with split-view for internal zone
4 -- Refer to manual: https://www.knot-resolver.cz/documentation/latest/
5
6 -- Network interface configuration
7 net.listen('127.0.0.1', 53, { kind = 'dns' })
8 net.listen('::1', 53, { kind = 'dns'})
9 net.listen('127.0.0.1', 853, { kind = 'tls' })
10 net.listen('::1', 853, { kind = 'tls' })
11 net.listen('127.0.0.1', 443, { kind = 'doh2' })
12 net.listen('::1', 443, { kind = 'doh2' })
13
14 -- Load Useful modules
15 modules = {
16 'hints > iterate', -- Allow loading /etc/hosts or custom root hints
17 'stats', -- Track internal statistics
18 graphite = { -- Send statistics to local InfluxDB
19 -- Address of the Graphite/InfluxDB server
20 host = '192.168.1.2',
21 },
22 -- Use DNS64 with specified NAT64 address
23 dns64 = 'fe80::21b:77ff:0:0',
24 }
25
26 -- Refer to manual for optimal cache size
27 cache.size = 4 * GB
28
29 -- Forward everything below `company.cz` to `192.168.1.3`
30 policy.add(policy.suffix(policy.FORWARD('192.168.1.3'), {todname('company.cz')}))