add an IP to hosts file macos code example Example: view host entires mac terminal sudo nano /etc/hosts