PUBLICATION_DATE: 2021.12.05

Clear DNS Cache on macOS/Safari

DOMAIN: DevOps/Networking

« BACK TO NOTES

Clear your DNS cache when websites aren't loading correctly after DNS changes or when troubleshooting connectivity issues.

sudo killall -HUP mDNSResponder

This command restarts mDNSResponder, the macOS system service that handles DNS resolution. The change affects all applications system-wide, not just Safari.

After running the command, you may need to restart your browser to see changes take effect.