Split-Horizon DNS for Self-Hosted Applications: When Should Internal Users Get a Different Route?
Split-horizon DNS can keep on-site users on a private route while remote users reach the same hostname publicly. Compare alternatives, map client groups, and test DNS, TLS, sign-in, redirects, and integrations before rollout.

What split-horizon DNS changes—and what it does not
Split-horizon DNS gives the same hostname different DNS answers depending on the client’s network context or the resolver it uses. A common pattern is for office clients to receive a private address while clients using public DNS receive a public address.
The hostname can remain the same for both groups. DNS changes the network destination; it does not, by itself, change the application’s identity, access policy, or configuration. Whether the application behaves correctly on both routes depends on the endpoints and the application’s own URL and sign-in behavior. For private-only VPN access, omitting a public DNS record is not enough: restrict the service to the VPN or private interface, or otherwise block public access.
- Consider it when: internal users need a private route, but remote users or external systems must continue reaching the application through a public endpoint using the same hostname.
- Do not treat it as access control: a DNS answer does not determine who is authorized to use the application. Plan application access and network restrictions separately.
Start with the access requirement
Ask what problem the second DNS view solves. A private internal answer can keep local traffic on an internal route rather than sending it out to a public endpoint and back. But if the public route already works acceptably for internal users, maintaining separate DNS views may add work without enough benefit.
- Is an internal route required, or merely preferred?
- Must remote users reach the same hostname without first joining a VPN?
- Does any external system need to initiate a connection to the application?
- Would private-only access through a VPN meet the actual requirement?
Choose the access pattern that fits the requirement
Compare the DNS and access implications of a shared public route, split-horizon DNS, and private-only VPN access. The appropriate choice depends on the required client paths and the application’s tested behavior.
| Access pattern | Internal users | Remote or external users | Main trade-off |
|---|---|---|---|
| One public route | Use the same public DNS answer and endpoint as other clients; verify that this route works from the internal network. | Reach the public endpoint. | Simpler DNS when the shared route meets the requirement. |
| Split-horizon DNS | Receive a private answer when using the intended internal resolver and network path. | Receive the public answer when using public DNS. | Requires resolver coverage, consistent DNS views, and testing across networks. |
| Private-only access through VPN | Reach the application over the private network. | Remote users need the VPN and its intended DNS and routing; the application can have no public DNS record. | Fits a requirement to avoid public-facing access, but does not provide public reachability for external systems. |

Map users, devices, and integrations to their routes
Do not plan only for “inside” and “outside.” Clients may use different resolvers even when they are in the same place, and some remote users may be on a VPN while others are not. Write down the expected DNS answer and required network path for each relevant group before changing records.
Also list integrations that call the application and those the application calls. The DNS design alone cannot confirm that a particular integration or application feature will work; check the relevant documentation and test the actual flow.
- Office LAN clients: identify the intended internal resolver, expected private answer, and private route.
- VPN users: confirm whether they should use the internal resolver and private route, and make sure the VPN supplies the intended DNS and routing.
- Guest devices: decide whether they should use the public view, a restricted route, or neither.
- Remote users and external systems: establish whether they need the public answer and a reachable public endpoint.

