How to flush your DNS cache properly?

Clearing DNS Cache

So, you might be here because you asked the search engine one of these or similar questions:

  1. How to flush my DNS?
  2. Why is the older version of my website loading on some devices after updating its domain’s DNS records?
  3. Why ipconfig /flushdns is not working or not clearing the DNS cache?

I will answer these questions one by one below:

  1. If you are using Windows 10, then to flush the DNS you need to follow these steps:
      1. Open an elevated command prompt.
      2. Type this:
        ipconfig /flushdns
      3. If the command is executed successfully, then you will see this:
        Windows IP configuration successfully flushed the DNS Resolver Cache.
  2. The older version of your website is loading in some browsers or devices. The reason behind this is the caching at different levels in a network.For this, you need to understand the basics of how the Internet works? I will explain it below briefly:
    When you request a website say www.wrangle.in, your browser will send a request for corresponding IP address to the local network. If the local network doesn’t have the IP then it will send the same request to the WAN network (which is your ISP). Now when WAN doesn’t have it, it will send a request to the other top-level nameservers and rest of the Internet. When an IP is found, it will be sent to the browser and then the browser will download website files from that IP address.So at all these levels, at LAN, WAN etc., the DNS is cached to avoid network overhead. This decrease the requests sent to various levels and hence increasing the performance. So when you changed your domain’s DNS, at some level they are cached. And until this cache expires, you will see the old website.To solve this you can try and reset your DNS cache. This I explained in answer to the first question above.
  3. But sometimes after trying this command, again and again, the result stays the same. To solve this, make sure you close all the browsers and the applications that are using the Internet. Now, disconnect from the Internet. And then open an elevated command prompt and execute:
    ipconfig /flushdns

    Now, you can try open your website, and it should open its newer version.

Leave a Reply

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