Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a problem where a valid URL (without www.) is bringing up localhost when I ping on my Mac.

$ ping
PING localhost ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.052 ms

When I ping it works fine:

$ ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=49 time=54.084 ms

This is only happening from my Mac OSX 10.7.5. From other devices it seems to be accessing both fine.

Any help greatly appreciated.

share|improve this question
can you post your /etc/hosts on pastebin for example – mirkobrankovic Jul 3 '13 at 11:32
up vote 0 down vote accepted Is a valid website ... And probably you have created on you localhost ... And that is reason why you getting that results !

share|improve this answer
Thanks mirkobrankovic - was an entry in hosts file that was causing it. – Euan Jul 3 '13 at 11:55
@Euan no problem, glad to help :D – mirkobrankovic Jul 3 '13 at 12:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.