How to Flush DNS Cache in Apple Mac OSX Leopard
Many of you might not know that beside Microsoft Windows has DNS caching, Apple Mac OSX Leopard does too. In order to flush the cached DNS in your Apple Mac OSX Leopard and get the latest resolve value, you can do this in your Mac Terminal.
Flush Cached DNS
In your shell, type;
dscacheutil -flushcache
To see the caching statistic on your machine, type;
dscacheutil -statistics
This command doesn’t required sudo privilege cause it’s flush base on user’s cache statistic.
This doesn’t seem to actually work (the flush) for me. It seems like it should, and the manpage seems to imply it will, but I’ve got a bad IP address in my cache due to a bad /etc/hosts entry, and it’s still stuck there, even after removing, or correcting, it in the hosts file.
This doesn’t seem to actually work (the flush) for me. It seems like it should, and the manpage seems to imply it will, but I’ve got a bad IP address in my cache due to a bad /etc/hosts entry, and it’s still stuck there, even after removing, or correcting, it in the hosts file.
Another useful way of flushing the dns is by running “lookupd -flushcache” which should work on earlier versions of OS X.
Steps to flush DNS Cache for major operating systems and browsers like
Windows
MAC OS X
iOS
Linux
TV
Google Chrome Browser
For Webmasters/Developers/SysAdmin
You can follow that link https://dnschecker.org/flush-dns.php