Split-tunnel VPNs promise an ideal balance: send internal corporate traffic through the encrypted tunnel while letting music streams, video conferences, and public web searches flow unhindered over your local ISP. But for millions of remote workers, that promise breaks the second they type http://jira or ssh build-worker-01 into a terminal.
The browser hangs. The terminal reports Name or service not known or Could not resolve host. Meanwhile, pasting the fully qualified domain name (FQDN) or hardcoding an IP into /etc/hosts works instantly.
At 365Finds, we have dissected hundreds of remote-work connectivity failures, and this specific breakdown is among the most misunderstood. It is not an IP routing failure. Your WireGuard, OpenVPN, or IPsec routing table is usually completely fine. Instead, the failure happens in the operating system's DNS resolver subsystem—specifically at the collision point between search domain expansion, parallel adapter querying, and scoped domain routing policies.
Here is what actually breaks inside Windows NRPT, macOS mDNSResponder, and Linux systemd-resolved, and why modern operating systems routinely route internal search domains straight to public name servers.
The Root Tension: IP Routing vs. DNS Steering
To understand why resolvers fail, you have to appreciate the architectural mismatch between IP routing and DNS resolution.
In a split-tunnel VPN, the operating system assigns your device at least two network interfaces:
- Physical interface (Wi-Fi or Ethernet): Bound to your local router, holding the default gateway (
0.0.0.0/0) and public ISP/home DNS servers. - Virtual tunnel interface (
utun*,tun0, TAP/TUN): Bound to the VPN, holding specific routes for private corporate subnets (e.g.,10.0.0.0/8,172.16.0.0/12) and private internal DNS servers.
When sending an IP packet, your OS kernel consults the routing table using longest-prefix match. If you ping 10.20.4.5, the kernel matches 10.0.0.0/8 and routes the packet into the tunnel.
DNS, however, must execute before any IP packet can be created. When an application calls getaddrinfo() for an unqualified hostname like wiki, the OS does not have a destination IP. It cannot use IP routing tables. It must decide which DNS server to ask based entirely on hostname string patterns and internal resolver heuristics.
This is where the distinction between Search Domains and Routing Domains creates catastrophic failure:
- Search Domains: Suffixes appended to single-label, unqualified hostnames (e.g., expanding
wikiintowiki.corp.internal). - Routing Domains / Scoped Resolvers: Rules dictating that any query ending in
.corp.internalmust be directed exclusively to the VPN interface's DNS server.
If the operating system evaluates its search list in the wrong order, queries adapters in parallel, or fails to bridge search suffix expansion with scoped policy tables, your internal query leaks out to your home router or public DNS. The public resolver immediately returns NXDOMAIN (Non-Existent Domain), and your connection dies.
1. Windows: The Name Resolution Policy Table and SMHNR Collision
Windows handles split-tunnel DNS through two competing mechanisms: the Name Resolution Policy Table (NRPT) and Smart Multi-Homed Name Resolution (SMHNR). When they clash, internal search domain resolution collapses.
The Single-Label Blindspot in NRPT
Windows Server introduced NRPT primarily for DirectAccess and Always On VPN. NRPT is a table of namespace rules. You can instruct Windows: "Any query matching .corp.contoso.com must be resolved by 10.50.0.10."
The fatal flaw: NRPT operates on namespaces, not bare short names.
When a remote worker enters jira, Windows does not initially see a match in the NRPT. The Windows DNS Client must first turn that short name into an FQDN by appending suffixes.
Which suffix does it append first?
- The Primary DNS Suffix configured on the machine.
- The Connection-Specific DNS Suffix of the primary network adapter (usually your home Wi-Fi, such as
home.arpaorlan). - The DNS Suffix Search List distributed via Active Directory Group Policy.
If the VPN connection-specific suffix (corp.contoso.com) is appended to the VPN interface but is not injected into the global DNS Suffix Search List, Windows tries local suffixes first (jira.lan). Since jira.lan does not match the NRPT rule for .corp.contoso.com, the query falls completely outside the NRPT policy and gets dispatched to your home router.
Smart Multi-Homed Name Resolution (SMHNR) Races Queries
Even when suffixes are configured, Windows 8, 10, and 11 feature an aggressive performance optimization called Smart Multi-Homed Name Resolution (SMHNR).
Instead of querying network adapters sequentially based on interface metrics, SMHNR sends DNS requests across all active network adapters simultaneously:
- A query for
jirais expanded or broadcast across both Wi-Fi and VPN adapters. - Your local home Wi-Fi router (answering over local 5 GHz wireless or Gigabit Ethernet) responds in 2 milliseconds with
NXDOMAIN. - Your corporate DNS server (answering across an encrypted tunnel with 40–80 milliseconds of WAN latency) hasn't even finished decrypting the packet.
- Windows accepts the fastest response. The query fails with
NXDOMAIN, even though the corporate server was about to return an internal IP.
+--------------------------------------------------------------+
| Application (e.g., Browser) |
| Queries: "jira" |
+------------------------------+-------------------------------+
|
v
+--------------------------------------------------------------+
| Windows DNS Client / SMHNR |
| Sends queries in PARALLEL |
+------------------------------+-------------------------------+
| |
(Home Wi-Fi Link) (VPN Tunnel Link)
| |
v v
+--------------------+ +--------------------+
| Local ISP Resolver | | Corporate DNS |
| Latency: ~2 ms | | Latency: ~45 ms |
| Response: NXDOMAIN | | Response: 10.0.1.5 |
+--------------------+ +--------------------+
| |
(Arrives First) (Arrives Too Late)
| |
+--------------->+<-------------+
|
v
[Windows Accepts NXDOMAIN - Resolution Fails]
The Diagnostic Trap: nslookup vs. Resolve-DnsName
One reason corporate IT helpdesks spend days on this issue is that their frontline engineers ask users to run nslookup.
nslookup.exe is a legacy diagnostic utility that completely ignores NRPT and Windows Client resolution APIs. It takes the system's primary DNS server and issues raw socket queries directly to it. When nslookup wiki.corp.contoso.com fails, engineers assume the VPN tunnel or DNS server is offline.
To see how Windows actually evaluates split-tunnel resolution, you must use PowerShell:
# Bypasses NRPT and lies during split-tunnel debugging:
nslookup wiki.corp.contoso.com
# Uses the native Windows DNS Client and NRPT pipeline:
Resolve-DnsName -Name wiki.corp.contoso.com
Get-DnsClientNrptPolicy
2. macOS: Scoped Resolvers, mDNSResponder, and the .local Curse
Apple approaches DNS differently. macOS has long abandoned the traditional Unix /etc/resolv.conf model for applications. Instead, macOS runs a centralized daemon called mDNSResponder, managed via the SystemConfiguration dynamic store.
Scoped vs. Unscoped Resolvers
When you inspect DNS on a Mac using scutil --dns, you do not see a single list of nameservers. You see multiple resolver blocks:
- Resolver #1 (Global/Unscoped): Associated with the default route interface (Wi-Fi). It processes any domain query that lacks a specific routing policy.
- Scoped Resolvers (Resolver #2, #3...): Injected by VPN clients or configured via
/etc/resolver/. These contain specificdomainentries and are marked withflags: Scoped.
resolver #1
nameserver[0] : 192.168.1.1
flags : Request A records
reach : 0x00000002 (Reachable)
resolver #2
domain : corp.internal
nameserver[0] : 10.10.10.53
if_index : 19 (utun3)
flags : Scoped, Request A records
reach : 0x00000002 (Reachable)
The failure occurs during search domain expansion:
- If you type
ssh devbox, macOS queries its global search domains. - If your VPN client pushed
corp.internalas a match domain (routing domain) insideSystemConfiguration(via Apple's NetworkExtension framework) but did not add it to the global search domain list,mDNSRespondernever expandsdevboxtodevbox.corp.internal. - Because
devboxhas no dot, macOS does not match it againstresolver #2(domain : corp.internal). - The unqualified query is fired exclusively at
resolver #1(your home router), which has no idea whatdevboxis.
The RFC 6762 Multicast Collision
A shocking number of corporate networks still use .local as their internal domain suffix.
On macOS, this is a death sentence for split tunneling. RFC 6762 reserves .local exclusively for Multicast DNS (Bonjour). When a user on macOS queries git.corp.local, mDNSResponder intercepts the query and broadcasts mDNS packets on the local physical Wi-Fi network. It refuses to dispatch unicast DNS queries over the VPN interface, regardless of your scoped resolver configurations or search paths.
3. Linux: systemd-resolved and the Tilde (~) Routing Syntax
On modern Linux distributions (Ubuntu, Fedora, Debian, Arch), DNS resolution is arbitrated by systemd-resolved. While systemd-resolved possesses arguably the cleanest routing syntax, it is also where third-party VPN client scripts fail most consistently.
The Difference Between Search and Routing Domains
In systemd-resolved, interface domains are configured using two fundamentally different modes:
Domains=corp.example.com(Search Domain): This serves double duty. It acts as a routing domain for any FQDN ending in.corp.example.com, AND it is appended to single-label queries.Domains=~corp.example.com(Routing Domain Only): The tilde (~) prefix designates a strict routing domain. Queries ending in.corp.example.comare steered exclusively to this interface, but the suffix is never appended to short hostnames.
# VPN script misconfiguration: routing only, no search expansion
sudo resolvectl domain tun0 "~corp.example.com"
If an OpenVPN or WireGuard connection script configures the VPN interface using the ~ prefix, typing ping server01 will fail. systemd-resolved refuses to append corp.example.com to server01.
Instead, server01 falls back to the default routing link—your physical interface holding the default route (~.). The query goes to your home router, which immediately returns NXDOMAIN.
+--------------------------------------------------------------+
| User types: "ping server01" |
+------------------------------+-------------------------------+
|
v
+--------------------------------------------------------------+
| systemd-resolved |
| Checks link tun0: Domains = "~corp.example.com" (Routing) |
| Decision: Cannot append "~" routing domain to short name! |
+------------------------------+-------------------------------+
|
v
+--------------------------------------------------------------+
| Query falls back to DefaultRoute link (wlan0 / "~.") |
| Sends "server01" -> Public Router (192.168.1.1) |
| Result: NXDOMAIN |
+--------------------------------------------------------------+
The NSSwitch and Glibc Disconnect
Another point of failure on Linux is how applications query the resolver.
Linux applications rely on the GNU C Library (glibc) function getaddrinfo(). How glibc behaves is governed by /etc/nsswitch.conf.
Modern systems should have:
hosts: files resolve [!UNAVAIL=return] dns
This tells glibc to talk directly to systemd-resolved over D-Bus via the nss-resolve module.
However, if /etc/nsswitch.conf is configured with legacy settings:
hosts: files dns
Applications bypass the D-Bus interface and query the local stub listener at 127.0.0.53 via static /etc/resolv.conf. If /etc/resolv.conf was overwritten by an old resolvconf script or lacks proper search directives (limited by standard resolv.conf to a maximum of 6 search domains and 256 characters), split-tunnel resolution silently breaks.
Furthermore, systemd-resolved implements aggressive negative response caching. If an initial query hits your home router and returns NXDOMAIN, systemd-resolved caches that negative record locally. Even if you subsequently fix your routing tables or type the full FQDN, the OS will continue serving NXDOMAIN until the cache TTL expires or you run resolvectl flush-caches.
Architectural Comparison Across OS Resolvers
The table below contrasts how each major operating system handles split-tunnel DNS routing and search domain evaluation:
| Operating System | Split-DNS Subsystem | Primary Mechanism for Steering | Why Short Names Fail | Best Diagnostic Command |
|---|---|---|---|---|
| Windows | DNS Client & NRPT | Name Resolution Policy Table rules (Add-DnsClientNrptRule) | SMHNR races all adapters; short names fail if suffix list omits VPN suffix | Resolve-DnsName <host> |
| macOS | mDNSResponder | Scoped Resolvers in SystemConfiguration (/etc/resolver/) | VPN pushed scoped match domain without global search domain; .local collisions | dscacheutil -q host -a name <host> |
| Linux | systemd-resolved | Per-link routing domains via resolvectl domain <iface> | VPN script used ~ (route-only) without search domain; legacy nsswitch.conf | resolvectl query <host> |
How to Fix It: Practical Remediation
At 365Finds, we advocate addressing this problem at both the endpoint configuration level and the corporate architecture level.
1. Endpoint Fixes by Operating System
For Windows:
- Disable SMHNR if home networks hijack queries:
Open Local Group Policy Editor (
gpedit.msc) and navigate to:Computer Configuration -> Administrative Templates -> Network -> DNS ClientEnable the policy: Turn off smart multi-homed name resolution. (Alternatively, setDisableSmartNameResolution = 1inHKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters). - Ensure the VPN adapter injects the suffix into the Search List:
Do not rely solely on the connection-specific suffix. Deploy the suffix list via Intune or Group Policy (
DNS Suffix Search List).
For macOS:
- Inspect resolver mappings:
Run
scutil --dnsand verify whether your corporate search domain appears underresolver #1search list or possesses an explicit scoped resolver. - Manually configure scoped routing if the VPN client is buggy:
Create a dedicated domain resolver file:
sudo mkdir -p /etc/resolver sudo tee /etc/resolver/corp.internal <<EOF nameserver 10.10.10.53 search corp.internal EOF sudo killall -HUP mDNSResponder
For Linux:
- Audit per-link domains:
Run
resolvectl statusto inspect your tunnel interface (tun0,wg0). - Assign both search and routing roles to the tunnel:
# Sets corp.internal as both a search domain AND a routing domain: sudo resolvectl domain tun0 corp.internal # Ensure DNS server is mapped to the interface: sudo resolvectl dns tun0 10.10.10.53 # Clear poisoned negative cache: sudo resolvectl flush-caches
The Long-Term Engineering Solution: Deprecate Single-Label Hostnames
While tweaking operating system resolvers solves immediate user tickets, relying on single-label hostnames over split tunnels is fundamentally fragile.
Every major operating system is moving toward stricter DNS encapsulation, DNS-over-HTTPS (DoH), and Zero Trust Network Access (ZTNA). In these environments, implicit search suffix expansion across multiple heterogenous interfaces is inherently ambiguous and vulnerable to DNS interception.
365Finds recommends two architectural mandates for enterprise infrastructure:
- Enforce FQDNs Everywhere: Update internal links, documentation, bookmarks, internal certificates, and scripts to use fully qualified domain names (
wiki.corp.company.cominstead ofwiki). - Abandon Reserved and Non-Delegated TLDs: Do not use
.local,.corp, or bare.internalwithout proper enterprise planning. Use a sub-zone of a publicly registered domain owned by the enterprise (e.g.,corp.company.com). Because the domain structure is globally unique, NRPT, macOS scoped resolvers, andsystemd-resolvedcan cleanly match the namespace without relying on heuristic suffix expansion.