Flush DNS (website-IP) Cache data

by rajesh 2007-06-01 21:12:35

Most DNS clients cache the results of name resolution requests.
When ever you type for a domain name, the ip address where the domain is hosted is resolved and the data is stored in the local machines cache and also in some of the DNS servers in the route.

This is done to speed us data transmission. Every subsequent request will use the data in the cache to find the ip mapping. The data in the current local systems cache can be found using the following command

In Windows:
ipconfig /displaydns
displays DNS resolver cache.

Some times we might have changed the name server of a hosted website and the change will reflect in one machine while not in the other machine. This issue can be resolved by flushing or deleting the old data in the cache. This can be done using the following command

In Windows:
ipconfig /flushdns
deletes cache values.

In Mac:
lookupd -flushcache
flush the DNS resolver cache.

In Linux:
To flush the DNS cache, restart the nscd daemon using the command
`/etc/rc.d/init.d/nscd restart`

Tagged in:


You must LOGIN to add comments