Plan DNS views and roll out in a controlled way
Keep the internal and public answers intentional and consistent. If the views are managed separately, document which records differ and how they are kept aligned so a later change does not leave one group pointed at an outdated endpoint.
Start with a limited canary group and expand only after the intended DNS answers, routes, and application flows have been checked.
- Create a client-group matrix showing the resolver each group should use, the expected answer, and the route that answer should lead to.
- Configure internal DNS for the intended LAN clients and advertise the intended resolver through DHCP and VPN configuration where applicable.
- Check whether guest networks should use internal DNS, and account for clients that may bypass it through secure DNS or manually configured resolvers.
- Record the existing DNS answers and application behavior, along with a way to restore the previous configuration if the new route fails.
Account for caches and network changes
A device can retain a private answer after leaving the office and continue trying an internal address it cannot reach. A client may also keep an older answer after a DNS change. Test a canary device as it moves between LAN, cellular, and VPN, and repeat checks after the relevant cache or record TTL period.
Test resolution and application behavior from both sides
Test from representative clients, not just from a DNS server or an administrator’s workstation. For each client group, record the resolver used, the answer received, whether the endpoint was reachable, and whether the application completed the expected workflow.
Changing DNS should change the network destination, not the hostname used for HTTP and TLS. Both routes should lead to the intended application, with a certificate valid for the shared hostname.
- Check internal and external DNS answers independently, including from the VPN and any guest network in scope.
- Include devices that may use browser secure DNS, mobile private DNS, or manually configured resolvers; these can bypass the intended internal DNS view.
- Check redirects and generated links for an unexpected IP address, alternate hostname, or route that the client cannot reach.
- Test sign-in, identity-provider callbacks, and return-to-application behavior from each relevant network path.
- Exercise WebSockets or other application functions that matter to users, rather than relying only on a page load.
- Test each integration flow from the relevant network, confirming its connection direction, hostname, and expected route.
Diagnose failures in layers
When a test fails, separate a resolution problem from a route, TLS, or application problem. First confirm the resolver and answer; then check reachability and the certificate for the hostname; finally inspect redirects, sign-in, and the integration flow.
- Wrong answer: check resolver assignment, VPN DNS, guest-network policy, secure DNS, and cached responses.
- Correct answer but unreachable endpoint: check the route available to that client group.
- Reachable endpoint with a certificate or routing error: verify hostname preservation, certificate validity, and host-based routing at that endpoint.
- Page loads but a workflow fails: inspect application URLs, redirects, callback configuration, and integration-specific documentation or logs.
Document ownership—and know when to keep it simple
Assign an owner for both DNS views and for reviewing them after changes to the application endpoint, certificates, resolver configuration, or identity settings. Keep a short troubleshooting record with the expected answers by client group and the intended routes.
Choose the simplest access pattern that meets the requirement:
- Prefer one public route when it already works for internal and external users and a private route provides no clear operational benefit.
- Choose private-only VPN access when the real requirement is to keep the application off the public internet and remote users can use the VPN. Omit public DNS if appropriate, and also restrict the service to the VPN or private interface, or otherwise block public access.
- Use split-horizon DNS when internal users have a genuine need for a private route while remote users or external systems still require public access to the same hostname—and you can operate both views.
If the application is managed or hosted for you
Managed hosting can simplify responsibility for the public application endpoint without deciding how your office or VPN clients resolve its hostname. Airbip manages application routing and TLS certificates for its hosted instances, and customers can use an Airbip subdomain or a compatible custom domain. Confirm your internal resolver, VPN, and integration requirements separately; do not assume a hosting configuration creates a split-horizon DNS view for your network.
Frequently asked questions
Does split-horizon DNS make an application private?
No. It changes the DNS answer a client receives; it does not itself enforce authorization or prevent access through another route. If your requirement is private-only access, consider VPN access with no public DNS record, and restrict the service to the VPN or private interface or otherwise block public access. Verify that the network and application access controls match that goal.
Do both endpoints need a certificate for the same hostname?
For a shared application hostname, verify that both internal and external endpoints present a certificate valid for that hostname and route it to the intended application. Changing the DNS destination should not change the hostname used for HTTP and TLS.
Will split-horizon DNS break identity callbacks or integrations?
It may expose a mismatch if redirects, callback URLs, generated links, or integration endpoints assume a different hostname or route. The behavior depends on the application and identity provider, so check their documentation and test the actual flows from the relevant networks.
Sources and further reading 5
- DNS Resolution — Smithy 2.0 Smithy
- Split-horizon DNS – Internet Webiano Digital
- Split DNS Deployment Guide for Local and Remote Self-Hosted Apps ZimaSpace
- Split-horizon DNS: Serving Different Answers Inside and Outside Your Network VallaDNS
- Split-horizon DNS - different answers for inside vs outside your network LYLIX