title: Why does java.net.UnknownHostException require changes to the hosts file?
body: <p>In regards to this question <a href="https://stackoverflow.com/questions/8562881/play-framework-guid">Play Framework GUID</a> why do I have to change my hosts file? I was having a similar issue while running a test in fedora which returned the following error</p>
  
  <pre><code>[error] (*:testListeners) java.net.UnknownHostException: fedora: fedora: Name 
  or service not known
  </code></pre>
  
  <p>I added the line</p>
  
  <pre><code>127.0.0.1 localhost fedora
  </code></pre>
  
  <p>to my /etc/hosts file, which fixed this, but why should this have to be done in the first place?</p>