title: ping localhosts, edit /etc/network/hosts
body: <p>I want to succesfully <strong>ping some hostnames</strong>. These <strong>hostnames have the same IP, 127.0.0.1</strong></p>
  
  <p>So i edited <strong>/etc/network/hosts</strong>:</p>
  
  <pre><code>127.0.0.1 host1 
  127.0.0.1 host2 
  127.0.0.1 host3
  127.0.0.1 host4
  127.0.0.1 host5 
  127.0.0.1 host6
  127.0.0.1 host7 
  127.0.0.1 host8 
  127.0.0.1 host9
  </code></pre>
  
  <p>My <strong>/etc/network/interfaces</strong> file was:</p>
  
  <pre><code>auto lo
  iface lo inet loopback
  </code></pre>
  
  <p>Then i added this:</p>
  
  <pre><code>iface eth0 inet static
   address 127.0.0.1
   network 127.0.0.0
   netmask 255.255.255.0
   broadcast 127.0.0.255
  </code></pre>
  
  <p>But when i try to do:</p>
  
  <pre><code>ping host1
  </code></pre>
  
  <p><em><strong>it doesn't work</em></strong>, even with other hostnames in /etc/network/hosts</p>