-
-
Save pawcik/6a93ed9c69b9847c81170b4dd8210d50 to your computer and use it in GitHub Desktop.
Fix OS X issue with localhost DNS Lookup (/etc/hosts)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hostname=$(scutil --get LocalHostName) | |
| #Add this line to /etc/hosts/ | |
| echo "127.0.0.1 localhost ${hostname}.local" >> /etc/hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment