Skip to content

Instantly share code, notes, and snippets.

@pawel-jedruch-miquido
Created July 19, 2017 07:41
Show Gist options
  • Select an option

  • Save pawel-jedruch-miquido/ca102edc3e31434d0dd2452fe86a27a1 to your computer and use it in GitHub Desktop.

Select an option

Save pawel-jedruch-miquido/ca102edc3e31434d0dd2452fe86a27a1 to your computer and use it in GitHub Desktop.
Fix OS X issue with localhost DNS Lookup (/etc/hosts)
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