I can never remember the path to the hosts file on my MacBook Pro. So, here it is:

sudo nano /private/etc/hosts