Open Terminal and enter the following command (make sure you have administrative rights)
sudo killall -HUP mDNSResponder
dscacheutil -flushcache
lookupd -flushcache