To clear the DNS cache on a Mac computer running the later version OSx
Open a Terminal window and paste in the following:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; say cache flushed
Then hit enter.
You will be asked for the password you use to login as an admin.