Hello guys,
Maybe you have notice that sometimes your network has trouble at reaching some or many websites.
An example of these is the common “404” error . This may be due to a corrupt local DNS cache.
I will show you some ways to clear your local DNS cache on some Operating Systems.
- On GNU-linux / unix distros, we have to mention that there are many ways of DNS flushing, it depends on the OS. Flush nscd DNS cache: nscd is able to speed up consecutive access to the same data dramatically and increase overall system performance. So lets restart nscd.
$ sudo /etc/init.d/nscd restart
OR
# service nscd restart
OR
# service nscd reload
OR
nscd -i hosts (Clear local DNS cache for current user)
nscd -I hosts (Clear local DNS cache for all users)
- Mac OS X
10.5.2 and above (application -> utilities -> terminal)
sudo killall -HUP mDNSResponder
(To run this command, you will need to know the computer’s Admin account password.)
10.5.1 and below
sudo dscacheutil -flushcache
- Windows 8: (Press Win+X to open the WinX Menu then Right-click on Command Prompt and select Run as Administrator)
ipconfig /flushdns
- Windows Vista / Windows 7: (Right-click on Command Prompt and choose Run as Administrator)
ipconfig /flushdns
- Windows XP: (command prompt line, CMD
ipconfig /flushdns
Have a nice day.