DNS Leak Checker

How to Fix DNS Leaks on Mac

macOS can leak DNS queries even when connected to a VPN. Use our DNS Leak Checker to test, then follow these steps to fix it.

Is your connection leaking right now?Run the free DNS, IP and WebRTC leak test. It takes about 3 seconds.Run the leak test →

Step 1: Change DNS Servers in System Settings

Open System Settings → Network → select your active connection → Details → DNS. Remove existing servers and add:

Step 2: Flush DNS Cache

Open Terminal and run:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Step 3: Use a VPN with DNS Leak Protection

NordVPN's macOS app overrides your system DNS settings and routes all queries through encrypted servers. It also includes a kill switch to prevent leaks if the connection drops.

Step 4: Verify

Return to our DNS Leak Checker and confirm your Mac is leak-free.

Stop leaks for good

A VPN with private DNS on every server, a kill switch and WebRTC protection closes every leak this site tests for.

Get NordVPN →

30-day money-back guarantee · We may earn a commission