Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


October 23, 2002

How can I view and clear my DNS cache content?

RSS
Subscribe to Windows IT Pro | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. When a Windows XP or Windows 2000 machine queries a DNS server, the response is either positive (a match was found) or negative (no match was found). The OS stores these results in a local DNS cache so that local clients don't repeatedly query the DNS server for the same address. These DNS cache entries are known as DNS resource records, and the DNS resolver always checks the local cache before it queries the DNS server.

To view the current DNS resolver cache content and the entries preloaded from the Hosts file, go to the command prompt and type

C:\> ipconfig /displaydns

Each entry shows the remaining Time to Live (TTL) in seconds. To clear the cache, go to the command prompt and type

C:\> ipconfig /flushdns

Flushing the DNS cache clears all entries and reloads the entries from the Hosts file.

End of Article



Reader Comments
Thanks!

Stefan May 10, 2003


I did that and my cache was still there and some of the address are wrong so I cannot get to those sites. what do I do if the /flushdns dosn't work?

Chad Reeves October 13, 2003


I did that (several times) and my cache was still there and some of the address are wrong so I cannot get to those sites. what do I do if the /flushdns dosn't work?



Anonymous User October 27, 2004


check your hosts file. when the DNS cache is purged it doen't change the values in the hosts file (%systemroot%\system32\drivers\etc\hosts)

Anonymous User December 28, 2004


What happens when I get no response from the /flushdns command?

Anonymous User January 10, 2005


I can not clear my DNS cache. I am trying to install SBC Yahoo DSL. I have tried /flushdns several times and I get an error stating that it was unable to clear it.... Also I get this error message when I try to install the DSL Yahoo browser; /-Close

rachel41578 January 21, 2005


For those having trouble, go into Services (right click My Computer -> Manage -> Services and Applications -> Services ->) and make sure your "DNS Client" is enabled (either manual or automatic) and started.

-destian

Anonymous User May 29, 2005 (Article Rating: )


This was more helpful than sbc dsl I have called them 5 times trying to get it to clear destian was right on the problem

Anonymous User August 01, 2005 (Article Rating: )


i cannot clear my DNS cache. gives me an error.
my DNS client is set to automatic and running.
ipconfig /flushdns does not work.
-what do i do with the host file mentioned above?
-nick


Anonymous User September 07, 2005 (Article Rating: )


I you can´t flush your DNS cache, try disabling Norton internet security. If it works, then delete that crappy piece of software and get a better firewall such as Sygate.

jabba2cool February 28, 2006 (Article Rating: )


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Getting your iPhone to Sync with Exchange 2003

Follow these steps to use an iPhone with Exchange. ...


Windows OSs Whitepapers Protecting Microsoft SharePoint

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement