Flush DNS (website-IP) Cache data
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
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
deletes cache values.
flush the DNS resolver cache.
To flush the DNS cache, restart the nscd daemon using the command