Home Lab Network, DNS, and Routing: VLANs, Pi-hole, and Split-Horizon DNS

A robust, enterprise-grade home lab network requires clean network segmentation, centralized recursive DNS resolution, and deterministic internal routing. By isolating IoT devices, guest users, and server workloads across distinct Virtual Local Area Networks (VLANs), engineers protect critical storage arrays and management consoles from lateral malware movement.

This guide details VLAN topology design, firewall rule ordering (OPNsense / pfSense), split-horizon DNS architecture, and encrypted WireGuard VPN tunnels.


1. Quick-Reference: Home Lab VLAN Architecture

+-----------------------------------------------------------------------------------------+
|                               HOME LAB VLAN SEGMENTATION                                |
+-----------------------------------------------------------------------------------------+
| VLAN ID | Subnet CIDR      | Purpose / Segment             | Security Policy            |
+---------+------------------+-------------------------------+----------------------------+
| VLAN 10 | 10.0.10.0/24     | Trusted Management (LAN)      | Full access to all VLANs   |
| VLAN 20 | 10.0.20.0/24     | Server & Infrastructure Pool  | Restricted inbound ports   |
| VLAN 30 | 10.0.30.0/24     | Untrusted IoT Smart Devices   | WAN only; zero LAN access  |
| VLAN 40 | 10.0.40.0/24     | Guest Wi-Fi Network           | Isolated client isolation  |
| VLAN 50 | 10.0.50.0/24     | Storage & NAS (NFS / iSCSI)   | Server pool only (Jumbo)   |
+-----------------------------------------------------------------------------------------+

2. Split-Horizon DNS Architecture

To ensure internal services (wiki.internal.lab) resolve to local private IP addresses (10.0.20.50) when on the home network and route securely via WireGuard when remote, Split-Horizon DNS uses local unbound resolvers paired with Pi-hole or AdGuard Home.