Clearing your local DNS cache is a straightforward step that helps website owners and managers resolve common site access or security issues.
Anytime you update your domain, change your website’s server, or experience unexpected errors or security certificate warnings, clearing your local DNS cache can help troubleshoot the problem quickly.
It is also recommended as part of routine website maintenance, especially after moving to new hosting or making server-side changes with your hosting with Tresseo.
How to Clear Local DNS Cache on Different Devices
Clearing Your DNS Cache on a Windows PC
To clear your local DNS cache on a Windows computer, follow these steps:
- Click the Start menu and type “cmd” in the search box.
- Right-click “Command Prompt” and choose “Run as administrator.”
- Type the command
ipconfig /flushdns
and press Enter. - You will see a message: “Successfully flushed the DNS Resolver Cache.”
This process wipes the old address list, forcing your computer to look up fresh information the next time you visit a website. This is like resetting your shortcut list to make sure it points to the correct place.
Clearing DNS Cache on macOS
If you use a Mac, the process is also simple but uses the Terminal app:
- Open Finder, then go to Applications > Utilities > Terminal.
- Type
sudo killall -HUP mDNSResponder
and press Enter. - Enter your Mac password when prompted.
You may not see a confirmation message, but your DNS cache is now cleared. This ensures your computer will fetch up-to-date site addresses the next time you browse.
How to Clear DNS Cache on Mobile Phones
Android Devices
On Android, you can clear your DNS cache by restarting your phone. For a more direct method:
- Open Chrome and go to
chrome://net-internals/#dns
. - Tap “Clear host cache.”
iPhones and iPads (iOS)
On iOS devices, restarting your phone usually works. If you use Safari, clearing your browser history can also help:
- Go to Settings > Safari.
- Tap “Clear History and Website Data.”
While mobile operating systems manage DNS cache differently, these steps help force your device to retrieve the latest website info.
What to Do If You Still Have Problems
If clearing your local DNS cache doesn’t fix your issue, the problem may be related to your web host’s DNS or global DNS propagation. It may take some time for updates to spread across the internet. At Tresseo, we recommend allowing some time after big changes and contacting your hosting support if problems continue.
Clearing your local DNS cache is a simple, effective troubleshooting tool for every website manager. With these easy steps, you help keep your site accessible and your visitors happy.