How to clear DNS cache in windows?.


Have you ever migrated your website to a new server and updated the DNS but couldn't access to your new site for several days?. The reason may be your local DNS cache.

DNS cache is simply a table of domain names and corresponding IP addresses, maintained by the operating system for faster name resolution.


However DNS entry change take 24-48 hours to update globally. But if you still cannot see the new site after 48 hours you may have to clear your local DNS cache to get new updates from the DNS server.

Using following CMD command you can clear the DNS cache of your windows computer.

ipconfig /flushdns


1 comment:

  1. You can also use a PoweShell cmdlet: Clear-DNSClientCache. This cmdlet clears the client cache, similar to ipconfig /flushdns.

    ReplyDelete