How to flush and reset DNS cache?

First of all, let us get a clear idea of what exactly is DNS Cache.

The DNS in DNS cache stands for Domain Name System.

A DNS cache is also known as a DNS Resolver Cache. So every time you go to a Website that uses its Domain name, for example, amazon.com what happens is that The browser you are using will be directed to a server. This is a DNS server and what happens is that It saves the IP address of that particular website you are using. After that only is it possible for you to have an access to the website. Then you will be directed towards the website. DNS cache is nothing but a Database. It is a temporary database. This is done to maintain the operating system of your computer. It is important as this is what records all the websites that you have visited recently on your device as well as the websites you have attempted to visit as well as the other internet domains. Also as this saves your visit, the next time you try to visit the same site again, the access you get to the site is much more quickly, so it saves you some time. These records of these visits are what DNS resolver cache actually is.

How To Clear The DNS Cache

It is also possible for you to check your own records, so you can easily view this data.

If you ever feel the need actually to go over the DNS cache then here is how to do it.

Go to the command prompt on your device and then type the following

C:\> ipconfig /displaydns

That is it, quite simply, isn’t it?

The importance of DNS cache.

The DNS is important as it is what will maintain the list of all public websites and the IP addresses. The DNS cache is like a phone or address book as it maintains all the records. Just like we maintain our contact list on our cell phones so that we do not have to remember any phone numbers, similarly, the DNS cache is what memorises the IP address of these websites.  This acts as a phone book, so it is the way to communicate with websites.

How does DNS cache work?

Each and every time that you type the URL that is, for example, www.wikipedia.com then the browser that you are using will need the router for your IP address. This router should have a Domain Name System Server address saved. It will ask for, hence, a DNS server for Hostname’s IP address.

What happens here is that the DNS server is able to understand what exactly you are actually looking for through the specific IP address that belongs to the site you are looking for.

How to flush and reset DNS cache?

This is the process which is mandatory and is repeated every single time that you visit a website. When the site’s URL and the name are typed, and you search for it, it was to be converted into the IP address.

Having to each time go through a process is slightly still on the time-wasting side even if it is not taking too long. So having a backup of the record speeds up the process. Especially if you have a busy schedule and you work on your device a lot, then time is important.

The DNS cache stored in your device will handle the name resolution of all those websites that you might have recently visited. This will be done even before the request will be sent to the internet.

It is also good to know that DNS cache is at each and every hierarchy of the browsing process. This will help actually to load a website on your device.

The computer will reach your router. This will then be what will contact your ISP that is the Internet Service Provider. Before actually reaching the root DNS servers, it might hit some other ISP as well.

Basically, each and every process that is a part of the browsing or using the internet process will contain the process of saving cache as it is an important part of this process.

Here are a few methods for different versions of the windows through which you can flush and reset the DNS cache.

These methods will help you be able to remove the cache successfully.

How to flush and reset DNS cache for Windows 8

  1. To be able to open the WinX menu you will have first to turn your computer on and log in. Then, on the keyboard of your device, you have to press the keys Win and X together. The WinX menu is now open.
  2. Now, you need to the right click the Command prompt, and you will have to run it as administrator.
  3. The following command has to be run, as given below,

ipconfig /flushdns

  1. Once this command you entered is a success, then you will see that the following message will be visible.

Windows IP configuration successfully flushed the DNS Resolver Cache.

So, the DNS cache is successfully in this way is out of your system of the device.

How to flush and reset DNS cache for Windows 7

  1. First turn your computer on and log in..
  2. Now, click on the Start.
  3. In this start/ windows menu there is a search box, so in this search box enter the following written below,

cmd

  1. Now, you need to the right click the Command prompt, and you will have to run it as administrator.
  2. The following command has to be run, as given below,

ipconfig /flushdns

  1. Once this command you entered is a success, then you will see that the following message will be visible.

Windows IP configuration successfully flushed the DNS Resolver Cache.

So, the DNS cache is successfully in this way is out of your system of the device.

How to flush and reset DNS cache for Windows XP®, 2000, or Vista®

  1. First turn your computer on and log in..
  2. Now, click on the Start.
  3. In the start menu, you will see a command that is the “Run” command.  If you cannot find the command, then you can simply type the following the search option of the menu that is

RUN

  1. The following command has to be run, as given below,

ipconfig /flushdns

  1. Once this command you entered is a success, then you will see that the following message will be visible.

Windows IP configuration successfully flushed the DNS Resolver Cache.

So, the DNS cache is successfully in this way is out of your system of the device.

Even if the above processes were quite simple and similar, that is because they were all for windows and windows systems.

Now we will see some of Apple devices, so let us get started.

How to flush and reset DNS cache for MacOS® 10.10.4 and above

  1. Turn your mac device on and then click on the Applications.
  2. Go to the Utility option.
  3. Now, go to the Terminal
  4. You will have to run the following command next, to be able to get rid of the cache successfully.

sudo killall -HUP mDNSResponder

When the commands here are successful there will be no return out from your device visible, so you can simply go to view the cache and check if it is empty or not.

Note that to be able to flush and reset the cache you will need to know the computer’s administrator account password.

How to flush and reset DNS cache for MacOS 10.10.1, 10.10.2, and 10.10.3

  1. Turn your mac device on and then click on the Applications.
  2. Go to the Utility option.
  3. Now, go to the Terminal
  4. You will have to run the following command next, to be able to get rid of the cache successfully.

sudo discoveryutil mdnsflushcache

When the commands here are successful there will be no return out from your device visible, so you can simply go to view the cache and check if it is empty or not.

Note that to be able to flush and reset the cache you will need to know the computer’s administrator account password.

How to flush and reset DNS cache for MacOS 10.7, 10.8, and 10.9

  1. Turn your mac device on and then click on the Applications.
  2. Go to the Utility option.
  3. Now, go to the Terminal option, so double click on it.
  4. You will have to run the following command next, to be able to get rid of the cache successfully.

sudo killall -HUP mDNSResponder

When the commands here are successful there will be no return out from your device visible, so you can simply go to view the cache and check if it is empty or not.

Note that to be able to flush and reset the cache you will need to know the computer’s administrator account password.

How to flush and reset DNS cache for MacOS 10.5 and 10.6

  1. Turn your mac device on and then click on the Applications.
  2. Go to the Utility option.
  3. Now, go to the Terminal option, so double click on it.
  4. You will have to run the following command next, to be able to get rid of the cache successfully.

sudo dscacheutil -flushcache

When the commands here are successful there will be no return out from your device visible, so you can simply go to view the cache and check if it is empty or not.

Note that to be able to flush and reset the cache you will need to know the computer’s administrator account password

Over to you:

That is it; this is what DNS cache is and how it is flushed and reset. Which method do you find the easiest? Do let us know in the comments section 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: