This morning I was doing some work with one of my website transfer and to see the changes on my MacBook laptop I knew I would need to flush the DNS cache so I wouldn’t have to wait for the cache to expire.
So for anyone else who needs to know the commands here they are:
OS X <= 10.5.1 (Mac OSX versions 10.5.1 and before)
lookupd -flushcache
OS X >= 10.5.2 (Mac OSX Leopard)
dscacheutil -flushcache
In Linux, the nscd daemon manages the DNS cache. To flush the DNS cache, restart the nscd daemon.
To restart the nscd daemon, use the command
/etc/rc.d/init.d/nscd restart
In Microsoft Windows, you can use the command to flush the DNS resolver cache:
C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
You can also use the command to view the DNS resolver cache.
ipconfig /displaydns
Hope that will help anyone out there who needs to flush their dns cache.