question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

localhost entries missing on OS X

See original GitHub issue

On OS X, the localhost definition at the top of /etc/hosts is a bit more verbose:

127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

In the generated hosts file, the broadcasthost (see this) and the second IPv6 are missing:

127.0.0.1 localhost
::1 localhost

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
StevenBlackcommented, Sep 16, 2016

This is fixed in commit ab12924 on Feb 19 2016.

Closing.

1reaction
lucianfcommented, Feb 19, 2016

See my comment on #87, I believe the correct approach is to leave the default OS config untouched, and only expand it further. If anything is to be changed leave it to the local admin; a tool shouldn’t be opinionated and change system configuration beyond its scope (which in this case is malware/ad blocking, and those entries above have zero to do with that).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my mac's host file missing the fe80::1%lo0 localhost ...
That entry which you claim is missing is not a standard line of the macOS /etc/hosts file. It should not be expected to...
Read more >
Hosts file missing on Mac OS X - Xcode Failing to compile code
You have broken your system by making inappropriate changes. First, you need to fix the permissions on /etc/sudoers.
Read more >
/private/etc/hosts file entries not funct… - Apple Community
/private/etc/hosts file entries not functioning as expected​​ After each command I cleared browser cache for each Safari, Firefox, and Chrome. ...
Read more >
OS X 10.10.1 /etc/hosts & /private/etc/hosts file is being ...
In order to fix the problem I was having, I had to ADD IPv6 style hosts file entries. It seems that Safari will...
Read more >
Messed Up Hosts? How to Restore the Original Default /etc ...
The Original, unmodified hosts file in Mac OS X is easy to restore if need ... Do not change this entry. ## 127.0.0.1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found