← Back to all apps

Pi-hole

Networking

Network-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.
License
EUPL-1.2
GitHub stars
61,000
Official website
https://pi-hole.net
Source code
https://github.com/pi-hole/pi-hole

Compatibility

Architectures
amd64, arm64
Database
SQLite
Resource footprint
512 MB RAM · 1 CPU
Extremely lightweight — the classic 'runs on a Raspberry Pi' network-wide ad blocker. Footprint mainly scales with total DNS query volume across your network and how large your blocklists are, not with the number of client devices.

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.