go to host file code example Example 1: window host file c:\Windows\System32\Drivers\etc\hosts Example 2: edit hosts file mac terminal sudo nano /etc/hosts