OS X DNS Lookups Too Slow for Local Hosts
I have several local hosts set up on my dev OS X machine. The browser hangs for several seconds while trying to load them. Which doesn’t make any sense, since they are local.
The solution is to change the
/etc/hosts file so that all hosts are on one line, the very first line where localhost is defined.
In other words, change from this…
1 2 3 4 5 6 7
1 2 3 4
It still doesn’t make sense, but it works and that’s all that matters.
Answer from Stack Overflow