]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
docker: update ports, add doh
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 18 Apr 2019 07:19:08 +0000 (09:19 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 18 Apr 2019 15:09:57 +0000 (17:09 +0200)
Dockerfile
etc/config/config.docker.in

index 7b7663e496dad873f61d84323632ab933c8d8ac9..a7d2fb784e937342d96ccd34f061695fe9fc830a 100644 (file)
@@ -66,8 +66,8 @@ FROM runtime
 LABEL cz.knot-resolver.vendor="CZ.NIC"
 LABEL maintainer="knot-resolver-users@lists.nic.cz"
 
-# Export DNS over UDP & TCP, DNS-over-TLS, web interface
-EXPOSE 53/UDP 53/TCP 853/TCP 8053/TCP
+# Export DNS over UDP & TCP, DNS-over-HTTPS, DNS-over-TLS, web interface
+EXPOSE 53/UDP 53/TCP 443/TCP 853/TCP 8453/TCP
 
 # Fetch Knot Resolver + Knot DNS libraries from build image
 COPY --from=build /tmp/root/ /
index 1a54f1638adbf28ffb2fdcfbae0afd0def9542d0..566c43e64765fa1438e720fbd08b1a95eac83d00 100644 (file)
@@ -3,7 +3,9 @@
 
 -- 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})
+net.listen('0.0.0.0', 853, { kind = 'tls' })
+net.listen('0.0.0.0', 443, { kind = 'doh' })
+net.listen('0.0.0.0', 8453, { kind = 'webmgmt' })
 
 -- To disable DNSSEC validation, uncomment the following line (not recommended)
 -- trust_anchors.remove('.')
@@ -11,11 +13,7 @@ net.listen('0.0.0.0', 853, {tls=true})
 -- Load Useful modules
 modules = {
        'stats',    -- Track internal statistics
-       -- Load HTTP module with defaults
-       http = {
-               host = '0.0.0.0',
-               port = 8053,
-       },
+       'http',
 }
 
 -- Smaller cache size
@@ -27,12 +25,13 @@ function print_help()
           .. '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 will map ports 53, 443, 853, and 8453 to some other numbers, see\n'
           .. '$ docker ps\n'
           .. '(column PORTS)\n'
           .. '53   -> DNS protocol over UDP and TCP\n'
+          .. '443  -> DNS-over-HTTPS protocol\n'
           .. '853  -> DNS-over-TLS protocol\n'
-          .. '8053 -> web interface\n'
+          .. '8453 -> web interface\n'
           .. '\n'
           .. 'For verbose logging enter following command to prompt below:\n'
           .. 'verbose(true)\n')