Clear Windows DNS Cache

Home -> Windows

221001 views

From the computer of: davak (394 recipes)
Created: Nov 27, 2003     Updated: Feb 06, 2007


0 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Command to reset, flush or clear your DNS cache.

XP remembers negative (DNS unable to resolve) entries for a few minutes. Often this can be a pain when moving and debugging sites. As long as that negative entry sits in your DNS cache, your box will continue to give you a cannot find server error. By cleaning out your DNS cache, you can fix this problem.

Rebooting will flush your cache... but there is an easier way.

Drop to a command box and type:

ipconfig /flushdns


Vista requires special directions for flushing the vista dns cache.

If you wish to stop XP from placing negative entries into cache, you can make this change in your registry.

1. Goto HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ Dnscache\Parameters
2. Build a new DWORD value called NegativeCacheTime and give it a value of 0

I believe the default time is 5 minutes. I always use zero for my default time, but I think the value above is in seconds. So if you only want to save them for 1 minute, then I am assuming you would change that value to 60.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Vista DNS Cache: Flush, Clear, or Reset
  Thumbs.db: Prevent Windows from Creating the Thumbnail Cache
  IE: User Can No Longer View Source in Internet Explorer
  Repair Network Connection in Windows XP
  WMP 10: Clear Recent History and File List in Windows Media Player
  Vista: How to Clear Reports from Parental Controls
  Clear Page File At Reboot or Shutdown
  XP and Vista: Display entries in Windows DNS cache
  IE6: Images Will Save Only as a Bitmap (*.bmp)
  Download DRM-free Files or Remove DRM From iTMS / iTunes

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.