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
Personal website of Dejan Simic, a Ruby On Rails developer working for Less Everything
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
And another related bash tip: if you want to see /etc/hosts contents just type @ and then tab
Cool tip, thanks!
Any thoughts?