rors.org

Personal website of Dejan Simic, a Ruby On Rails developer working for Less Everything

Editing /etc/hosts on Mac OS

I almost killed my macbook until I figured this out. In Linux there’s no need for this, but on Mac OS, after editing /etc/hosts in order to immediately apply changes you must run this:

lookupd -flushcache
  • Daniel Cadenas on 2009-10-07

    And another related bash tip: if you want to see /etc/hosts contents just type @ and then tab

  • Dejan Simic on 2009-10-11

    Cool tip, thanks!

Any thoughts?



Fork me on GitHub