Clear the DNS cache on your Computer or Mac

Table of Contents

In this article we will show you how to clear the DNS cache on different devices. These include windows 7/10, Mac OS X, Linux and Google Chrome. Devices usually store DNS cache to make your website run faster, When changing your website or changing domain settings your DNS cache can affect you from accessing the correct site. 

To clear the DNS please follow the steps below for your correct operating system

WINDOWS 7/10

To clear the DNS cache on Microsoft Windows, follow these steps:

  1. Open a CMD (Command Prompt) window By Clicking start or the windows key on your keyboard, Type CMD then press Enter.
  2. When the CMD (command prompt) window is open, type the following “ipconfig /flushdns” and then press Enter
  3. Your DNS cache is now clear.

MAC OS X 

How to clear the DNS cache on Apple Mac OS X:

  1. Open Finder, Applications, click on Utilities, then double-click Terminal. You can also do this by opening launchpad and typing in terminal.
  2. When the terminal window is open please type the following commands listed below that relates to your operating system:

    OS X Yosemite and later

    sudo killall -HUP mDNSResponder
    

    then

    sudo discoveryutil mdnsflushcache
    

    OS X Mavericks, Mountain Lion, and Lion

    sudo killall -HUP mDNSResponder
  3. The DNS cache is now clear.

LINUX 

Most Linux distributions do not use DNS caching at the operating system level the application uses its own internal cache. To reset an applications DNS Cache close the application, wait a few seconds then re-open it. If this doesn’t work restart your Linux device.

 

GOOGLE CHROME BROWSER

Google Chrome keeps its own internal DNS cache. Follow these steps:

  1. Open Google Chrome.
  2. In the address bar (where it displays the website adress), type “chrome://net-internals/#dns”.
  3. Click Clear host cache.
  4. You can either click “Sockets” in the Left, Side menu or type in the address bar, type “chrome://net-internals/#sockets”.
  5. Click “Close idle sockets”.
  6. Click “Flush socket pools”.
  7. The DNS Cache is now clear

 

Need FREE Website Hosting?

CONORBRADLEY.CO.UK

Slider
Next How to Force HTTP or HTTPS using .htaccess and WP-Config