Split DNS — Providing Different DNS Answers for Internal and External Users¶
Split DNS (also called Split-Horizon DNS, Split-Brain DNS, or Split-View DNS) is a Domain Name System (DNS) architecture where the same domain name returns different DNS responses depending on where the request originates. Internal users receive private IP addresses and internal services, while external users receive public IP addresses and Internet-facing services. Split DNS improves security, performance, and network management by separating internal and external DNS views. Every Linux administrator, DevOps engineer, Cloud Architect, Platform Engineer, Site Reliability Engineer (SRE), and Network Engineer should understand Split DNS.
Learning Path¶
Course Progress
What You'll Learn¶
After completing this lesson, you'll be able to:
- Understand Split DNS
- Learn why Split DNS is needed
- Differentiate Internal and External DNS
- Understand Public and Private DNS Zones
- Apply Split DNS in enterprise and cloud environments
- Troubleshoot Split DNS issues
Prerequisites¶
Complete:
Why Learn Split DNS?¶
Imagine a company owns:
Employees access:
from inside the office.
Customers access:
from the Internet.
Should both users receive the same IP address?
Usually:
Internal users often need private services, while external users should only reach public services.
What is Split DNS?¶
Split DNS provides:
Depending on:
- Internal Network
- External Internet
Example¶
Internal User:
External User:
Same hostname.
Different IP addresses.
Internal DNS¶
Internal DNS servers resolve:
- File Servers
- Active Directory
- Internal Applications
- Databases
- Monitoring Systems
- Kubernetes Services
Example:
External DNS¶
Public DNS servers resolve:
- Company Website
- Public APIs
- Email Services
- Virtual Private Network (VPN) Gateway
- Customer Portals
Example:
Internal DNS Zone¶
Example:
Accessible only from the internal network.
External DNS Zone¶
Example:
Accessible from anywhere on the Internet.
Split DNS Architecture¶
Internal Resolution¶
Employee:
Workflow:
Traffic never leaves the internal network.
External Resolution¶
Customer:
Workflow:
The customer reaches the Internet-facing application.
Why Use Split DNS?¶
Benefits include:
- Improved Security
- Internal Resource Protection
- Better Performance
- Reduced Internet Traffic
- Easier Management
- Simplified Hybrid Cloud Access
Enterprise Example¶
Company Services:
Internal:
External:
Developers access internal Git servers while customers access only public services.
Active Directory Example¶
Microsoft Active Directory commonly uses internal DNS.
Example:
or
These records are typically not exposed on the public Internet.
Cloud Perspective¶
Cloud environments frequently implement Split DNS.
Examples:
- Private DNS Zones
- Public DNS Zones
- Private Endpoints
- Internal Load Balancers
- Public Load Balancers
Applications inside the cloud resolve private addresses, while Internet users receive public addresses.
Hybrid Cloud Example¶
External users:
The same domain can support both environments.
Kubernetes Perspective¶
Kubernetes commonly uses internal DNS.
Example:
External users access:
using public DNS.
Internal cluster services remain private.
Linux Perspective¶
Query DNS.
Query a specific DNS server.
Query a public resolver.
Display configured DNS servers.
Split DNS Example¶
Internal:
External:
Users receive different answers based on where the query originates.
Advantages of Split DNS¶
- Stronger Security
- Better Performance
- Private Resource Protection
- Reduced Wide Area Network (WAN) Traffic
- Flexible Network Design
- Improved User Experience
Limitations¶
- More complex DNS administration
- Internal and external zones must remain synchronised where appropriate
- Incorrect configuration can cause inconsistent DNS responses
- Troubleshooting requires checking both DNS views
Hands-on Lab¶
Task 1¶
Display configured DNS servers.
Task 2¶
Query a domain.
Task 3¶
Query a specific internal DNS server.
Task 4¶
Query a public DNS server.
Task 5¶
Compare:
- Internal DNS
- External DNS
Task 6¶
Design Split DNS for:
- Public Website
- Employee Portal
- Git Server
- VPN Gateway
Task 7¶
Draw the Split DNS architecture showing:
- Internal Users
- Internal DNS
- External Users
- Public DNS
Task 8¶
Research how Split DNS is implemented in:
- Amazon Web Services (AWS)
- Microsoft Azure
- Google Cloud
Linux Commands¶
| Command | Purpose |
|---|---|
dig domain.com | Query DNS |
dig @server domain.com | Query a specific DNS server |
nslookup domain.com | Perform DNS lookup |
host domain.com | Display DNS information |
cat /etc/resolv.conf | View configured DNS servers |
Common Mistakes¶
❌ Publishing internal IP addresses in public DNS.
✅ Keep private records only in internal DNS zones.
❌ Forgetting to update both DNS views.
✅ Synchronise shared records carefully.
❌ Using public DNS for internal services.
✅ Configure clients to use internal DNS resolvers.
❌ Assuming Split DNS replaces firewalls.
✅ Continue enforcing network security controls.
❌ Troubleshooting only one DNS view.
✅ Verify both internal and external responses.
Best Practices¶
- Maintain separate internal and external DNS zones.
- Publish only necessary public records.
- Protect internal DNS servers from Internet access.
- Monitor DNS consistency between zones.
- Document internal and external DNS architectures.
- Test name resolution from both internal and external networks.
Interview Questions¶
Beginner¶
- What is Split DNS?
- Why is Split DNS used?
- What is the difference between internal and external DNS?
- What is a private DNS zone?
Intermediate¶
- Explain how Split DNS improves security.
- How does Split DNS work?
- Compare public and private DNS zones.
- What are common Split DNS use cases?
Architect Level¶
- Design a Split DNS architecture for a hybrid cloud enterprise.
- How would you secure internal DNS infrastructure?
- How would you troubleshoot inconsistent DNS responses between internal and external users?
Summary¶
In this lesson, you learned:
- Split DNS
- Internal DNS
- External DNS
- Public DNS Zones
- Private DNS Zones
- Enterprise DNS Architecture
- Hybrid Cloud DNS
- Kubernetes DNS Integration
- Linux DNS Query Commands
Split DNS allows organisations to return different DNS responses based on the source of the request. Internal users receive private addresses and access internal services, while external users receive public addresses for Internet-facing applications. This architecture improves security, simplifies management, and supports modern enterprise and hybrid cloud deployments.
Key Takeaways¶
- Split DNS provides different DNS responses for internal and external users.
- Internal DNS resolves private services using private IP addresses.
- External DNS resolves public services using public IP addresses.
- Split DNS enhances security by hiding internal infrastructure.
- Private and public DNS zones should be managed carefully.
- Split DNS is widely used in enterprise, cloud, and hybrid environments.
What's Next?¶
In the next lesson, you'll learn about DNS Troubleshooting.
You'll explore:
- Common DNS Problems
- DNS Resolution Failures
- DNS Cache Issues
- DNS Propagation
- Diagnostic Tools
- Linux DNS Troubleshooting Commands
- Enterprise Troubleshooting Methodology
By the end of the lesson, you'll be able to diagnose and resolve common DNS issues using systematic troubleshooting techniques and Linux networking tools.