Before you begin
You will need:
Administrative privileges on the computer you are using to browse the web.
Access to the system's command-line interface (Command Prompt on Windows or Terminal on macOS).
Clear the DNS Cache on Windows
To clear the DNS cache on a Windows computer, you must use the Command Prompt.
Click the Start button or press the Windows Key.
Type
cmdinto the search box.Right-click Command Prompt and select Run as administrator.
In the Command Prompt window, type the following command and press Enter:
ipconfig /flushdns
The system will display a message confirming that the DNS Resolver Cache was successfully flushed.
Clear the DNS Cache on macOS
To clear the DNS cache on a Mac, you must use the Terminal.
Press Command + Space to open Spotlight Search.
Type
Terminaland press Enter to open the Terminal application.Type the following command and press Enter:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
If prompted, enter your Mac's administrator password and press Enter. (Note: The cursor will not move while you type the password).
Confirm the result
After running the appropriate command for your operating system, the local cache is cleared. To verify the result:
Open a web browser and navigate to the website that was previously failing to load.
If the site loads correctly, the local DNS cache was successfully cleared.
If the website still does not load
If clearing the DNS cache does not resolve the issue, the problem may lie elsewhere.
Browser Cache: Your web browser may still be holding onto old data. Clear your browser's cache and cookies.
ISP Caching: Your Internet Service Provider (ISP) may have a cached record. This usually resolves automatically over time.
DNS Settings: Your computer may be configured to use a specific DNS provider that is experiencing issues.
Limitations
Clearing the DNS cache is a local action. It only affects the specific computer you are performing the action on; it does not change any settings on the web server or for other users.
