Pi-hole
NetworkingNetwork-wide ad and tracker blocking via DNS.
Pi-hole is a network-wide DNS sinkhole that blocks ads and trackers for every device on your network — phones, smart TVs and apps included — with no client-side software to install. Its web dashboard gives real-time query statistics, per-client insights and easy allow/deny list management, and it can double as your network's DHCP server.
What Pi-hole is good for
- Blocking ads and trackers for every device on the network, including smart TVs and phone apps.
- Seeing which devices make the most DNS queries and which domains they contact.
- Running DHCP for the network when the router's own DHCP is limited.
- Setting local DNS names for homelab services, such as nas.lan.
Before you deploy
- All devices depend on it for DNS. Keep a second instance or a fallback so the internet does not go down with it.
- Port 53 must be free on the host, which often means disabling the systemd-resolved stub listener.
- Encrypted upstream DNS (DNS-over-HTTPS) is not built in and needs an extra tool such as cloudflared or Unbound.
- Some apps hardcode their own DNS servers and will bypass Pi-hole unless you redirect DNS traffic on the router.
Compatibility
Proof of Work Gallery
- Dashboard
- Settings
- Query Log
Deployment
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
environment:
TZ: 'Europe/Sofia'
FTLCONF_webserver_api_password: 'change-me'
volumes:
- pihole-etc:/etc/pihole
- pihole-dnsmasq:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
volumes:
pihole-etc:
pihole-dnsmasq:
Alternative to
NextDNS, AdGuard DNS (cloud), Commercial DNS ad-blocking services
Related apps
Get new apps and guides by email
One short email when we test a new app or publish a guide. No spam, unsubscribe any time.