I'm web-developer and I need local domains. Before 10.7.2 update, I'm just fix /etc/hosts as I need, but new update crash this solution. How fix this new "feature"?
Local Domain Setup – How to Set Up a Local Domain like local.test
developmenthostsNetwork
Related Question
- Apache works, 127.0.0.1 is accessible, but http://localhost/ is not
- 10.8.2 DNS in hosts lookup slow
- MacOS – Why does Yosemite Safari never time out trying to go to *.local
- Mac Not Using Local DNS for .local – Network Troubleshooting
- macOS DNS – Why Domain Name Resolution is Slow in Sierra
- Hostfile not working for subdomain
- Catalina cannot resolve servers in the .local domain without the domain being specified
Best Answer
This answer on the question Lion “hosts” File Bug is relevant here as well.
All additional entries to the HOSTS file must be above the:
Make sure there is at least one line break after the last entry. Like so:
Although you probably can't tell, there is another line following the # symbol. One more thing to mention, using Space instead of Tab between 127.0.0.1 and localhost might help too.