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.