blob: d239dba80480611cab8269e24858e8dc9b44b261 (
plain)
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
30
31
32
33
34
35
36
37
38
39
|
-- Refer to manual: https://knot-resolver.readthedocs.io/en/latest/daemon.html#configuration
-- Listen on all interfaces (localhost would not work in Docker)
net.listen('0.0.0.0')
net.listen('0.0.0.0', 853, {tls=true})
-- Auto-maintain root TA
trust_anchors.file = '/etc/knot-resolver/root.keys'
-- Load Useful modules
modules = {
'stats', -- Track internal statistics
-- Load HTTP module with defaults
http = {
host = '0.0.0.0',
port = 8053,
},
}
-- Smaller cache size
cache.size = 10 * MB
function print_help()
print('\nUsage\n'
.. '=====\n'
.. 'Run this container using command:\n'
.. '$ docker run -Pti cznic/knot-resolver\n'
.. '\n'
.. 'Docker will map ports 53, 853, and 8053 to some other numbers, see\n'
.. '$ docker ps\n'
.. '(column PORTS)\n'
.. '53 -> DNS protocol over UDP and TCP\n'
.. '853 -> DNS-over-TLS protocol\n'
.. '8053 -> web interface\n'
.. '\n'
.. 'For verbose logging enter following command to prompt below:\n'
.. 'verbose(true)\n')
end
print_help()
|