AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

i365Finds Editorial is the independent research and editorial organization behind 365 Wiki. We follow changes in tools, products, services, entertainment, and digital life around the world, turning scattered and fast-moving information into clearly sourced, well-structured public content that is easier to understand and compare.
Indexed 93,528 Wiki articles

How Split-Tunneling DNS Leaks Happen When Corporate VPNs Meet Personal Browsing

Thiago Viana · 365Finds Editorial

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:

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:

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:

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:

Leak VectorTrigger ConditionPrimary Risk Exposure
Windows SMHNRParallel multi-homed resolution on Windows 10/11Personal URLs logged on corporate DNS; corporate internal names leaked to home ISP
Unscoped macOS ResolversMissing per-domain scoped rules or POSIX getaddrinfo bypassCorporate search domain lookups exposed over local Wi-Fi
Linux systemd-resolved Default LinkMissing ~ routing domain prefix on VPN interfaceQueries broadcast across links during fallback
Browser DNS-over-HTTPSBrowser-level DoH enabled independently of OS settingsInternal 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.

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:

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)

  1. Press Win + R, enter gpedit.msc, and press Enter.
  2. Navigate to: Computer Configuration > Administrative Templates > Network > DNS Client
  3. Locate Turn off smart multi-homed name resolution.
  4. Set the policy to Enabled (this activates the restriction and disables the multi-homed broadcasting behavior).
  5. 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:

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:

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