How to clear Browser & Local DNS Cache on different Operating Systems

Browser Cache is always one of the long-running discussed topics. Most novice users need to know about it in simple steps. Before you continue to read this article, let me make it clear that some browsers also remove the chain user and passwords for daily visited websites. So attempt this task at your end with the info that some of your sync data will wash out if you still need to clear browser cache and local DNS cache.

How to clear the cache in Firefox, Internet Explorer, Edge, Safari, Opera and Chrome?

Firefox:

Click the hamburger menu on the top right -> Library -> History -> Clear Recent History. Choose the time range and the items you wish to clear and click Clear Now.

Chrome:

Click the three dots menu of the top right -> More Tools -> Clear Browsing Data. Select the items you want to delete, choose the period for which you want to delete them and click Clear Browsing Data.

Opera:

Press Ctrl+Shift+Del to open the Clear browsing data settings. Make sure Cached images and files is selected. Click Clear data.

Microsoft Edge:

Click the three dots button in the upper-right corner of the screen and select Settings from the drop-down menu. In the search field type “cache” and select Choose what to clear. Check the boxes labeled Browsing historyCookies and saved website dataCached data and files and click on Clear.

Internet Explorer 9, 10 and 11:

Go to Tools > Safety > Delete browsing history. Then uncheck the option for Preserve Favorites website data, tick the options for Temporary Internet Files and Cookies and click Delete.

After you clear the cache of your web browser you can additionally clear the local DNS cache of your computer:

What is DNS Cache

DNS reserve alludes to the brief stockpiling of data about past DNS queries on a machine’s OS or internet browser. Keeping a nearby duplicate of a DNS query permits your OS or program to rapidly recover it and subsequently, a site’s URL can be set out to its relating IP considerably more productively. The essential capacity of various store types is all pretty much the equivalent. Notwithstanding, in the event that you need a more thorough clarification of reserve, look at our store definition article.

DNS reserving doesn’t just happen at the OS and program level. Indeed, as referenced over, a DNS query includes different advances. During another DNS query, the query goes through the resolver, rootworker, and TLD worker. At each progression, data is assembled and reserved for some time in the future. In this manner, regardless of whether the neighbourhood DNS store is vacant, the resolver may have a reserved duplicate of the necessary data hence, keeping away from the need to go through the total DNS query measure.

dns-cache

Checking your DNS cache

You can check your working framework’s logs to see which DNS records are stored locally. The cycle for this will change contingent on which working framework you use nonetheless, we’ve laid out how to accomplish this on the two Windows and Mac.

  • Window – The process for viewing your DNS cache entries in Windows is pretty simple. Simply open your command prompt and enter the following command: ipconfig /displaydns.
  • Mac – The process for viewing your DNS cache entries on a Mac is a little different. You’ll need to first open the Console app, select your device from the left sidebar and enter: any:mdnsresponder into the search bar. Next, open your command line and enter the following command: sudo killall -INFO mDNSResponder. You should then be able to go back to your console app and see the list of cached DNS records. For example, the screenshot below shows a cached CNAME record for edge.skype.com.
mac console

Furthermore, you can likewise check your DNS store passages on specific programs. For instance, in case you’re utilizing Chrome, you can enter chrome://net-internals/#dns into your location bar, returning your program’s present rundown of stored DNS records.

How to clear the local DNS cache in Windows?

To flush your local DNS cache in Windows follow these easy steps:

Windows 7:

  • Open Start menu;
  • Click Run;
  • Type cmd and press enter;
  • In the Command Prompt type ipconfig /flushdns and press Enter.

Windows 810:

  • On your keyboard, press Win+X to open the WinX Menu;
  • Right-click Command Prompt and select Run as Administrator;
  • Run this command ipconfig /flushdns and press Enter

It is advisable to clear up your browser’s cache as well.

How to clear the local DNS cache in Linux?

Nowadays many Linux distributions do not utilize a local DNS resolver cache, like Windows and Mac OS X. If you do not know whether your distribution has such local DNS caching, it is recommended to check the official website of your Linux installation.

Here is how to flush the DNS cache in Linux:

  • Open your Terminal;
  • Restart the name service cache daemon by executing this command:

sudo /etc/init.d/nscd restart

There are some cases when the nscd daemon might not be installed. In Ubuntu (and other Debian-based distros) you can install it from your Terminal by executing this command:

sudo apt-get install nscd

For any RedHad-based distributions (such as Fedora, CentOS) you can install the nscd daemon through the yum package manager:

yum install nscd

How to clear the local DNS cache in Mac OS?

To flush your local DNS cache in Mac OS (up to El Capitan) use your Terminal:

  • Go to Applications > Utilities > Terminal
  • Type the following command and press Enter:
dscacheutil -flushcache
  • After that type the second command and press Enter:
sudo killall -HUP mDNSResponder

Write a Comment

Your email address will not be published. Required fields are marked *