In modern enterprise networking, the Domain Name System (DNS) is the backbone of name resolution, yet its complexity often surprises junior engineers. A critical component of secure and efficient DNS management is Split-Horizon DNS, a technique where different DNS records are served to internal clients versus external users. This lab guides IT students and practitioners through implementing Split-Horizon zones in Cisco Packet Tracer, while also simulating the real-world phenomenon of record propagation delays. By combining VLAN segmentation, static routing, and advanced DNS server configuration, you will gain hands-on experience with a scenario frequently encountered in workplace environments.
Prerequisites and Network Topology Design
Before configuring the DNS infrastructure, you must establish a robust network topology that isolates internal traffic from external access. This lab assumes a standard enterprise layout involving two VLANs: an internal management network (VLAN 10) and a guest or external network (VLAN 20). You will need at least three routers/switches to create the necessary subnets, a PC acting as a DHCP client, and two Cisco IOS DNS servers (or simulated via Packet Tracer’s built-in DNS functionality on routers).
Key Concepts:
* Split-Horizon: Ensures internal users resolve internal.corp.local correctly while external users receive an A record pointing to a public IP or a “site not found” message.
* Propagation Delay: Simulates the time it takes for DNS changes (TTL updates) to reflect across all resolvers, often caused by caching layers.
Ensure your Packet Tracer version supports the specific IOS commands used in this guide. While Packet Tracer abstracts some hardware details, the logical configuration of ACLs and zone files remains consistent with real Cisco IOS devices.
Step 1: Building the Segmented Network Infrastructure
The foundation of Split-Horizon DNS is network segmentation. You cannot simply serve different records to everyone; you must ensure internal clients query the internal DNS server, while external queries bypass it or hit a different interface.
Configuring VLANs and Subnets
Create VLAN 10 (192.168.10.0/24) for internal staff and VLAN 20 (192.168.20.0/24) for external/guest devices. Connect your router interfaces to these VLANs and configure IP addresses.
! Internal Interface Configuration
interface GigabitEthernet0/0
description Internal_Network
ip address 192.168.10.1 255.255.255.0
no shutdown
! External Interface Configuration
interface GigabitEthernet0/1
description External_Network
ip address 203.0.113.1 255.255.255.0
no shutdown
Expected Result: Ping tests between devices on VLAN 10 and VLAN 20 should succeed if routing is configured, but DNS queries from VLAN 20 to the internal server must be restricted via Access Control Lists (ACLs).
Step 2: Configuring the Internal DNS Server with Zone Transfers
The core of this lab involves configuring a primary DNS server that hosts two zones. The first zone is standard public data, and the second is the private Split-Horizon zone.
Creating the Private Zone
On your internal DNS server (Router A), create a forward-only zone for internal.corp.local. This zone contains records only visible to the internal network.
! Configure Primary Zone in Packet Tracer / IOS
ip host web-server 192.168.10.50
zone internal.corp.local
type primary
file dns.internal.zone
! Add specific internal record
record www.internal.corp.local IN A 192.168.10.50
What this does: This command block defines the zone file and adds a static A record mapping www to an internal IP address that does not exist on the public internet.
Restricting External Access via ACLs
To enforce Split-Horizon, you must prevent external clients (VLAN 20) from resolving the internal records. Apply an inbound ACL on the DNS server’s external interface.
! Deny DNS queries from external subnet to internal zone
access-list 150 deny udp any host 192.168.10.1 eq 53
access-list 150 permit ip any any
interface GigabitEthernet0/1
ip access-group 150 in
Verification Step: From a PC on VLAN 20, attempt to nslookup www.internal.corp.local. The result should be “Non-existent domain” or an NXDOMAIN error. From a PC on VLAN 10, the lookup should return 192.168.10.50.
Step 3: Simulating Record Propagation Delays
In real-world scenarios, changing a DNS record does not result in immediate global visibility. This is due to Time-To-Live (TTL) settings and resolver caching. In Packet Tracer, we simulate this by manually manipulating the TTL values or observing the delay when flushing local caches.
Understanding TTL and Caching
When you update an A record for www.internal.corp.local, the new information propagates only after the TTL expires on resolvers. High TTLs (e.g., 86400 seconds/24 hours) mean changes take longer to reflect globally than low TTLs (e.g., 300 seconds).
Practical Simulation Steps
- Set Low TTL: In your zone file, set the default TTL to 300 seconds.
bash
$TTL 300
www.internal.corp.local IN A 192.168.10.50 - Update Record: Change the IP address of
wwwto192.168.10.60. - Flush Client Cache: On your internal client PC, use the command prompt to flush the resolver cache:
bash
ipconfig /flushdns - Observe Delay: If you do not flush the cache, subsequent
nslookupcommands will still return the old IP (192.168.10.50) for up to 300 seconds (or longer if upstream resolvers are involved).
Illustrative Output:
* Before Flush: www.internal.corp.local -> 192.168.10.50
* After Flush (Immediate): www.internal.corp.local -> 192.168.10.60
Step 4: Advanced Troubleshooting with Wireshark Integration
To truly master DNS, you must be able to inspect the packets. While Packet Tracer has a built-in packet analyzer, understanding how to filter for DNS traffic is essential.
Analyzing DNS Queries
Capture traffic on your internal interface and look for UDP port 53. You will see Query messages followed by Response messages.
* Common Error: If you see SERVFAIL or NXDOMAIN unexpectedly, check if your ACLs are blocking the response path back to the client.
* Split-Horizon Check: Verify that queries from VLAN 20 never reach the internal zone file logic by inspecting the packet flow; they should be dropped at the router/firewall layer before reaching the DNS daemon logic.
Student Practice Task: The “Failover” Scenario
Scenario: Your internal web server (192.168.10.50) has crashed. You have a backup server at 192.168.10.60.
Task:
1. Update the zone file to point www to 192.168.10.60.
2. Lower the TTL to 30 seconds for testing purposes.
3. On your internal client, run ipconfig /flushdns.
4. Run nslookup www.internal.corp.local.
5. Document the time elapsed between the file change and the successful resolution of the new IP. This mimics how real engineers calculate acceptable downtime windows during failover events.
Industry Application and Conclusion
In an industry setting, Split-Horizon DNS is often implemented using BIND or Microsoft DNS services with dynamic zone transfers restricted to specific internal IP ranges. The concept remains identical: separate views for internal and external clients. However, unlike Packet Tracer, production environments deal with massive distributed caching across ISPs, CDN nodes, and local resolvers, making propagation delays a significant operational metric.
Common Mistakes to Avoid:
* Ignoring ACLs: Forgetting to block external access to private zones leads to data leaks where internal hostnames are exposed to the public internet.
* High TTL on Dynamic Sites: Hosting dynamic content (like cloud APIs) with high TTLs can cause hours of downtime if the backend changes, as caches won’t refresh quickly enough.
* Assuming Immediate Propagation: Always test failover scenarios in a lab first; users will not notice you updated the DNS until their cached entry expires.
By completing this lab, you have bridged the gap between theoretical subnetting and practical DNS administration. Remember that while Packet Tracer simplifies the hardware, the logic of Split-Horizon zones and TTL management is universal across all network operating systems. Always verify your configurations against official vendor documentation for your specific IOS version or DNS software distribution.
Educational-use notice: This tutorial is for learning and controlled lab use only. Test carefully, use backups, and obtain authorization before making changes. Do not run unfamiliar commands on production systems. We accept no responsibility for misuse, damage, data loss, or production issues.

