We have to flush the DNS cache for any reason, this article explains how one can follow simples steps to clear the DNS catch on any windows operating system.
There is a simple way you can clear the DNS cache, one of the functions of the DNS resolver stores the websites name and IP addresses that you have visited recently from your local machine, the DNS cache is stored on the local machine, it will be used again when you visit some web page again, the same web site will be must faster than earlier. When there is a need to clear the DNS cache there is a command ipconfig /flush clears the DNS cache, this article explains it with examples.
Flush DNS cache
Below command clears all the local DNS cache entries on the machine, these command is being used by network engineer for their daily host record updates to reflect correctly.
Ipconfig /flushdns C:\Users\Raj>ipconfig /flushdns Windows IP Configuration Successfully flushed the DNS Resolver Cache.
if you run the same command what you will get on the screen.
C:\Users\Raj>ipconfig /displaydns Windows IP Configuration Could not display the DNS Resolver Cache.
Note: sometimes new IP changes and the DNS resolution takes much time to reflect the new IP one has to wait for sync.
How to display DNS cache entries
Ipconfig /displaydns
docs.microsoft.com ---------------------------------------- Record Name . . . . . : docs.microsoft.com Record Type . . . . . : 5 Time To Live . . . . : 1 Data Length . . . . . : 8 Section . . . . . . . : Answer CNAME Record . . . . : docs.microsoft.com-c.edgekey.net Record Name . . . . . : docs.microsoft.com-c.edgekey.net.globalredir.akadns.net Record Type . . . . . : 5 Time To Live . . . . : 1 Data Length . . . . . : 8 Section . . . . . . . : Answer CNAME Record . . . . : e13630.dscb.akamaiedge.net Record Name . . . . . : e13630.dscb.akamaiedge.net Record Type . . . . . : 1 Time To Live . . . . : 1 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 104.79.103.1 www.youtube.com ---------------------------------------- Record Name . . . . . : www.youtube.com Record Type . . . . . : 5 Time To Live . . . . : 253 Data Length . . . . . : 8 Section . . . . . . . : Answer CNAME Record . . . . : youtube-ui.l.google.com Record Name . . . . . : youtube-ui.l.google.com Record Type . . . . . : 1 Time To Live . . . . : 253 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 172.217.163.206
Thank you for reading this article, if you have any questions please let us know.
Thank you for visiting my site, for any scripts in these articles you are testing please make sure you have tested this script in our lower environment before you run in production.
Leave a Reply Cancel reply