I'm running MAMP on OS X 10.7. I've set up a virtual host in Apache, like so:
<Directory "/sites/example.com/"> Allow From All AllowOverride All </Directory> <VirtualHost *:80> ServerName "example.local" ServerAlias "www.example.local" DocumentRoot "/sites/example.com" </VirtualHost>
In /etc/hosts I've added this:
Everything works fine, and up to maybe a week or two ago was very fast. I'm not sure what changed, but now the DNS Lookup portion of the request takes upwards of 5 seconds nearly every time the page is loaded, as reported by both Firebug and Chrome.
Pinging the local address looks good:
->ping example.local PING example.local (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.073 ms
Here's what Chrome shows:
If I refresh immediately after the first connection, the DNS lookup appears to be cached. But refreshing again a short time later causes the slow lookup again.
Any help would be appreciated!