Last Updated: February 25, 2016
· jbrooksuk

Speeding Up Local DNS Queries in OSX

If you’re running OSX Lion or above and develop locally using the built in Apache application, then you may notice that your sites take several seconds to load. If you didn’t know already, 10.7 introduced a… let’s call it a feature, in which it’ll first attempt to lookup the IPv6 address, before falling back to IPv4.

To fix this you simply need to add the IPv6 address to /etc/hosts. Give it a few seconds to propagate through your system, and you’ll have a speedy local development setup once again.      local.dev
fe80::1%lo0    local.dev
Say Thanks