Debian Codegraph @

etc/config/config.privacy

raw
1 -- SPDX-License-Identifier: CC0-1.0
2 -- vim:syntax=lua:set ts=4 sw=4:
3 -- Config file example usable for privacy-preserving resolver
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 -- TLS server configuration
15 -- use this to configure your TLS certificates
16 -- net.tls("/etc/knot-resolver/server-cert.pem", "/etc/knot-resolver/server-key.pem")
17
18 -- Refer to manual if you would like to use non-persistent cache
19
20 -- forwarding to multiple targets
21 -- splits the entire DNS namespace into distinct slices
22 policy.add(policy.slice(
23 -- slicing function
24 policy.slice_randomize_psl(),
25 -- forward over TLS
26 policy.TLS_FORWARD({
27 {'2001:DB8::d0c', hostname='res.example.com'},
28 {'192.0.2.1', pin_sha256={'YQ=='}},
29 }),
30 policy.TLS_FORWARD({
31 -- multiple servers can be specified for a single slice
32 -- the one with lowest round-trip time will be used
33 {'193.17.47.1', hostname='odvr.nic.cz'},
34 {'185.43.135.1', hostname='odvr.nic.cz'},
35 })
36 ))