Files
Main/2 Personal/Home Lab/Pi-Hole in Homenetwork.md
Obsidian-MBPM4 5c61f4f8c8 vault backup: 2025-11-08 15:34:36
Affected files:
.obsidian/workspace.json
2 Personal/Home Lab/Pi-Hole in Homenetwork.md
2025-11-08 15:34:36 +01:00

76 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Pi-Hole in Homenetwork
created_date: 2025-10-17
updated_date: 2025-10-17
aliases:
tags:
---
# Pi-Hole in Homenetwork
I followed this tutorial: [World's Greatest Pi-hole Tutorial - Easy Raspberry Pi Project! - YouTube](https://www.youtube.com/watch?v=cE21YjuaB6o)
- Installed in goodolddell
- 192.168.1.51
- [Pi-hole goodolddell](http://192.168.1.51/admin/)
-
## DNS Settings on Router
![[Pasted image 20251017195849.png]]
## Make Pi-hole the Networks DHCP (so all clients use it as DNS)
> Goal: Your router cant set custom DNS, so well let **Pi-hole (192.168.1.51)** hand out IP addresses **and** advertise itself as DNS. This gives you network-wide ad-blocking without touching per-device settings.
---
### Prereqs (do these first)
1) **Give Pi-hole a fixed IP**
- Make a DHCP reservation on your router for the Dell/Pi-hole at **192.168.1.51** (MAC = Dells NIC).
- Or set a static IP on the Pi-hole host (keep it in the routers LAN subnet; gateway = **192.168.1.1**).
2) **Know your LAN details**
- Router (gateway): **192.168.1.1**
- Pi-hole server: **192.168.1.51**
- Choose a DHCP range that avoids statics, e.g. **192.168.1.100192.168.1.200**
3) **Make sure Pi-hole web UI works**
- Open **http://192.168.1.51/admin**
- If needed: `sudo pihole -a -p` to set/change the password.
---
### Step 1 — Configure Pi-hole DNS (upstream)
In **Pi-hole → Settings → DNS**:
- Choose upstream resolvers (e.g., **Cloudflare** 1.1.1.1 / 1.0.0.1 or **Quad9**).
- (Optional) **Conditional Forwarding** to see client hostnames:
- Local network/CIDR: `192.168.1.0/24`
- IP of router: `192.168.1.1`
- Local domain name: e.g. `home` (or leave blank if unsure for now).
Click **Save**.
---
### Step 2 — Enable Pi-holes DHCP (but dont disable router yet)
**UI method**
Pi-hole → **Settings → DHCP**:
- ✅ Enable DHCP server
- Range: **192.168.1.100** to **192.168.1.200**
- Router (gateway): **192.168.1.1**
- (Optional) Domain name: `home`
- Save
**CLI equivalent (optional)**
```bash
# On the Pi-hole host:
sudo pihole -a enabledhcp 192.168.1.100 192.168.1.200 192.168.1.1
```
## Todos
- [ ] disable blocking - automation: should be easy for every user
- [ ] backup pihole settings