Home >> Tips & Tricks >> Clear DNS Cache on computers and servers

Clear DNS Cache on computers and servers

After you change your DNS Servers in your desktops or laptops or routers they might not get applied immediately until you restart the device. To get the DNS changes applied immediately clear DNS Cache.Also when you visit websites in internet the hostnames are cached for faster loading of pages. If the IP of address has changed and if your cache is not updated then you will notice Page 404 and in such situations flushing out DNS will resolve the issue

clear-dns-cache-1

Every Operating System has its own technqiue to clear dns cache. I will list out the technqiues that can be used for leading operating systems

Windows

1. Open a Command Window

2. Type the following command and press enter to clear dns cache ipconfig /flushdns

Linux

1. Open a Terminal Window

2. Type the following command and press enter sudo /etc/init.d/networking restart or  sudo /etc/init.d/nscd restart

Mac OSX 10.4 and below(TIGER)

1. Click Terminal Icon to open Terminal application

2. Type the following command and press enter lookupd -flushcache

Mac OSX 10.5 and 10.6(LEOPARDS)

1. Click Terminal Icon to open Terminal application

2. Type the following command and press enter dscacheutil -flushcache

Mac OSX 10.7 and 10.8(LIONS)

1. Click Terminal Icon to open Terminal application

2. Type the following command and press enter sudo killall -HUP mDNSResponder

If any of  the above commands fail to execute make sure the user id you have logged in has administrative privileges. The above commands need to be executed with administrator privileges.If you are aware of other techniques to flush DNS leave them in comments section.

email

About Jayashree J

I am Jayashree Software Engineer, had a brief stint in software industry.I blog about Technology,How To Guides,Social Media,Tips & Tricks,Product Reviews (Mobile Apps, Desktop Apps),Website Reviews,Latest Trends.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge