Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To use Pi-hole across your home network, install it on a Raspberry Pi with a stable IP address, then configure your router to give that address to clients as their DNS server. Installing Pi-hole alone does not redirect other devices’ DNS requests; the router’s DHCP settings—or Pi-hole’s DHCP server as a fallback—make the network-wide setup work.

What you need before installing Pi-hole

Pi-hole lists Raspberry Pi OS as a supported operating system. It supports only actively maintained versions of supported distributions. Its published minimums are 512 MB of RAM and 2 GB of free disk space, with 4 GB of free disk space recommended. Pi-hole’s prerequisites describe the software as lightweight.

  • A Raspberry Pi running a supported, actively maintained Raspberry Pi OS version.
  • A stable IP address. Set one on the Pi or create a DHCP reservation for it in your router. A reservation keeps the address consistent while the router continues assigning addresses.
  • Available DNS ports. Pi-hole needs TCP and UDP port 53. Check that another DNS service on the host is not already using them.

Install Pi-hole on Raspberry Pi OS

Pi-hole’s standard installation guide documents this automated command:

curl -sSL https://install.pi-hole.net | bash

This downloads the installer and passes it directly to Bash. Pi-hole notes that this approach is controversial because you cannot review the script before it runs. If you want to inspect the installer first, the official guide also documents cloning the repository and running basic-install.sh, or downloading that script and invoking it with sudo bash. Follow the current instructions on the official page for the exact commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
  • Includes Raspberry Pi 5 with 2.4Ghz 64-bit quad-core CPU (8GB RAM)
  • Includes 128GB Micro SD Card pre-loaded with 64-bit Raspberry Pi OS, USB MicroSD Card Reader
  • CanaKit Turbine Black Case for the Raspberry Pi 5
  • CanaKit Low Noise Bearing System Fan
  • Mega Heat Sink - Black Anodized

Complete the installer’s prompts, including its network and DNS selections. The installer’s screens and available choices can change; use the settings shown on your Pi rather than assuming a particular prompt or upstream DNS option.

Check Pi-hole after installation

Pi-hole provides a web interface and the pihole command for administration. Its getting-started documentation includes these command examples:

Rank #2
CanaKit Raspberry Pi 5 16GB Starter Kit PRO - Turbine Black (128GB Edition) (16GB RAM)
  • Includes Raspberry Pi 5 16GB with 2.4Ghz 64-bit quad-core CPU (16GB RAM)
  • Includes 128GB Micro SD Card pre-loaded with 64-bit Raspberry Pi OS, USB MicroSD Card Reader
  • CanaKit Turbine Black Case for the Raspberry Pi 5
  • CanaKit Low Noise Bearing System Fan
  • Mega Heat Sink - Black Anodized
  • pihole status — check Pi-hole’s status.
  • pihole version — display version information.
  • pihole update — run the documented update command.

Use the web interface or command line to manage the installation. Before changing network settings, note the Pi’s stable IP address; that is the address clients need for DNS.

Make devices across your home network use Pi-hole

Configure the router’s DHCP or LAN settings to distribute the Pi-hole address as the DNS server. Menu names vary by router, so look for DNS settings associated with its LAN or DHCP configuration. This lets devices that receive their network settings from the router use Pi-hole without configuring each device individually.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
CanaKit Raspberry Pi 5 Essentials Starter Kit (4GB RAM)
  • CanaKit Raspberry Pi 5 Essentials Starter Kit
  1. Open your router’s administration interface and find its LAN or DHCP settings.
  2. Set the DNS server handed to clients to the Raspberry Pi’s stable Pi-hole IP address.
  3. Save the setting. Renew clients’ network connections or leases so they receive the updated DNS setting.
  4. Check a connected device’s network details to confirm it received the Pi-hole address as DNS.

Router interfaces differ, and the documentation does not establish a universal menu path. If the router cannot distribute a custom DNS server, Pi-hole’s documented fallback is to use Pi-hole’s built-in DHCP server instead.

Fallback: use Pi-hole for DHCP

Do not run the router’s DHCP service and Pi-hole’s DHCP service at the same time on the home LAN. If you use Pi-hole to assign network settings, disable DHCP on the router first, then enable and configure Pi-hole DHCP. Two active DHCP servers can give devices conflicting network settings.

Rank #4
SANOOV Raspberry Pi 5 4GB Kit, 4GB RAM Single Board Computer with Active Cooler and ABS Case, Complete Raspberry Pi 5 Starter Kit for IoT Robotics Retro Gaming
  • All-in-One Complete Kit: This SANOOV RPi 5 bundle comes with Raspberry Pi 5 4GB RAM single board, active cooler, durable ABS case and screwdriver. No extra parts needed, ready to use right out of the box for beginners and hobbyists
  • Powerful Single Board Computer: Equipped with 4GB RAM and high-performance processor, delivers fast running speed for 4K playback, AI projects, programming and daily computing tasks. SANOOV for raspberry pi 5 4GB is equipped with broadcom 64 quad-core Arm Cortex A76 processor with gigabit ethernet and upgraded with IEEE 802.11ac Wi-Fi, Bluetooth 5.0 dual-band 2.4Ghz and 5Ghz and Power Over Ethernet (POE). Upgrading delivers 2-3 x speed vs Pi 4, redefining the experience
  • Efficient Active Cooler: Effectively lowers operating temperature and prevents performance throttling. Runs quietly even under long-time heavy load, ensures stable operation all day long. SANOOV RPi 5 4GB kit offer an active cooler, which combines an aluminium heatsink with a high-performance PWM fan. Active cooler is fully compatible with the Pi OS, which can effectively reduce the temperature of RPi5 and ensure its good performance during long-term high load operation
  • Sturdy ABS Protective Case: Well-fitted for Raspberry Pi 5 board, can be secured with 4 screws to effectively protect the Pi 5 motherboard from damage, reserves full access to all ports and buttons. SANOOV uses ABS material to produce the case, which has a softer texture and feel. Meanwhile, SANOOV case adopts a layered design for easy disassembly and installation. (Tip: The Case cannot install M.2 HAT Add on Board and Solid State Drive!)
  • Wide Application & Full Compatibility: Seamlessly compatible with official OS and mainstream peripheral accessories for Raspberry Pi 5. Whether you are a beginner, student, electronics hobbyist or professional developer, this all-in-one kit meets your diverse needs. It excels in IoT projects, robotics design, retro gaming devices, home media servers and other DIY creations. Backed by a large global community, you can easily find guides, technical support and shared projects online
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Standard installation or Docker?

