So, you might be here because you asked the search engine one of these or similar questions:
- How to flush my DNS?
- Why is the older version of my website loading on some devices after updating its domain’s DNS records?
- Why ipconfig /flushdns is not working or not clearing the DNS cache?
I will answer these questions one by one below:
- If you are using Windows 10, then to flush the DNS you need to follow these steps:
- Open an elevated command prompt.
- Type this:
- If the command is executed successfully, then you will see this:
Windows IP configuration successfully flushed the DNS Resolver Cache.
- 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.
- 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:
Now, you can try open your website, and it should open its newer version.