2016-08-18

I am trying to resolve localhost which right now is "not found"

if I ping localhost - I am getting

I have made sure that the /etc/hosts file has the below entries that are necessary to have the resolution for localhost -

However, when I ping 127.0.0.1 it is successful -

In doubts of this getting blocked by my antivirus - I have also disabled my "web root secure anywhere" anti-virus... and it did not solve anything.

Also, I have noticed that when I restarted my machine - for the first few mins the ping localhost worked and stopped working after few mins. not sure how to track what stopped it from working.

Based on the answer at DNS not resolving on Mac OS X - tried "dig @8.8.8.8 localhost" only to find that there was no "answer" section at all.

As requested, the output for "ls -le@ /etc/hosts" -

Show more