The normal installation runs Pi-hole on the Raspberry Pi OS host. Docker is a separate deployment path, with additional decisions about networking, ports and persistent configuration. Pi-hole’s Docker configuration guide documents the following considerations:

Choice What to consider
Install on Raspberry Pi OS Uses the host operating system directly. The standard installer is the documented route; ensure no other host DNS service occupies TCP or UDP port 53.
Run in Docker Requires port mappings or a networking mode that exposes DNS to the LAN, plus persistent volumes for configuration. The guide’s example exposes DNS on TCP and UDP port 53 and web interfaces on ports 80 and 443, and recommends automatic restart.
Docker bridge networking with DHCP DHCP broadcasts do not cross from the container network to the LAN. Pi-hole’s guide says DHCP works best with host networking unless the router supports DHCP relay or another suitable network design is in place.

For a first installation whose goal is network-wide DNS, the host-OS method avoids Docker’s extra port and network-mode decisions. Choose Docker if you already manage container networking and can provide the necessary LAN access and persistent storage.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
RasTech Raspberry Pi 5 8GB Kit with Active Cooler and Pi5 Case
  • 【What you Get】You will get 1*Pi 5 8GB Single Board,1*RasTech Case,1*Active Cooler,1*Screwdriver,1*Installation instructions,12-month free warranty, lifetime service, 24-hour prompt and friendly response.
  • 【More Connectors】There are two USB 3.0 ports(5Gbps simultaneously) and two USB 2.0 ports, which triple total bandwidth ,support any combination of up to two cameras or displays. Peak SD card performance is doubled through support for the SDR104 high-speed mode. It provides a smooth desktop experience for you. Offer Gigabit Ethernet and a PCIe interface, along with dual-band Wi-Fi and Bluetooth 5.0/BLE wireless capability. The RasTech Pi 5 Kit use the new 27W 5.1V 5A USB-C power connector.
  • 【 Support Dual 4Kp60 Display 】Each of the two microHDMI sockets can control a 4K display at 60 Hertz, now support HDR, offering super HD video for media streaming projects. RPi 5 is the first RPi model that comes with a PCI Express port (PCIe 2.0 x1 with 500 MB/s) to attach SSDs (requires separate M.2 HAT).
  • 【 Excellent Chips And Applications】Pi 5 is a full-size Pi computer using silicon built in-house at Pi. The RP1 “southbridge” provides the bulk of the I/O capabilities for Pi 5. Pi 5 is more friendly and convenient in the development of Internet of Things, Web development, machine identification, automatic control and other electronic equipment applications and network.
  • 【 Faster CPU, Better GPU 】 Pi 5 features a Broadcom BCM2712 64-bit quad-core Arm Cortex-A76 processor running at 2.4GHz, it delivers a 2–3× increase in CPU performance relative to RaspberryPi 4. The 800MHz VideoCore VII GPU is compatible to OpenGL ES 3.1 and Vulkan 1.2, substantial uplift in graphics performance. Pi 5 Offers lightning-fast CPU speed, a PCI Express interface, a Real Time Clock (RTC) and a power button and runs significantly cooler than Pi 4.

What Pi-hole can and cannot do for ad blocking

Pi-hole filters DNS requests using its configured blocking lists. When devices use it as their DNS server, it can block requests to domains on those lists across the network. It is not a universal ad blocker: ads served from the same domain as wanted content, or content that does not rely on DNS requests, may not be blocked. The setup described here makes Pi-hole available as network DNS; it does not guarantee that every device or every ad will be filtered.

Quick Recap

Bestseller No. 1
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
Includes Raspberry Pi 5 with 2.4Ghz 64-bit quad-core CPU (8GB RAM); CanaKit Turbine Black Case for the Raspberry Pi 5
$259.95
Bestseller No. 2
CanaKit Raspberry Pi 5 16GB Starter Kit PRO - Turbine Black (128GB Edition) (16GB RAM)
CanaKit Raspberry Pi 5 16GB Starter Kit PRO - Turbine Black (128GB Edition) (16GB RAM)
Includes Raspberry Pi 5 16GB with 2.4Ghz 64-bit quad-core CPU (16GB RAM); CanaKit Turbine Black Case for the Raspberry Pi 5
$419.99
Bestseller No. 3
CanaKit Raspberry Pi 5 Essentials Starter Kit (4GB RAM)
CanaKit Raspberry Pi 5 Essentials Starter Kit (4GB RAM)
CanaKit Raspberry Pi 5 Essentials Starter Kit
$189.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.