In regards to this question Play Framework GUID 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
[error] (*:testListeners) java.net.UnknownHostException: fedora: fedora: Name
or service not known
I added the line
127.0.0.1 localhost fedora
to my /etc/hosts file, which fixed this, but why should this have to be done in the first place?