pihole/pihole:2024.03.2
mvance/unbound:1.19.3
Pi-hole, a network-wide ad blocker, is combined with Unbound, a DNS over TLS resolver.
The .env
file in the root of the project is used for configuration.
Name | Default | Comment |
---|---|---|
HOST_IP | --- | Your LAN IP. |
TZ | America/Chicago |
Your timezone |
TAG | local |
Use as docker container's tag |
PROJECT | my-dns |
Use as docker image's repository alias |
PI_HOLE_PORT | 53 |
Pi-Hole web password |
PI_HOLE_WEB_PORT | 80 |
Pi-Hole web port (host) |
PI_HOLE_PASSWORD | password |
pi.hole/admin web password |
UNBOUND_PORT | 5335 |
Unbound port (host) |
For test is working correctly you can check the custom A-record:
# This should return the IP 192.168.168.192
> nslookup jqfqmenwsqeporkaaecrvqdf.my
Server: 192.168.1.12
Address: 192.168.1.12#53
Non-authoritative answer:
Name: jqfqmenwsqeporkaaecrvqdf.my
Address: 192.168.168.192
> make help
build Building pihole and unbound images.
start Start containers.
stop Stop and remove containers.
shell Get root shell inside pihole container.