diff options
Diffstat (limited to '')
-rw-r--r-- | etc/config.docker | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/etc/config.docker b/etc/config.docker new file mode 100644 index 0000000..d239dba --- /dev/null +++ b/etc/config.docker @@ -0,0 +1,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() |