how to access etc/hosts os x code example Example: view host entires mac terminal sudo nano /etc/hosts