mac os force terminal to pick up hosts file changes code example Example: edit hosts file mac terminal sudo nano /etc/hosts