MacOS: Split DNS Not Working as Intended with VPN Profile

Abstract: Resolve macOS split DNS failures with VPNs by flushing caches and restarting mDNSResponder using scutil to verify routing.

Created: 2026-08-03 by

Split DNS failures on macOS often stem from stale resolver caches or misconfigured routing tables rather than VPN profile errors. You can diagnose the active configuration by running scutil --dns in Terminal to inspect domain-specific rules and search paths. To resolve persistent issues, flush the system cache using dscacheutil and restart the mDNSResponder service, which forces the operating system to re-evaluate your network interfaces and apply the correct split-horizon routing.

Understanding Split DNS Behavior on macOS

Split DNS, also known as split-horizon DNS, allows a single device to use different name servers for different domains. When connected to a corporate VPN, your Mac should route internal queries (like intranet.company.com) through the VPN tunnel while sending public queries (like google.com) through your local Wi-Fi or Ethernet connection. This setup is critical for security and performance, ensuring that internal resources are not exposed to the public internet and that latency is minimized for external traffic. However, macOS does not always handle these transitions seamlessly. When you disconnect from a VPN, the system may retain residual DNS routes. Conversely, when connecting, it might fail to prioritize the VPN’s DNS server over the local router’s default server. This results in either inability to reach internal sites or unintended exposure of internal names to external resolvers. The root cause is typically how the kernel manages the routing table associated with network service identifiers, rather than a fundamental flaw in the VPN client itself.

Diagnosing the Issue with scutil

Before applying fixes, you must verify the current state of your DNS configuration. The primary tool for this is the scutil utility, which provides detailed insights into the system configuration database. Open Terminal and execute the following command:
scutil --dns
This output is verbose but contains crucial information. Look for the "domain" section. Here, you will see entries like .local or specific company suffixes. Next to each domain, check the "nameserver" column. If your VPN is supposed to handle .corp domains, there should be an entry mapping that domain to the IP address provided by your VPN gateway. If this mapping is missing, or if the nameserver points to your local ISP’s DNS instead of the VPN server, split DNS is not configured correctly in the runtime environment. You should also check the "options" section. Ensure that search lists do not contain conflicting entries that might cause the resolver to attempt resolution via the wrong interface first. If the VPN profile is pushing these settings but they are not appearing here, the issue lies in the persistence of the configuration across reboots or network changes.

Clearing Stale Caches and Restarting Services

Even with correct configurations, macOS relies on several caching daemons that can hold onto outdated information. The most common culprit is the directory service cache managed by dscacheutil. To clear this cache, run the following command in Terminal:
sudo dscacheutil -flushcache
This command forces the system to discard cached DNS records. However, this alone is often insufficient because the multicast DNS responder (mDNSResponder) maintains its own independent cache and state machine. mDNSResponder handles both mDNS (for local zero-configuration networking) and standard DNS resolution logic. If it has cached a negative response or an incorrect route for a domain, it will continue to serve that data until its internal timer expires or it is manually restarted. To restart mDNSResponder, you need to kill the process, allowing the system launch daemon to automatically respawn it with a clean state. Use the following commands:
sudo killall mDNSResponder
sudo killall mDNSResponderHelper
sudo killall DiscoveryService
After executing these commands, wait a few seconds for the services to restart. Then, reconnect to your VPN. The system will now query the DNS servers fresh, and the scutil --dns output should reflect the correct routing for your split DNS domains.

Verifying the Fix

Once the services have restarted and the VPN is reconnected, verify the fix by checking the DNS configuration again. Run scutil --dns and confirm that the relevant domains are mapped to the VPN’s nameservers. You can also test resolution by using nslookup or dig for an internal hostname. It should return the internal IP address. If it returns a public IP or times out, the split DNS rule is still not being applied correctly, and you may need to review the VPN profile’s push settings or contact your network administrator. For users experiencing similar lookup delays on newer macOS versions, such as Sequoia, refer to our guide on resolving split DNS lookup issues specifically tailored for recent updates. Additionally, if you are managing multiple network interfaces, ensure that no other services are interfering with your primary network configuration.

Frequently Asked Questions

Why does my internal website load slowly after connecting to the VPN?

Slow loading often indicates that the DNS query is initially sent to the local resolver before falling back to the VPN server. This happens because the local cache or routing table prioritizes the non-VPN path. Flushing the cache with dscacheutil and restarting mDNSResponder usually resolves this latency by forcing a fresh lookup against the correct, low-latency VPN nameserver.

Can I manually edit the DNS configuration files to fix split DNS?

While you can modify files in /etc/resolv.conf or /etc/hosts, these changes are often overwritten by network management profiles or DHCP leases. Using scutil to view the active configuration is safer, and relying on the VPN client to push the correct settings is the standard approach. Manual edits should only be used as a temporary diagnostic step, not a permanent solution.

What if scutil --dns shows no domains at all?

If the domain list is empty, your system may not have any active DNS search domains configured, or the network service is in a disconnected state. Ensure that your VPN connection is fully established and that the VPN profile includes "Use Default Gateway" and "Send All Traffic" options if required. Sometimes, toggling Airplane mode or disabling/enabling Wi-Fi can reset the network stack enough to populate these fields.

Does restarting mDNSResponder affect Bluetooth or AirDrop?

Restarting mDNSResponder briefly interrupts mDNS-based services like AirDrop and Bluetooth file sharing, as these rely on multicast DNS for device discovery. However, these services typically reconnect within seconds. Your regular internet browsing and VPN connectivity are unaffected by this restart, as they use unicast DNS resolution handled by the same daemon.

How do I prevent split DNS issues after a reboot?

Prevention involves ensuring that your VPN client is set to "Connect On Demand" or automatically reconnects upon login. Additionally, avoid manually configuring static DNS settings on your network adapter unless necessary. Let the DHCP and VPN profiles manage the DNS assignments. If issues persist, consider creating a script that runs dscacheutil -flushcache and restarts mDNSResponder upon VPN connection events.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More