Adding hosts to /etc/hosts on Leopard/Snow Leopard

Posted: 2010-10-31

Adding hosts to /etc/hosts on Leopard/Snow Leopard is a little simpler than earlier versions (see [node:168])

  • Edit /private/etc/hosts1
  • Run dscacheutil -flushcache

  1. Since /etc is symlinked from /private/etc /private/etc/hosts is the same file as /etc/hosts