Add ipv6 entries in /etc/hosts for MAMP hosts, avoid slow dns resolution.
It must be executed after each MAMP restart.
See http://stackoverflow.com/questions/6841421/mac-osx-lion-dns-lookup-order
Add ipv6 entries in /etc/hosts for MAMP hosts, avoid slow dns resolution.
It must be executed after each MAMP restart.
See http://stackoverflow.com/questions/6841421/mac-osx-lion-dns-lookup-order
#!/bin/sh | |
cp /etc/hosts /tmp/hosts | |
grep MAMP /etc/hosts | sed -e 's/127.0.0.1/::1/' >> /tmp/hosts | |
cp /tmp/hosts /etc/hosts |