How to Clean DNS: 5 Steps (with Pictures)

Table of contents:

How to Clean DNS: 5 Steps (with Pictures)
How to Clean DNS: 5 Steps (with Pictures)

Video: How to Clean DNS: 5 Steps (with Pictures)

Video: How to Clean DNS: 5 Steps (with Pictures)
Video: How to Setup VPN Connection in 5 Minutes 2024, May
Anonim

This wikiHow teaches you how to clear or empty your computer's DNS cache, which is a collection of addresses for recently visited websites. Cleaning the DNS cache usually resolves "Page Not Found" errors or other DNS-related errors.

Step

Method 1 of 2: For Windows

1160292 1
1160292 1

Step 1. Open the “Start” menu

Windowsstart
Windowsstart

You can open it by clicking the Windows logo in the lower-left corner of the screen, or pressing Win.

1160292 2
1160292 2

Step 2. Type command prompt into the “Start” menu

After that, the computer will search for the Command Prompt program.

1160292 3
1160292 3

Step 3. Click

Windowscmd1
Windowscmd1

"Command Prompt".

The program icon will appear in the top row of search results, at the top of the “Start” window. Once clicked, the Command Prompt program will be opened.

1160292 4
1160292 4

Step 4. Type ipconfig /flushdns and press Enter key

After that, the DNS cache on the computer will be emptied immediately.

1160292 5
1160292 5

Step 5. Restart the web browser

Now you can connect to pages that were previously locked or inaccessible due to DNS errors.

Method 2 of 2: For Mac

Open"

Step 1. Spotlight

Step 2.

Macspotlight
Macspotlight

. Its icon appears in the upper-right corner of the screen.

Step 3.

1160292 6
1160292 6

You can also press the Command+Space key combination to open Spotlight

  • Type in the terminal into Spotlight. After that, the computer will search for the Terminal program.

    1160292 7
    1160292 7
  • Click the "Terminal" option

    Macterminal
    Macterminal

    . This option will appear in the top row of Spotlight search results.

    1160292 8
    1160292 8
  • Type the following code into the Terminal window:

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

    and press the Return key.

    After that, the DNS clearing command will be executed.

    1160292 9
    1160292 9
  • Enter your Mac's computer password if prompted. This password is the password used to log into the computer. After that, the DNS clearing process is complete.

    1160292 10
    1160292 10

    The terminal will not display the characters you type, but they will be recorded by the program

  • Restart the web browser. You should now be able to connect to pages that were previously locked or inaccessible due to DNS errors.

    1160292 11
    1160292 11
  • Tips

    • On Windows, you can temporarily disable DNS cache storage by opening the Command Prompt program and typing the command “ net stop dnscache ” in the program window. The DNS cache storage will be stopped until you restart the computer.
    • If you want to clear the DNS cache on your mobile device, the most effective way to do that is to do a hard reset. To perform a hard reset, turn off your phone or tablet and turn the device back on using the power button.

    Recommended: