title: ping: cannot resolve localhost: Unknown host OS X
body: <pre><code>127.0.0.1 localhost
  255.255.255.255 broadcasthost
  ::1 localhost 
  fe80::1%lo0 localhost
  </code></pre>
  
  <p>This is my /etc/hosts file but it's really strange failure to ping and cannot resolve <code>localhost</code>.</p>
  
  <p>It's work well like ping gonjay when I add </p>
  
  <pre><code>127.0.0.1 gonjay
  </code></pre>
  
  <p>to my hosts file.</p>