Skip to content
affaan-m avatar

Homelab Pihole Dns

Pi-hole network DNS ad blocking covering install, blocklists, DNS-over-HTTPS, DHCP, and local records.

CCM score
73 of 100
skills.sh installs
8.6K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Pi-hole installation via Docker Compose or bare metal, network DNS rollout, blocklist management, and troubleshooting broken DNS
  • Includes setup for DNS-over-HTTPS upstream through cloudflared, DHCP integration, and local DNS records for internal hostnames
  • Enforces pinned release tags and checksum verification for installers and binaries, and keeps PIHOLE_WEBPASSWORD out of compose files
  • Designed for home network and homelab operators who want ad and tracker blocking across every device without browser extensions

Install

$ npx -y skills add affaan-m/ecc --skill homelab-pihole-dns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Homelab Pi-hole DNS

Pi-hole is a network-wide DNS ad blocker that runs on a Raspberry Pi or any Linux host. Every device on your network gets ad and malware domain blocking automatically — no browser extension needed.

When to Use

  • Installing Pi-hole on a Raspberry Pi or Linux host
  • Configuring Pi-hole as the DNS server for a home network
  • Adding or managing blocklists
  • Setting up DNS-over-HTTPS (DoH) upstream resolvers
  • Creating local DNS records (e.g. nas.home.lan, pi.home.lan)
  • Troubleshooting devices that lose internet access after Pi-hole is installed
  • Running Pi-hole alongside or instead of DHCP

How Pi-hole Works

Normal flow (without Pi-hole):
  Device → requests ads.tracker.com → ISP DNS → real IP → ads load

With Pi-hole:
  Device → requests ads.tracker.com → Pi-hole DNS → blocked (returns 0.0.0.0) → no ad

All DNS queries go through Pi-hole first.
Pi-hole checks against blocklists.
Blocked domains return a null response — the ad/tracker never loads.
Allowed domains get forwarded to your upstream resolver (Cloudflare, Google, etc.).

Installation

Docker (Recommended)

Details

Repository
github.com/affaan-m/ecc
Category
DevOps & Cloud
First seen
Jul 14, 2026

Questions

What does the homelab-pihole-dns skill help with?

It covers Pi-hole installation, blocklist management, DNS-over-HTTPS setup, DHCP integration, local DNS records, and troubleshooting broken DNS resolution on a home network. It applies when a task explicitly involves Pi-hole, such as configuring it or diagnosing DNS problems with Pi-hole in the path.

How do I install the Pi-hole DNS skill?

Run npx -y skills add affaan-m/ecc --skill homelab-pihole-dns -y in your project. Once installed, the agent can guide you through setting up Pi-hole as the DNS server for your home network.

Who is the homelab-pihole-dns skill for?

It is aimed at people running a home network or homelab who want network-wide ad and malware blocking through Pi-hole on a Raspberry Pi or Linux host. It also suits anyone troubleshooting devices that lose internet access after Pi-hole is installed.

Does the skill require a static IP or special setup?

Yes, the skill's bare-metal install guidance says Pi-hole requires a static IP before installing. The Docker route uses a compose file with a pinned Pi-hole release tag and a .env file for the web admin password.

More from affaan-m/ecc

All 257

Similar to Homelab Pihole Dns

More DevOps & Cloud