Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow
There's another issue 10.7.* to 10.8.4 for sites ending in .local which causes five second lookups. Details and solution courtesy Bram Van Damme’s blog post found here.
“By default, any hostname ending in
.localis treated as a Bonjour host rather than by querying the DNS server entries in Network preferences.”“To fix this problem (without having to rename each vhost) you need to add IPv6 entries for each of your vhosts in your
/etc/hostsfile:”
::1 mysite.local
fe80::1%lo0 mysite.local
127.0.0.1 mysite.local