how to add entry in host file in macos code example Example: edit hosts file mac terminal sudo nano /etc/hosts