Posted By

davej on 09/11/10


Tagged

DNS localhost hosts dscacheutil


Versions (?)

Redirecting DNS by editing /etc/hosts on Mac OS X


 / Published in: Bash
 

  1. # /etc/hosts
  2. 127.0.0.1 local.domain
  3. 123.123.123.123 www.domain.com
  4.  
  5. # In the Mac OS X terminal type:
  6. dscacheutil -flushcache

Report this snippet  

You need to login to post a comment.