Table of contents:

How to clear the DNS cache and what it is for
How to clear the DNS cache and what it is for
Anonim

If you are having problems displaying sites, try this method.

How to clear the DNS cache and what it is for
How to clear the DNS cache and what it is for

The DNS cache contains the IP addresses of the sites you have visited. It is needed so that when you visit the page again, it loads faster. If the site is displayed incorrectly or does not load, then the problem may lie in outdated DNS cache data on your computer. Fortunately, this is easy to fix.

Windows

  1. Press Win + R.
  2. In the menu that opens, write cmd.
How to clear the DNS cache, and what it is for
How to clear the DNS cache, and what it is for
  1. When Command Prompt starts, enter

    ipconfig / flushdns

  2. and press Enter.
  3. After that, you should see "DNS resolver cache cleared successfully".
How to clear the DNS cache, and what it is for
How to clear the DNS cache, and what it is for

OS X

In Apple's operating system, all commands are entered in the Terminal. The easiest way to get there is through Spotlight: click on the search icon in the upper right corner.

How to clear the DNS cache, and what it is for
How to clear the DNS cache, and what it is for

You can find it in another way: open Finder โ†’ Applications โ†’ Utilities โ†’ Terminal.

How to clear the DNS cache, and what it is for
How to clear the DNS cache, and what it is for

Now you need to specify the command. It depends on what version of the operating system you have.

How to clear the DNS cache, and what it is for
How to clear the DNS cache, and what it is for
  • High Sierra:

    sudo killall -HUP mDNSResponder; sleep 2; echo macOS DNS Cache Reset

  • ;
  • El Capitan:

    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • ;
  • Yosemite:

    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • ;
  • Mavericks:

    dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • ;
  • Lion & Mountain Lion:

    sudo killall -HUP mDNSResponder

  • ;
  • Leopard:

    dscacheutil -flushcache

  • ;
  • Tiger:

    lookupd -flushcache

  • .

After that, it remains to enter the password and wait for the inscription macOS DNS Cache Reset.

Recommended: