Split tunneling sounds like the perfect compromise for remote work. You flip a switch in your corporate VPN client, and suddenly your work traffic routes to the office intranet while your personal web browsing, music streaming, and gaming flow straight through your home ISP. No sluggish video calls, no corporate firewall blocking your banking portal, and no IT department snooping on your weekend YouTube habits.
At 365Finds, we have examined dozens of enterprise VPN deployments, and the reality is far messier. The assumption that split tunneling cleanly separates your digital life into two parallel, isolated pipes is an architectural illusion.
IP traffic might follow the routing table, but DNS resolution plays by an entirely different set of rules. When your operating system attempts to translate domain names into IP addresses, it frequently leaks your personal browsing history straight to your employer's corporate DNS logs. Even more alarming for IT administrators, it can spray internal enterprise hostnames out to your local ISP and public resolvers.
Here is how cross-gateway DNS leaks actually occur under the hood, why modern operating systems actively encourage them, and what you can do to regain control over your traffic boundaries.
The Architectural Disconnect: IP Routing vs. Name Resolution
To understand why split tunneling fails at the DNS layer, you have to appreciate the fundamental disconnect between the IP routing engine and the OS resolver stub.
+-----------------------------------------------------------------------+
| User Host |
| |
| +---------------------+ +---------------------+ |
| | Physical Adapter | | VPN Virtual TUN | |
| | (e.g., Wi-Fi / Eth) | | (e.g., AnyConnect) | |
| | IP: 192.168.1.50 | | IP: 10.100.4.12 | |
| | DNS: 192.168.1.1 | | DNS: 10.100.0.10 | |
| +----------+----------+ +----------+----------+ |
| | | |
| v v |
| Local Gateway (ISP) Corporate Gateway |
+-------------+-------------------------------------------+-------------+
| |
| Operating System Resolver |
+<=========================================>+
Simultaneous Queries / Race Conditions
When your VPN client connects in split-tunnel mode, it typically inserts specific Classless Static Routes or subnet definitions into the kernel routing table. For instance, traffic destined for 10.0.0.0/8 or 172.16.0.0/12 is assigned to the virtual network adapter (TUN/TAP interface), while the default gateway (0.0.0.0/0) remains pointed at your local Wi-Fi router.
If you send raw TCP packets to 10.50.1.25, the kernel checks the destination IP, matches the corporate subnet route, and directs those packets down the encrypted tunnel. If you visit your local bank's IP, packets route via your home router. That part works reliably.
DNS, however, operates upstream of the IP routing decision. When you open a browser tab and type personal-healthcare-portal.com, the application does not yet possess an IP address. It must ask the operating system's resolver stub to turn that string into an IP.
At that exact moment, your machine is "multi-homed." It possesses at least two active network interfaces, each assigned its own DNS servers:
- The physical interface (Wi-Fi or Ethernet), which received DNS servers from your home router via DHCP (often your ISP or a public resolver like
1.1.1.1). - The virtual VPN interface, which received private corporate DNS servers (such as an internal Active Directory domain controller at
10.100.0.10).
How does the operating system decide which DNS server to query? This is where the leak occurs.
The Mechanisms: Why Operating Systems Leak Split DNS Queries
The leak is not a random glitch. It is the predictable outcome of features designed by operating system vendors to optimize lookup speed and captive portal detection.
1. Windows Smart Multi-Homed Name Resolution (SMHNR)
In Windows 8, Microsoft introduced Smart Multi-Homed Name Resolution, which remains active in Windows 10 and Windows 11.
Before SMHNR, Windows queried network adapters sequentially according to their binding order and interface metrics. If the primary adapter timed out, it tried the secondary adapter.
SMHNR changed this dynamic into an aggressive race. When an application requests name resolution, the Windows DNS client broadcasts the query simultaneously out of all connected network interfaces. Whichever DNS server returns a valid response first wins, and Windows accepts that result.
Consider what this means during split tunneling:
- Personal-to-Corporate Leak: You query
reddit.comor an employment job board. Windows fires the DNS request across both your home Wi-Fi and your corporate VPN tunnel. If the corporate DNS server responds faster than your local home router, your internal security operations center (SOC) now has an immutable record of your personal browsing in their DNS query logs. - Corporate-to-ISP Leak: You attempt to open an internal tool, such as
wiki.corp.internal. Windows blasts this query to your home router's DNS server as well as the corporate DNS. Because public DNS resolvers do not know private internal domains, your ISP's resolver receives the internal hostname. If the ISP employs NXDOMAIN redirection—hijacking nonexistent domain lookups to serve ISP ad search portals—the ISP server may return an advertising IP address before your corporate DNS can reply. Windows accepts the ad IP, breaking internal corporate connectivity.
2. macOS mDNSResponder and Scoped Resolver Misconfigurations
macOS handles DNS through mDNSResponder and dynamic store dictionaries managed by the SystemConfiguration framework rather than a static /etc/resolv.conf.
Under macOS, split DNS relies on scoped queries. A properly configured enterprise client creates domain-specific resolvers mapped via /etc/resolver/ or NEDNSSettings. For example, queries ending in .internal.company.com route to the corporate resolver, while all other queries route to the primary interface resolver.
However, leaks occur under two common conditions:
- Search Domain Spillover: If the corporate profile pushes internal search domains (e.g.,
company.com) to the system search list, entering single-label hostnames or unqualified subdomains prompts macOS to append the search domains across interfaces, often causing private lookups to escape onto the default Wi-Fi interface. - Third-Party Application Fallback: Some command-line utilities or non-native applications bypass Apple's high-level
CFHost/Network.frameworkresolution APIs and rely directly on standard POSIXgetaddrinfoimplementations that do not honor scoped resolver rules.
3. Linux systemd-resolved and Routing Domain Suffixes
Modern Linux distributions utilizing systemd-resolved handle multi-homed DNS through link-specific DNS configurations and routing domains.
Each network link can be assigned search domains and routing domains (prefixed with a tilde, such as ~corp.local). If an enterprise VPN script fails to configure link-specific routing domains or registers the corporate link without the ~ prefix, systemd-resolved may treat the corporate DNS as an opportunistic resolver for global queries.
Furthermore, if link metrics are poorly defined, systemd-resolved can enter fallback behavior, querying all configured links in parallel when an interface experiences transient latency.
4. The Browser Bypass: DNS-over-HTTPS (DoH)
Even if your operating system resolver is locked down, modern web browsers introduce their own split-tunneling hazard: DNS-over-HTTPS (DoH).
Browsers like Google Chrome, Mozilla Firefox, and Microsoft Edge now feature integrated secure DNS implementations. When DoH is enabled:
- The browser bypasses the operating system's native resolver stub completely.
- DNS queries are wrapped in encrypted HTTPS packets (TCP port 443) and sent directly to third-party public resolvers like Cloudflare, Google Public DNS, or NextDNS.
- Because these HTTPS queries are routed according to your standard IP routing table (default gateway via home ISP), all private corporate domains you attempt to browse in that browser leak out to public DoH providers, failing to resolve internal corporate services.
| Leak Vector | Trigger Condition | Primary Risk Exposure |
|---|---|---|
| Windows SMHNR | Parallel multi-homed resolution on Windows 10/11 | Personal URLs logged on corporate DNS; corporate internal names leaked to home ISP |
| Unscoped macOS Resolvers | Missing per-domain scoped rules or POSIX getaddrinfo bypass | Corporate search domain lookups exposed over local Wi-Fi |
| Linux systemd-resolved Default Link | Missing ~ routing domain prefix on VPN interface | Queries broadcast across links during fallback |
| Browser DNS-over-HTTPS | Browser-level DoH enabled independently of OS settings | Internal enterprise hostnames sent to public DoH resolvers over local ISP |
Step-by-Step Diagnostic Workflow: Catching DNS Leaks in Action
You cannot fix a leak until you verify where your queries are actually landing. At 365Finds, we rely on a systematic, multi-layered diagnostic approach.
+-------------------------------------------------------------------------+
| Diagnostic Workflow Matrix |
| |
| 1. Public Leak Tests ==> Check if corporate DNS sees your web |
| 2. CLI Resolver Inspection ==> Verify interface metrics & NRPT rules |
| 3. Packet Sniffing (UDP 53)==> Intercept queries live on Wi-Fi vs TUN |
+-------------------------------------------------------------------------+
Step 1: Run an External Resolver Leak Test
Open a browser while connected to your corporate split-tunnel VPN and visit a DNS leak detection platform like dnsleaktest.com or ipleak.net. Execute an extended test.
- Interpreting the output:
- If you only see your home ISP's DNS servers, your general web queries are successfully avoiding the corporate network.
- If you see your employer's corporate DNS servers, corporate proxy gateways, or enterprise security cloud IPs (like Zscaler or Cisco Umbrella) listed while you are running a personal browsing session, your personal browsing is leaking to the company.
Note the limitation: public leak tests only reveal where queries for public domains go. They do not tell you if internal corporate hostnames are leaking out to your local ISP. For that, you need command-line inspection and packet capture.
Step 2: Inspect Local Resolver Configuration
On Windows
Check whether the Name Resolution Policy Table (NRPT) is configured, and examine the active DNS servers on each interface:
# Check for active Name Resolution Policy Table rules
Get-DnsClientNrptPolicy
# Check DNS servers and interface metrics across all adapters
Get-DnsClientServerAddress
Get-NetIPInterface | Select-Object InterfaceAlias, InterfaceMetric, ConnectionState
If Get-DnsClientNrptPolicy returns empty results while you are on a split-tunnel corporate VPN, Windows is relying entirely on standard multi-homed resolution and SMHNR, making DNS leaks almost guaranteed.
On macOS
Check the active resolver architecture using scutil:
scutil --dns
Look closely at the output:
resolver #1is your primary global resolver.- Check if there are subsequent resolver blocks (
resolver #2,resolver #3) explicitly dedicated to your corporate domain suffix (e.g.,domain : corp.example.com). - Verify whether the
nameserverIPs assigned to those corporate blocks point exclusively to the VPN interface.
On Linux
Inspect the interface-specific status of systemd-resolved:
resolvectl status
Check the Link corresponding to your VPN tunnel (e.g., tun0 or wg0). Ensure that your corporate internal domain is listed under Current Scopes with a leading tilde (e.g., ~company.internal). If the VPN interface shows DNS Domain: . without a tilde restriction, it is competing as a default global resolver.
Step 3: Verify with Live Packet Captures
The only indisputable ground truth is packet analysis. Launch Wireshark or run tcpdump to intercept DNS traffic across your physical adapter while querying both internal and external domains.
Run the following capture on your physical Wi-Fi or Ethernet interface (replace en0 or eth0 with your physical adapter name):
sudo tcpdump -i en0 -n "udp port 53 or tcp port 53"
While running this capture, open a terminal and issue a lookup for an internal corporate domain:
nslookup payroll.corp.internal
If you see an outgoing query packet destined for your home router's IP (e.g., 192.168.1.1) containing payroll.corp.internal, your corporate network topology is leaking to your physical local area network.
How to Prevent Split-Tunneling DNS Leaks
Fixing split-tunnel DNS leaks requires alignment between enterprise endpoint policies and local client configurations.
1. Enterprise Remediation: Enforcing the Name Resolution Policy Table (NRPT)
For Windows-based enterprise fleets, the definitive solution is the Name Resolution Policy Table (NRPT). NRPT allows administrators to write strict rules dictating that queries matching corporate domain suffixes (such as *.corp.contoso.com) must exclusively query specified internal DNS server IPs across the VPN interface.
Administrators can push NRPT rules via Group Policy Object (GPO), Microsoft Intune (VPNv2 CSP), or direct PowerShell deployment:
# Add an NRPT rule directing *.corp.internal to corporate DNS 10.100.0.10
Add-DnsClientNrptRule -Namespace ".corp.internal" -Nameservers "10.100.0.10"
When an NRPT rule matches, Windows suppresses SMHNR for that query, eliminating both the parallel race and the ISP leak.
2. Client-Side Remediation: Disabling Windows SMHNR
If you are an individual power user or remote worker managing your own Windows endpoint, you can disable Smart Multi-Homed Name Resolution to stop Windows from racing DNS queries across all network interfaces.
Via Group Policy Editor (Windows Pro, Enterprise, Education)
- Press
Win + R, entergpedit.msc, and press Enter. - Navigate to:
Computer Configuration>Administrative Templates>Network>DNS Client - Locate Turn off smart multi-homed name resolution.
- Set the policy to Enabled (this activates the restriction and disables the multi-homed broadcasting behavior).
- Click Apply and reboot your system.
Via PowerShell / Windows Registry
Open PowerShell as Administrator and run:
# Disable Smart Multi-Homed Name Resolution
New-Item -Path "HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient" -Force | Out-Null
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient" -Name "DisableSmartNameResolution" -Value 1 -Type DWord
# Prevent parallel A and AAAA DNS queries
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" -Name "DisableParallelAandAAAA" -Value 1 -Type DWord
3. Vendor Client Hardening (Cisco Secure Client / Palo Alto GlobalProtect)
Enterprise VPN clients should be configured to prevent local resolver bypass:
- Cisco Secure Client (AnyConnect): Ensure that the headend group policy configures
split-dnsexplicitly, rather than relying solely onsplit-tunnel-policy tunnelspecified. If leaks persist, administrators can enabletunnel-all-dnsto route all DNS through the enterprise headend while leaving general IP traffic split. - Palo Alto GlobalProtect: Configure DNS Split Tunneling within the Network Settings profile, specifying internal domains under the domain list so GlobalProtect installs explicit interface filters at the network driver level.
4. Browser Isolation Strategy
To prevent personal web traffic from intermingling with corporate DNS lookups, we at 365Finds strongly advise against using a single browser profile for both work and personal tasks.
Instead, enforce a strict dual-browser architecture:
- Work Browser (e.g., Microsoft Edge or Corporate Chrome): Configure this browser to use system default DNS settings with DoH disabled (
Use secure DNStoggled off). This ensures the browser respects OS-level VPN routing rules and NRPT policies when accessing corporate resources. - Personal Browser (e.g., Mozilla Firefox or Brave): Enable DNS-over-HTTPS manually inside the browser settings, pointing it to an independent encrypted resolver (e.g., Cloudflare at
https://cloudflare-dns.com/dns-queryor Quad9). This forces all personal browsing lookups into an encrypted HTTPS tunnel that completely bypasses both your local physical adapter's plain UDP 53 stack and the corporate VPN virtual adapter.
The Trade-Off: Total Tunneling vs. Endpoint Privacy
At 365Finds, our testing leads us to an uncomfortable conclusion: achieving truly leak-proof split tunneling on a single operating system instance is an endless battle against native networking optimizations.
Every time Microsoft updates the Windows DNS stack, Apple modifies mDNSResponder, or a browser introduces a new background protocol (like HTTP/3 or Encrypted Client Hello), split-tunnel boundaries can buckle.
If your employer's compliance demands zero corporate domain leakage, the cleanest IT policy is often Full Tunneling (Tunnel-All), routing both DNS and IP traffic through corporate gateways. That solves the security problem for the enterprise, but it destroys the employee's privacy.
If your personal privacy matters while working remotely, the only bulletproof boundary is hardware isolation: keep corporate VPNs on a dedicated company-provided laptop, and leave personal browsing on your own personal computer. When that is not feasible, actively disabling SMHNR, enforcing strict NRPT domain mapping, and isolating browsers with independent DoH resolvers represents the most reliable defensive posture available today.
References
- Configure DNSSEC Rules Using the Name Resolution Policy Table (NRPT)
- VPN Name Resolution and the NRPT
- [MS-GPNRPT]: Group Policy Name Resolution Policy Table (NRPT) Data Extension
- Apple Developer: NEDNSSettings Documentation
- Cisco AnyConnect Split DNS Troubleshooting Guide
- systemd-resolved: Writing Network Configuration Managers and VPN Clients