Knowledge Base

How to clear your local DNS Cache

In this guide we’ll explain how to clear your DNS cache on your local computer or device.

DNS is a bit like the global phone book for the internet. It tells a computer or server where to find a domain name. It effectively translates a domain name to an IP address.
Each time you visit a website your computer or device will “cache” (save) the DNS entry into a file so that it doesn’t perform a lookup each time you visit the domain. The benefit of this is quicker loading times and less resources required than if your computer were to perform a DNS lookup for a domain every time you visited a website. The downside is that if a part of a DNS zone changes for a website that you have recently visited, you may be temporarily connecting to the old record!

This is quite common when updating the Nameservers or individual records of a domain.

Thankfully there are ways to force your computer to lookup the new or updated records of a domain name!

Windows

  1. Open Command Prompt as Administrator – Press Windows Key + R and type in the word “cmd” and press enter.
  2. Type in the following command
    ipconfig /flushdns
  3. You should see “Successfully flushed the DNS Resolver Cache

Mac OS X

Open a Terminal Window – Click Applications, click Utilities, and then click Terminal

  • OS X Yosemite v10.10.4 or later, type the following command:
    sudo killall -HUP mDNSResponder
  • OS X Yosemite v10.10 through v10.10.3, type the following command:
    sudo discoveryutil mdnsflushcache
  • OS X Mavericks, Mountain Lion, and Lion, type the following command:
    sudo killall -HUP mDNSResponder
  • OS X Snow Leopard, type the following command:
    sudo dscacheutil -flushcache

Google Chrome

Google Chrome also maintains its own internal DNS Cache. Steps below to clear it.

  1. Open up Google Chrome and paste the following line into the address bar and hit enter.
    chrome://net-internals/#dns
  2. Click Clear host cache
  3. In the address bar again, paste the following line and hit enter.
    chrome://net-internals/#sockets
    4.Click Close idle sockets, and then click Flush socket pools.

That should be it!

If you are still having issues accessing your website you can use the following website to check the current records.
http://leafdns.com/

Alternatively feel free to contact our support team.

Please rate this article to help us improve our Knowledge Base.

0 0