← All guides
Pi-hole
Network-wide ad and tracker blocking at the DNS level — one install protects every device on your network.
This guide is synthesized from Pi-hole's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
1Run the official installer
curl -sSL https://install.pi-hole.net | bashThis is Pi-hole's own documented install method. The installer is interactive — it'll ask which network interface and upstream DNS provider to use.
2Note the admin password
The installer prints a randomly generated web admin password at the end — save it, or reset it any time with pihole -a -p.
3Point your router or devices at it
Set your router's DNS server (or each device's, if you can't change the router) to this server's IP address so all DNS queries get filtered.
4Open the dashboard
http://your-server-ip/admin