Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomas Krizek
Knot Resolver
Commits
edcdd012
Verified
Commit
edcdd012
authored
Apr 18, 2019
by
Tomas Krizek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker: update ports, add doh
parent
e06f3d78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
Dockerfile
Dockerfile
+2
-2
etc/config/config.docker.in
etc/config/config.docker.in
+7
-8
No files found.
Dockerfile
View file @
edcdd012
...
...
@@ -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 80
53/TCP
# Export DNS over UDP & TCP, DNS-over-
HTTPS, DNS-over-
TLS, web interface
EXPOSE
53/UDP 53/TCP
443/TCP 853/TCP 84
53/TCP
# Fetch Knot Resolver + Knot DNS libraries from build image
COPY
--from=build /tmp/root/ /
...
...
etc/config/config.docker.in
View file @
edcdd012
...
...
@@ -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 80
53 to some other numbers, see\n'
..
'Docker will map ports 53,
443, 853, and 84
53 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'
..
'8
0
53 -> web interface\n'
..
'8
4
53 -> web interface\n'
..
'
\n
'
..
'For verbose logging enter following command to prompt below:\n'
..
'verbose(true)\n'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment