DNS request are cached by your operating system to speed up lookups. If you need to clear DNS cache for some reason(like testing your blog in a new host), you need to know the correct commands to be entered in the command prompt / terminal. We had shared the command to clear DNS cache in Mac OS X, here is the simple command line shortcut to do it in Windows.
Flush DNS cache in Windows 7 and Vista
- Hit Windows key and type in cmd (do not hit enter).
- In the search results that come up, right click “cmd” and run as administrator. When the screen flashes and asks for permission, accept it.
- In the command prompt, type in ipconfig /flushdns (or right click and paste it to the command prompt) and hit return.
- You should see the confirmation as shown below:
Flush DNS cache in Windows XP
- Hit Windows+R to bring up the Run dialog box.
- Type cmd and hit ok.
- In the command prompt that comes up, enter ipconfig /flushdns and hit return.