Type the following into the terminal:

sudo killall -HUP mDNSResponder