Step 1: Change DNS Servers in System Settings
Open System Settings → Network → select your active connection → Details → DNS. Remove existing servers and add:
- Cloudflare: 1.1.1.1 / 1.0.0.1
- Google: 8.8.8.8 / 8.8.4.4
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.