As someone who does web development the ability to manually set domain name to ip address resolution on my local machine is extremely important and for some reason Apple decided with the release of 10.10 aka Yosemite that reading the Hosts file found at /etc/hosts was no longer important. This change caused some major problems for me and I literally spent half the day digging around trying to find the solution. Every blog post I encountered on the issue all ended with “has anyone found the solution for this yet?”
So heres the solution to the problem.
- Launch Terminal.app from /Applications/Utilities
- Enter the following commands:
sudo pico /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
- Near the top of the file you will see the following lines
- Delete them both.
- ctrl+w to exit and save.
- start up the mDNS Responder with the following command:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
- Flush your dns cache with the following command
- You should be all set at this point.