{"post":{"slug":"how-to-set-up-pi-hole-2026","title":"How to set up Pi-hole in 2026: network-wide ad blocking in 30 minutes","excerpt":"Pi-hole blocks ads and trackers for every device on your network without touching individual browsers. Here is how to install and configure it in 2026.","category":"tech","date":"March 16, 2026","author":"ByteLedger Team","content":"<span class=\"dropcap\">P</span>i-hole is a DNS sinkhole that intercepts ad and tracker requests before they ever load — across every device on your network, no browser extension required. Smart TVs, phones, game consoles, and IoT devices all benefit without any per-device setup. Here is the complete 2026 process from zero to a running Pi-hole.\n\n## What changed in 2026\n\n- **Pi-hole v6** released, bringing a rewritten web interface, improved performance, and native HTTPS support for the admin panel without extra config.\n- **Raspberry Pi 5** is the go-to hardware, though the older Pi 4 and Pi Zero 2 W work perfectly for DNS-only duties.\n- **AdGuard Home** grew as a competitor; both are solid in 2026. Pi-hole has more community blocklists; AdGuard Home has a slightly slicker UI.\n- **DoT/DoH support** improved — Pi-hole can forward to encrypted upstream resolvers (Cloudflare 1.1.1.1, Quad9) out of the box.\n\n## What you need\n\n| Item | Notes |\n| --- | --- |\n| Hardware | Raspberry Pi Zero 2 W (~$15), Pi 4/5, or any Linux machine |\n| OS | Raspberry Pi OS Lite (64-bit) or Ubuntu 22.04/24.04 LTS |\n| Storage | 8 GB+ microSD or USB drive |\n| Network | Wired Ethernet recommended; WiFi works |\n| Router access | Needed to change DHCP DNS settings |\n\n## Step 1 — Prepare the hardware\n\nFlash Raspberry Pi OS Lite with Raspberry Pi Imager. In the imager settings, enable SSH, set a hostname (e.g., `pihole`), and configure WiFi if not using Ethernet. Boot, find the IP, and SSH in.\n\n## Step 2 — Install Pi-hole\n\nRun the one-line installer:\n\n```\ncurl -sSL https://install.pi-hole.net | bash\n```\n\nThe interactive wizard asks:\n- **Network interface** — pick `eth0` (wired) or `wlan0`.\n- **Upstream DNS** — Cloudflare (1.1.1.1) or Quad9 are good defaults. You can change later.\n- **Blocklists** — accept the default StevenBlack list to start.\n- **Install the web admin interface** — yes.\n- **Log queries** — yes (useful for debugging and stats).\n\nAt the end, note the **admin password** displayed. Change it immediately with `pihole -a -p`.\n\n## Step 3 — Give Pi-hole a static IP\n\nPi-hole must always be at the same IP. Set a **DHCP reservation** in your router: bind the Pi-hole's MAC address to a fixed LAN IP (e.g., `192.168.1.10`).\n\nAlternatively, set a static IP in `/etc/dhcpcd.conf` on the Pi:\n\n```\ninterface eth0\nstatic ip_address=192.168.1.10/24\nstatic routers=192.168.1.1\nstatic domain_name_servers=127.0.0.1\n```\n\n## Step 4 — Point your router's DNS to Pi-hole\n\nLog into your router admin panel. Under DHCP/DNS settings:\n\n- **Primary DNS:** Pi-hole's static IP (e.g., `192.168.1.10`)\n- **Secondary DNS:** leave blank or repeat the Pi-hole IP — avoid adding a fallback like 8.8.8.8 or devices will bypass Pi-hole when it's down.\n\nEvery device that renews its DHCP lease will now use Pi-hole as its DNS resolver.\n\n## How to pick blocklists\n\n| List | Domains blocked | Use case |\n| --- | --- | --- |\n| StevenBlack (default) | ~120k | Good all-rounder, low false positives |\n| OISD Full | ~1.5M | Aggressive, catch-all |\n| oisd.nl (small) | ~50k | Light, conservative |\n| HaGeZi Pro | ~700k | Strong tracker focus |\n| No Google | varies | Block all Google tracking |\n\nStart with StevenBlack only. Add OISD Full once you've confirmed nothing important breaks. Visit **Settings → Blocklists → Update Gravity** to apply new lists.\n\n## Optional: pair with Unbound for recursive DNS\n\nUnbound makes Pi-hole its own recursive resolver — no upstream DNS provider sees your queries. Install it:\n\n```\nsudo apt install unbound -y\n```\n\nConfigure Pi-hole to use `127.0.0.1#5335` as its custom upstream DNS. The Pi-hole docs have the exact `unbound.conf` snippet.\n\n## Common mistakes\n\n**Adding too many blocklists immediately.** You will break legitimate services and waste hours debugging. Add one list at a time.\n\n**Not setting a static IP.** If Pi-hole's IP changes, every device on the network loses DNS. Reserve the IP in your router.\n\n**Adding a fallback DNS.** If you add 8.8.8.8 as a secondary, devices fall back silently when Pi-hole restarts — you lose all blocking and logs.\n\n**Ignoring the query log.** The admin panel's query log shows exactly what is being blocked. It is your fastest debugging tool when something breaks.\n\n## What to skip\n\n- **Running Pi-hole on your main desktop** — if you restart the machine, your whole network loses DNS. Use a dedicated low-power device.\n- **The Pi-hole DHCP server** unless your router's DHCP is unusable — fewer moving parts is better.\n- **Blocking everything in the 100k+ domain range** if you have family members or work VPNs on the network — the whitelist workload spikes fast.\n\n## FAQ\n\n**Will Pi-hole block YouTube ads?**\nNo. YouTube ads are served from the same domains as the video content — DNS blocking cannot distinguish them. You need a browser extension like uBlock Origin for that.\n\n**What percentage of requests does Pi-hole typically block?**\n10–30% for most households, higher if you have IoT devices or smart TVs. Check your dashboard after 24 hours.\n\n**Pi-hole vs AdGuard Home — which should I use in 2026?**\nBoth work well. AdGuard Home has a cleaner UI and built-in DoH/DoT client. Pi-hole has more community blocklist resources and a larger forum. Either is a good choice.\n\n**What happens if Pi-hole goes down?**\nAll DNS on your network fails until it recovers or you update your router's DNS settings. A second Pi-hole instance (failover) or a UPS for the Pi solves this.\n\n## Where to go next\n\n- [How to block ads network-wide in 2026](/blog/how-to-block-ads-network-wide-2026)\n- [How to secure your router in 2026](/blog/how-to-secure-your-router-2026)\n- [How to set up a home server in 2026](/blog/how-to-set-up-a-home-server-2026)","hue":242,"metaTitle":"How to Set Up Pi-hole in 2026","metaDescription":"Set up Pi-hole in 2026 for network-wide ad and tracker blocking. Covers install on Raspberry Pi or Linux, DNS config, blocklists, and Unbound pairing.","keywords":["how to set up pi-hole 2026","pi-hole installation guide 2026","network-wide ad blocking 2026","pi-hole raspberry pi setup","pi-hole dns server","pi-hole blocklists 2026","pi-hole unbound setup","block ads on router 2026","dns level ad blocking","pi-hole vs adguard home 2026"],"tldr":["**Pi-hole runs on any Linux box or Raspberry Pi** — a Pi Zero 2 W handles a full household without breaking a sweat.","**Set it as your DNS server at the router level** to cover every device automatically, including phones and smart TVs.","**Use a curated blocklist bundle** (like Steven Black's hosts or OISD) rather than adding dozens of individual lists.","**Pair it with Unbound** for local recursive DNS resolution — eliminates reliance on upstream DNS providers entirely.","**Skip:** blocking too aggressively on day one — start with one blocklist and whitelist as needed rather than fighting constant breakage."],"readTime":"4 min read","wordCount":948},"related":[{"slug":"how-to-block-ads-network-wide-2026","title":"How to block ads network-wide in 2026: Pi-hole, AdGuard Home, and DNS methods","excerpt":"Network-wide ad blocking removes ads from every device on your network including smart TVs and phones without installing anything on them. Here is how to set it up in 2026.","category":"tech","date":"April 14, 2026","author":"ByteLedger Team","readTime":"5 min read","hue":246},{"slug":"how-to-set-up-a-home-network-2026","title":"How to set up a home network in 2026: a plain-English guide","excerpt":"Setting up a home network is simpler than it looks. Here is how to place your router, secure Wi-Fi, and fix dead zones for fast, reliable coverage in 2026.","category":"tech","date":"May 17, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":200},{"slug":"how-to-set-up-a-mesh-network-2026","title":"How to set up a mesh network in 2026: whole-home Wi-Fi done right","excerpt":"A mesh network eliminates dead zones and hand-off drops that traditional routers and extenders cause. This is how to set one up properly in 2026.","category":"tech","date":"April 3, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":232}],"sameCategory":[{"slug":"ev-charging-at-home-2026","title":"EV Charging at Home: What the Install Actually Involves","excerpt":"The charger is the cheap part. What determines cost and feasibility is your electrical panel, the cable run, and whether your supply can carry another large load.","category":"tech","date":"August 19, 2026","author":"ByteLedger Team","readTime":"5 min read","hue":232},{"slug":"microled-vs-oled-2026","title":"MicroLED vs OLED: What the Wait Is Actually For","excerpt":"MicroLED promises OLED contrast without burn-in at far higher brightness. Here is why it is still not affordable, and what OLED did in the meantime.","category":"tech","date":"August 19, 2026","author":"ByteLedger Team","readTime":"3 min read","hue":235},{"slug":"nas-buying-guide-2026","title":"NAS Buying Guide: Sizing Storage You Will Not Outgrow","excerpt":"A network attached storage box is a small always-on server. Here is how to size drives and bays, why RAID is not a backup, and what actually matters in the specs.","category":"tech","date":"August 19, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":225},{"slug":"nvme-endurance-explained-2026","title":"NVMe Endurance: Will Your SSD Actually Wear Out?","excerpt":"Drive endurance ratings sound alarming and rarely constrain real use. Here is how to read the specification and what actually kills drives.","category":"tech","date":"August 19, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":251}],"newer":{"slug":"how-to-set-up-nginx-2026","title":"How to set up Nginx in 2026: reverse proxy, HTTPS, and performance basics","excerpt":"Nginx is still the default reverse proxy for most production stacks in 2026. This guide covers installation, virtual hosts, HTTPS via Certbot, and tuning.","category":"code","date":"March 16, 2026","author":"ByteLedger Team","readTime":"4 min read","hue":308},"older":{"slug":"how-to-set-up-port-forwarding-2026","title":"How to set up port forwarding in 2026: a practical step-by-step guide","excerpt":"Port forwarding lets you expose a home server, game server, or camera to the internet safely. Here is how to do it correctly in 2026 without opening more than you need.","category":"tech","date":"March 16, 2026","author":"ByteLedger Team","readTime":"5 min read","hue":234}}