How to flush DNS

Author: Sara Rhodes
Date Of Creation: 17 February 2021
Update Date: 1 July 2024
Anonim
Flush DNS Cache on your Computer
Video: Flush DNS Cache on your Computer

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. 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. 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. 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. 4 Enter ipconfig / flushdns and press ↵ Enterto clear the computer's DNS cache.
  5. 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
  • Enter terminalto start searching for the Terminal program.
  • Click on Terminal ... This will be the first option at the top of the Spotlight search results.
  • Enter the following code into Terminal:

    sudo killall -HUP mDNSResponder; say DNS cache has been flushed


    and press ⏎ Return. This will run the flush DNS command.
  • Enter your computer password, if required. This is the login password. This completes the DNS flush process.
    • Terminal does not display keystrokes while typing, but records them.
  • Restart your browser. You will now be able to connect to the previously blocked page.
  • 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.