# Pi-hole with DHCP / without network mode: host ??? — retained record

> Retained reddit record from reddit:selfhosted.

Canonical: https://highsignal.app/data/records/ca0ac58512f9aa76

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:selfhosted)  published 2026-09-11 17:56 ingested 2026-09-12 02:40

[original source ↗](https://www.reddit.com/r/selfhosted/comments/1wdnjin/pihole_with_dhcp_without_network_mode_host/)

## retained text



```
Hello Reddit,

I’m having an issue where my Pi-hole with DHCP server only works in \`network\_mode: host\`. Unfortunately, as soon as I use the ports as described in the official documentation, the DHCP server stops working—even after uncommenting the two relevant lines.

Here is what the official documentation says:

\# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/

services:

  pihole:

container\_name: pihole

image: pihole/pihole:latest

ports:

\# DNS Ports

\- "53:53/tcp"

\- "53:53/udp"

\# Default HTTP Port

\- "80:80/tcp"

\# Default HTTPs Port. FTL will generate a self-signed certificate

\- "443:443/tcp"

\# Uncomment the line below if you are using Pi-hole as your DHCP server

\#- "67:67/udp"

\# Uncomment the line below if you are using Pi-hole as your NTP server

\#- "123:123/udp"

environment:

\# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones), e.g:

TZ: 'Europe/London'

\# Set a password to access the web interface. Not setting one will result in a random password being assigned

FTLCONF\_webserver\_api\_password: 'correct horse battery staple'

\# If using Docker's default \`bridge\` network setting the dns listening mode should be set to 'ALL'

FTLCONF\_dns\_listeningMode: 'ALL'

\# Volumes store your data between container upgrades

volumes:

\# For persisting Pi-hole's databases and common configuration file

\- './etc-pihole:/etc/pihole'

\# Uncomment the below if you have custom dnsmasq config files that you want to persist. Not needed for most starting fresh with Pi-hole v6. If you're upgrading from v5 you and have used this directory before, you should keep it enabled for the first v6 container start to allow for a complete migration. It can be removed afterwards. Needs environment variable FTLCONF\_misc\_etc\_dnsmasq\_d: 'true'

\#- './etc-dnsmasq.d:/etc/dnsmasq.d'

cap\_add:

\# See https://docs.pi-hole.net/docker/#note-on-capabilities

\# Required if you are using Pi-hole as your DHCP server, else not needed

\- NET\_ADMIN

\# Required if you are using Pi-hole as your NTP client to be able to set the host's system time

\- SYS\_TIME

\# Optional, if Pi-hole should get some more processing time

\- SYS\_NICE

restart: unless-stopped

Maybe someone can help me out.
```



document fetched 2026-09-12 00:30 · canonical https://reddit.com/r/selfhosted/comments/1wdnjin/pihole_with_dhcp_without_network_mode_host
