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


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.