File host /etc/host seems not working in Mac OSX Lion 10.7
Posted in Uncategorized on October 17th, 2011 by admin – Be the first to commentSometimes, you need to override a dns public entry with a custom one.
Of course, you’ll modify the hosts file.
In Mac OS X, like in *nix operating system, it’s located in /etc/hosts and you can edit it using root permissions.
But, in osx lion 10.7, your system will use the network DNS, then the hosts file.
All you need to do, is to install a local DNS server – DNSMasq using MacPort, then add 127.0.0.1 as a DNS server and move it to first in network configuration panel.
As soon as possible I’ll post the steps necessary to get it working.
