Running Pi-hole at Home: Great Until It Isn't (Plus One Frustrating AT&T BGW320-505 Quirk)
How I run Pi-hole v6, Unbound DNS-over-TLS, Tailscale, and Omada at home—lessons from being my own DNS admin, SD-card survival tweaks, and a frustrating AT&T Nokia BGW320-505 firmware quirk that stalls updates until every Ethernet cable is unplugged.
I really like my Pi-hole. Having network-wide ad, tracker, and malware blocking across every phone, desktop, TV, and smart appliance in the house—without having to babysit browser extensions on every device—feels like a superpower once it’s dialed in.
That said, running your own DNS is not for the faint of heart. The moment you put a Raspberry Pi in charge of name resolution for your house, you graduate from “internet customer” to “home network SRE.” When something breaks, everyone notices immediately, and half the time the culprit isn’t even what you think it is.
Here’s how my setup works today, a few lessons I learned the hard way, and one genuinely frustrating AT&T modem quirk that I want on the public record so nobody else wastes an hour troubleshooting their DNS over it.
First, a PSA: The AT&T Nokia BGW320-505 Firmware Update Quirk
Before I get into Pi-hole itself, I want to flag a maddening quirk with my AT&T Fiber gateway—a Nokia BGW320-505.
I have the BGW320-505 configured in IP Passthrough (bridged) mode straight into my own router so AT&T’s box stays out of the way and my router handles NAT, DHCP, VLANs, and port forwarding. In theory, the gateway should just sit there quietly passing packets.
In practice, almost every time my internet randomly drops out, it’s not Pi-hole and it’s not my router—it’s AT&T pushing a firmware update to the BGW320-505.
Here’s the frustrating catch: the gateway won’t actually finish installing its firmware update while anything is plugged into its Ethernet ports. Instead of applying the update cleanly and rebooting on its own, it drops the connection and just sits there stalled until you intervene.
The fix—every single time—is to physically walk over to the gateway:
- Unplug every Ethernet cable from the back of the BGW320-505.
- Wait for it to finally detect empty ports, complete the firmware update, and reboot.
- Plug the router back in and watch everything come right back online.
It’s an intensely frustrating quirk when you’re trying to run a reliable home network. If you run a bridged router and a homelab behind an AT&T Nokia BGW320-505 and your WAN mysteriously vanishes, unplug the Ethernet cables from the gateway before you start tearing apart your Pi-hole logs. It might save you an hour of chasing ghosts.
The Overall Network Architecture
Once traffic gets past AT&T’s gateway, the layout is clean and split into clear responsibilities:
[AT&T Fiber Gateway — Nokia BGW320-505 (IP Passthrough)]
│
▼
[TP-Link Omada ER7212PC Router]
• Handles NAT, DHCP, VLANs, Port Forwarding, and Omada Wi-Fi APs
• Hands out Pi-hole as LAN DNS (IPv4 & IPv6) on the main network
│
▼
[Raspberry Pi 3 Model B — Pi-hole v6 + Unbound]
• Pi-hole v6 (DNS filtering and local host records)
• Unbound on localhost port 5335 (local DNSSEC + encrypted DoT to 1.1.1.2)
• Tailscale (remote DNS + optional exit node when away from home)
A few deliberate choices here:
- One DHCP server, not two: Omada owns DHCP, static IP reservations, and VLANs (a main LAN plus a separate IoT VLAN pointed at Cloudflare’s malware-blocking DNS). Pi-hole strictly handles DNS. (Lesson learned: never toggle Pi-hole’s DHCP or IPv6 Router Advertisements on “just to test something” when another router is already serving DHCP—you’ll create dual-DHCP conflicts and broken IPv6 routing in seconds.)
- Memorable static IP endings: Because life is short, I like giving key machines classic pager-code endings—
.143(“I Love You”) for the Pi-hole,.247(“24/7”) for an always-on home server, and.224(“Today, Tomorrow, Forever”) for my wife’s PC. - Local DNS hostnames: Pi-hole’s
dns.hostsmaps friendly subdomains on our own domains directly to local machines (withlocalise-queriesenabled), plus Tailscale records where needed so I can still reach my desktop remotely when I’m out.
Inside the Pi: Pi-hole v6 + Unbound + Tailscale
The Pi itself is just a wired Raspberry Pi 3 Model B. You don’t need heavy hardware for DNS—mine sits at 0.00 load average and ~53°C with plenty of RAM to spare, especially after disabling Wi-Fi, Bluetooth, and unused background services.
1. Encrypted Upstream DNS (DoT) with Unbound
Instead of sending uncached DNS queries out over plaintext port 53 for AT&T to inspect, Pi-hole forwards locally to Unbound (listening on localhost port 5335), which connects upstream over DNS-over-TLS (port 853) to Cloudflare’s malware-blocking resolver (1.1.1.2 / 1.0.0.2, strictly verified against security.cloudflare-dns.com).
Why this works so well:
- ISP privacy + ECH synergy: Outbound DNS queries leave the house encrypted over TLS, and because Pi-hole and Unbound pass
TYPE65(HTTPS) records straight through, browsers using Encrypted Client Hello (ECH) keep both the DNS lookup and the TLS SNI hidden from the ISP on ECH-supported sites. - Extra malware protection + fast cold misses: Layering Cloudflare’s malware filter behind Pi-hole adds real-time protection while keeping Unbound’s local
serve-expired: yes,prefetch: yes,prefetch-key: yes, and local memory caches active for instant repeat answers. - Avoid double-DNSSEC: Pi-hole has its own
dns.dnssectoggle, and Unbound validates DNSSEC too. Having both enabled generated over 10,000 extra internalDS/DNSKEYqueries a day. Letting Unbound own DNSSEC (dns.dnssec = falsein Pi-hole) keeps full validation with far less noise. - Keep your clock accurate: DNSSEC and TLS certificate validation both break immediately if system time drifts. I disabled Pi-hole’s built-in NTP server and configured
systemd-timesyncdto sync directly totime.nist.gov.
2. Lean Blocklists (Less Bloat, Fewer Headaches)
For years I had the classic Pi-hole bloat problem: dozens of overlapping blocklists managed by a third-party PHP updater script, aggressive regex blacklists, and three separate bulk whitelists trying to undo the false positives.
Switching to Pi-hole v6’s native Adblock-style (ABP) wildcard list support let me retire the PHP updater, remove legacy lighttpd/php packages, and trim the whole setup down to two well-maintained lists plus a small set of personal exceptions:
- OISD Big — broad ad and tracker blocking with very low false positives.
- HaGeZi Threat Intelligence Feeds (TIF) — malware, phishing, and malicious domains.
Pairing Pi-hole with Tailscale also means I can take the same DNS filtering with me when I’m away from home, without exposing port 53 to the public internet.
Keeping a MicroSD Pi Alive Long-Term
Log bloat is the leading cause of inaccessible servers (only half joking). Since this Pi runs off a microSD card, I added a few guardrails so it doesn’t quietly fill up or burn through flash writes:
- Cap all logs to ~7 days: Set
MaxRetentionSec=7dayandSystemMaxUse=100Monsystemd-journald, switchedrsyslogfrom weekly todaily/rotate 7, and kept Pi-hole’s own log rotation tight. - Reduce SD card writes: Lowered Pi-hole’s
database.maxDBdaysfrom 91 to 30 days, bumpeddatabase.DBintervalfrom 60 seconds to 300 seconds (5× fewer database flushes), and loweredvm.swappinessfrom60to10. - Sequential weekly auto-updates: A
flock-guardedsystemdtimer runs every Tuesday at 4:00 AM—backing uppihole.toml, running non-interactiveaptupdates, then runningpihole -up, verifying DNS still answers, and logging whether a reboot is required (without blindly rebooting mid-week).
Why I Say It’s “Not for the Faint of Heart”
If you’re thinking about building a similar setup, go for it—just go in with realistic expectations:
- A misbehaving app can DDoS your own DNS. I once thought my Pi-hole had randomly failed mid-afternoon;
FTL.logrevealed a stuck desktop extension hammering Pi-hole with 5,000+ queries a minute and tripping Pi-hole’s per-client rate limiter (REFUSED). - Every extra layer is another place to check. Between an ISP gateway, a bridged router, IPv4 + IPv6 DNS, Unbound DoT + ECH, and Tailscale MagicDNS, troubleshooting takes patience and good notes.
- Back up before you tinker. Keep copies of
pihole.tomlandgravity.dbbefore making changes—especially when other people in the house are actively using the internet.
Still, once everything is trimmed, documented, and automated, it’s genuinely great. The whole house feels quieter and snappier, my devices keep the same protection on the road through Tailscale, and the Pi just hums along in the corner.
Just remember: if you have AT&T Fiber with a Nokia BGW320-505 and your internet cuts out for no apparent reason, unplug the Ethernet cables from the gateway first.