Back to Engineering Blog
Systems Design 6 min read

Self-Hosted DNS That Never Breaks the Family Wi-Fi

How to decouple experimental lab DNS from production home Wi-Fi using Keepalived VIP, Pi-hole ad-blocking, and Technitium split-horizon zones with zero family outages.

Jason NevillBy , Houston, TX
#DNS#Networking#Keepalived#Technitium#Pihole

Key Architectural Takeaways

  • VRRP Virtual IP failover via Keepalived guarantees sub-3-second DNS failover without client-side cache flushes.
  • Split-horizon architecture separates ingress ad/telemetry filtering (Pi-hole) from authoritative internal zone resolution (Technitium).
  • Independent container placement across disparate physical nodes isolates DNS resolution from hypervisor maintenance reboots.
  • Dedicated health-check probes continuously verify DNS daemon responsiveness rather than simple container liveness.

The Homelab Cardinal Rule: Never Break Family Wi-Fi

Every homelab engineer eventually experiences the same crisis: an experimental update to local DNS or a routing table misconfiguration accidentally knocks out the entire home Wi-Fi during the evening peak.

When personal projects disrupt streaming services, smart thermostats, or family video conferences, the entire homelab architecture is called into question.

To eliminate this friction permanently, we designed an isolated, high-availability DNS infrastructure that delivers ad-blocking and local resolution to lab services without creating a single point of failure for the rest of the household.

1. Physical & Logical Network Decoupling

The primary home network must operate completely independently of the downstairs homelab infrastructure:

  • Upstream Residential Network: A dedicated primary router handles family Wi-Fi, streaming clients, and mobile devices with independent WAN access and DHCP.
  • Downstream Infrastructure Network: Hypervisors, development containers, storage appliances, and IoT devices operate on isolated subnets with enterprise segmentation.

By establishing strict firewall boundaries, downtime in the homelab—whether caused by testing, maintenance, or experimentation—has zero impact on the upstream residential network.

2. High-Availability Clustered DNS with Keepalived VIP

Within the homelab network, relying on a single DNS container creates a fragile bottleneck. When that container restarts for updates, local name resolution stalls.

To provide seamless failover, we pair two independent DNS nodes under a Virtual IP (VIP) managed by Keepalived:

           [ Client Query -> Clustered Virtual IP ]
                           │
             ┌─────────────┴─────────────┐
             ▼                           ▼
    [ DNS Node 1 (Master) ]     [ DNS Node 2 (Backup) ]
       Keepalived VRRP             Keepalived VRRP
      Priority 101 (Active)       Priority 100 (Standby)

Health Checking and Instant Failover

Keepalived executes a lightweight health script every two seconds against the local DNS daemon. If the primary daemon fails to answer queries or the container halts:

  1. Node 1 drops the Virtual IP.
  2. Node 2 detects the absence of VRRP heartbeats and claims the Virtual IP in under 3 seconds.
  3. Network clients continue resolving hostnames without flushing their DNS caches or experiencing timeouts.

3. Split-Horizon Resolution: Pi-hole & Technitium

Rather than forcing one application to handle both internet filtering and internal zone records, we divide responsibilities:

  • Pi-hole (Ingress Filtering): Acts as the frontline recursive resolver for endpoints. It inspects incoming queries, drops tracking telemetry and intrusive advertising domains, and caches upstream lookups.
  • Technitium DNS Server (Authoritative Internal Zones): Handles local split-horizon zones for internal services (e.g. private .internal domains). It resolves internal container endpoints, management consoles, and service records without exposing private topology to public DNS providers.

4. Operational Results

This clustered topology has provided 100% DNS availability across dozens of hypervisor kernel reboots, network card reconfigurations, and container rebuilds. Most importantly, it completely eliminated household friction, proving that enterprise engineering rigor can successfully coexist with family life.

Some of what's described here is a design that hasn't been fully tested yet; those parts say so in the text.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.