Now, instead of running a full blown DNS server on my machine, which is overkill and more work to edit and maintain, I would make manual adjustments to my /etc/hosts file.For those not familiar with the /etc/hosts file, it allows you to add entries that traditionally your computer will look up first before trying your server DNS.
All in all, it is a very handle little file that I use a great deal.
Even windows has their own hosts file that works well.
However, everything else on OS X Lion, including all of your Applications, do it backwards!
This wasn’t the case in Tiger, Leopard, or Snow Leopard.
I haven’t been able to figure out the difference between Lion installs that work correctly, and those that don’t.
So if you are have the following problems, the suggestions below will work to fix it.
)The only solution we have, that I could find, is to use your own DNS Server locally on your own machine. Now, the problem with this solution is that it isn’t nearly as quick and easy to manage DNS entries. It is a lightweight DNS server that is easy to configure.
However, it had one key feature we needed: it will read the /etc/hosts file and serve it’s entries.
Update: I was still having problems with using .local for my development sites.
After some extensive debugging and research I’ve found out some interesting things.
But I found using Chrome’s & Fire Fox’s developer tools that it was taking 5 seconds for the DNS lookup, and 0.01 seconds for the rest.