Command flushdns in Windows 7 or Windows 8
How to flush dns in windows 7 or windows 8?
In all OS(operating systems) dns data is cached which is provided by DNS server (IP Address /DNS details), this is required to increase the dns lookup for the subsequent request to the same domain/hostname. In some cases you will see error page or invalid host page for a given host. This can be because the dns details cached at your computer is not valid anymore. So in that case you need to clear dns cache. There are commands available in each OS. These command clears the cache and then next time dns client will get the latest data from dns server.(when the next request triggers)
Command flush dns cache data in windows 7 –
Here are the steps you can follow for flushing dns-
- Press windows key + R to get “Run command” window (or goto start menu and click on ‘Run..’)
- Type ‘cmd’ and click OK
- Now you will see command window
- Type ‘ipconfig /flushdns’ and press enter key
you will see ‘Successfully flushed the DNS Resolver Cache’
To flush dns cache data in windows 8 –
- It is same as above but the only difference is you need to run the ‘command prompt’ by pressing the windows key and typing cmd.
- Make sure you run the cmd.exe in administration mode – “run as adminstrator” (this option you have to select by right clicking the command prompt)
- Then you will see screen as shown above.
- Type the same command – ipconfig /flushdns
- You will see the success message ‘Successfully flushed the DNS Resolver Cache’
It is also advised that you close your all the browser before you flush dns as this will clear browser in-memory dns cache as well.
Please let us know if you are still facing issue, Write down in comments, we will try to solve your windows related problems. Please share this blog on facebook.