Most of the times simply clearing out your cache on your internet browser may do the trick but when you can’t fix the problem by clearing your history and cookies use this command to manually clear your DNS on you Mac.
To do this to manually clear out your DNS on a Mac open your termainal and :
sudo killall -HUP mDNSResponder; say dns cleared successfully
Now shutdown and restart your computer and you DNS should be cleared