I recently was trying to figure out a network latency issue when I came upon this other issue. It seems that Mamp Pro has an issue in how it writes to the /etc/hosts file causing this DNS latency issue.
|
1 2 3 4 5 6 7 8 9 10 |
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 127.0.0.1 site1.local 127.0.0.1 site2.local 127.0.0.1 site3.local 127.0.0.1 site4.local 127.0.0.1 site5.local |
The issue is that it creates a separate line for each of the hosts and the more you have the worse it gets. You can space delimit them and put them all on the same line but Mamp will overwrite them on the next Apache start… Ugh.
So the quick solution that worked for me was to tab-delimit the vhosts for the ::1 entry
|
1 2 3 4 5 6 7 8 9 10 |
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost site1.local site2.local site3.local site4.local site5.local fe80::1%lo0 localhost 127.0.0.1 site1.local 127.0.0.1 site2.local 127.0.0.1 site3.local 127.0.0.1 site4.local 127.0.0.1 site5.local |
There ya go… Big up to my buddy Adam Lutz with his insights into this issue.

