Skip to content

Commit 8c6d8df

Browse files
committed
Document the ports for encrypted DNS and HTTP/3
Signed-off-by: DL6ER <dl6er@dl6er.de>
1 parent f4e9da8 commit 8c6d8df

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ services:
5555
#- "67:67/udp"
5656
# Uncomment the line below if you are using Pi-hole as your NTP server
5757
#- "123:123/udp"
58+
# Uncomment the lines below if your clients should use Pi-hole as an encrypted
59+
# resolver: DNS-over-TLS (TCP) and DNS-over-QUIC (UDP). DNS-over-HTTPS needs no
60+
# port of its own, it is served on the HTTPS port above
61+
#- "853:853/tcp"
62+
#- "853:853/udp"
63+
# Uncomment the line below to let clients reach the web interface over HTTP/3,
64+
# which runs on UDP. Without it, they simply stay on HTTP/2
65+
#- "443:443/udp"
5866
environment:
5967
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
6068
TZ: 'Europe/London'
@@ -93,6 +101,7 @@ services:
93101
For more detailed information, please refer to our documentation:
94102

95103
- [Running DHCP from Docker Pi-Hole](https://docs.pi-hole.net/docker/DHCP/)
104+
- [Encrypted DNS for your clients (DoT, DoH, DoQ)](https://docs.pi-hole.net/ftldns/encrypted-dns/)
96105
- [Configuration](https://docs.pi-hole.net/docker/configuration/)
97106
- [Tips and Tricks](https://docs.pi-hole.net/docker/tips-and-tricks/)
98107
- [Docker tags and versioning](https://docs.pi-hole.net/docker/#docker-tags-and-versioning)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Pi-hole as an encrypted resolver for your clients.
2+
#
3+
# FTL answers DNS-over-TLS (DoT), DNS-over-QUIC (DoQ) and DNS-over-HTTPS (DoH)
4+
# itself, so no proxy in front of the container is needed. All three are enabled
5+
# by default and use the same certificate as the web interface.
6+
#
7+
# More info at https://docs.pi-hole.net/ftldns/encrypted-dns/
8+
services:
9+
pihole:
10+
container_name: pihole
11+
image: pihole/pihole:latest
12+
ports:
13+
# Plain DNS
14+
- "53:53/tcp"
15+
- "53:53/udp"
16+
# Web interface and API. The HTTPS port also serves DoH at /dns-query, and
17+
# HTTP/3 on the same port number over UDP
18+
- "80:80/tcp"
19+
- "443:443/tcp"
20+
- "443:443/udp"
21+
# DoT (TCP) and DoQ (UDP). Both use port 853, they do not collide
22+
- "853:853/tcp"
23+
- "853:853/udp"
24+
environment:
25+
TZ: 'Europe/London'
26+
FTLCONF_webserver_api_password: 'correct horse battery staple'
27+
# If using Docker's default `bridge` network setting the dns listening mode should be set to 'ALL'
28+
FTLCONF_dns_listeningMode: 'ALL'
29+
# The listeners are on by default. Set a port to move DoT/DoQ, or 0 to switch
30+
# them off - we recommend staying on 853, as that is the port clients try
31+
# first. DoH is a plain on/off switch, as it rides on the HTTPS port
32+
#FTLCONF_dns_dot: '853'
33+
#FTLCONF_dns_doq: '853'
34+
#FTLCONF_dns_doh: 'true'
35+
# Clients validate the certificate against the name they connect to. Set this
36+
# to the name your clients use, so the generated certificate matches it
37+
#FTLCONF_webserver_domain: 'pi.hole'
38+
volumes:
39+
- './etc-pihole:/etc/pihole'
40+
restart: unless-stopped

0 commit comments

Comments
 (0)