Fix slow internet and DNS issues on your Mac
Find out what to do when web pages load slowly, DNS lookups fail, or your Mac struggles to maintain a stable network connection.
Step 1: Launch Terminal
Hold Command (⌘) + Space → enter Terminal and press Return
Step 2: Execute the Network Repair Script
Copy the command below into the Terminal window and hit Return
How this script works:
Flushes the local DNS cache to resolve stale or corrupted domain lookups
Resets network interface settings to clear misconfigured connection parameters
Optimizes DNS resolver configuration for faster and more reliable browsing
Why your Mac has network issues
macOS maintains a local DNS cache that maps domain names to IP addresses. Over time, this cache can become corrupted or filled with outdated entries, causing websites to load slowly or fail to resolve entirely. Network configuration files may also accumulate errors from switching between Wi-Fi networks, VPN connections, and different locations. These issues are invisible to the user but can dramatically affect browsing speed and connection stability.
What gets fixed
DNS cache — clears all cached domain lookups, forcing macOS to fetch fresh records from your DNS server
Network interfaces — resets Wi-Fi and Ethernet adapter configurations to their default optimal state
Routing table — removes stale routing entries that can cause traffic to take inefficient paths
mDNSResponder — restarts the macOS DNS resolver service to eliminate any hung or corrupted states
Firewall rules — resets application firewall settings that may be blocking legitimate network traffic
Is it safe?
Yes. The network repair script only clears temporary caches and resets configuration files that macOS regenerates automatically. Your saved Wi-Fi passwords, VPN configurations, and network preferences are preserved. After the script runs, your Mac will reconnect to your current network within seconds and rebuild its DNS cache as you browse.
How much improvement can I expect?
Most users notice an immediate improvement in page load times and DNS resolution speed. Websites that previously timed out or loaded partially should work correctly again. The improvement is especially dramatic if you frequently switch between networks, use VPN services, or haven't restarted your Mac in a long time.
Tips to keep your Mac network healthy
Run the network repair script whenever you notice slow page loads or DNS resolution failures
Consider using a reliable public DNS provider such as 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google) for faster lookups
Restart your Mac and router periodically to clear accumulated network state
Check for bandwidth-heavy background processes in Activity Monitor → Network tab
Keep macOS updated — Apple regularly includes networking fixes and performance improvements in system updates
Published Date: March 9, 2026