Originally published: 2025-10-29
Technical update: 22 October 2026. If a website opens on an old server, identify which DNS or cache layer is responsible first. One command should not be presented as clearing every DNS cache on every macOS version.
Record the macOS version and active network service. Inspect its DNS settings; a VPN or managed profile may control resolution. Menus vary by version. Use the relevant Apple DNS settings guide.
The built-in dscacheutil tool works with the Directory Service cache. Inspect the installed manual first:
man dscacheutil
Its documented flush option is:
sudo dscacheutil -flushcache
Do not equate its scope with one browser’s DNS cache. Password characters may remain invisible in Terminal; never share the administrator password. Additional resolver steps must be checked for the macOS release. Do not randomly terminate services or disable security protections.
Reopen the browser and retest. Secure DNS, VPNs and application caches can use different paths. A local flush cannot permanently fix incorrect authoritative records. Comparing another network can narrow the scope.
Prepare TTL and rollback before hosting migration. Test the domain, certificate and application together on the new hosting environment. Clearing DNS caches does not move mailboxes or website files.