PDA

View Full Version : How to Flush Your DNS Resolver Cache



jakeh
July 14th, 2011, 01:53 AM
Sometimes you may need to flush your computer's DNS Resolver Cache. The DNS Resolver Cache within your operating system stores the location of Web sites you visit on the Internet. This is intended to improve browsing speed, but sometimes it needs to be cleared to ensure good performance (for example, if you recently moved your site to a new server). Instructions for flushing the DNS Resolver Cache on several operating systems are below.

Windows:


Open a command prompt.
- One way to do this is to open the Start Menu, click Run, type cmd, and press enter
- If your account is not an Administrator, you'll need to run the command prompt as Administrator. For example, if you're on Windows 7 you can open the Start Menu then type cmd in the search bar. Now you can right-click on the Command Prompt icon and choose 'Run As Administrator'
In the command prompt type the following and press enter:

ipconfig /flushdns


Mac OS X

Open up the Terminal application and enter the following command:

dscacheutil -flushcache

Linux

From the terminal, enter the following command at the prompt:

/etc/rc.d/init.d/nscd restart