11.27.06

Local hosts File & Mac OS X

Posted in web dev, mac/os x at 1:33 pm by Clinton

So you need a local host file entry in Mac OS X eh? It’s

/etc/hosts

However you’ll need to sudo to change this (say sudo nano /etc/hosts).

So you change the hosts file, and save it, but you see no change in behaviour … unless … you flush the name lookup cache of lookupd. How do we do that?

lookupd -flushcache

This might help others.. but it’s mainly to reminder me in future. :)

Leave a Comment