Author:
Sara Rhodes
Date Of Creation:
17 February 2021
Update Date:
1 July 2024
Content
In this article, you will learn how to clear the DNS cache, which is a collection of addresses of recently visited sites. Clearing the DNS cache often fixes "Page not found" and other DNS issues.
Steps
Method 1 of 2: On Windows
- 1 Open the start menu . To do this, click on the Windows logo in the lower left corner of the screen or press the key ⊞ Win.
- 2 Enter the phrase in the Start menu command line. After that, a search for the "Command Prompt" program will be launched on the computer.
- 3 Click on Command Prompt . This will be the first icon at the top of the Start menu. Click on this icon to open the Command Prompt program.
- 4 Enter ipconfig / flushdns and press ↵ Enterto clear the computer's DNS cache.
- 5 Restart your browser. Now you will be able to connect to the previously blocked page.
Method 2 of 2: On a Mac
- Launch Spotlight 1 ... The program icon is in the upper right corner of the screen. 2
- You can also open Spotlight with a keyboard shortcut ⌘ Command+Space
sudo killall -HUP mDNSResponder; say DNS cache has been flushed
and press ⏎ Return. This will run the flush DNS command.
- Terminal does not display keystrokes while typing, but records them.
Tips
- On Windows, you can disable DNS caching for a while. To do this, open Command Prompt and type stop dnscache. This will stop DNS caching until the next computer restart.
- If you want to clear the DNS cache of a mobile device, the best way to do this is by a hard restart, which involves turning the phone or tablet off and on with the power button.
Warnings
- After flushing the DNS cache, the first load of the site will be slower than usual.