Reputation: 2070
On suse 32bits, i try to run a java application, i get this error
java.net.UnknownHostException: linux-7w1q.site: linux-7w1q.site: Name or service not known
i checked my /etc/hosts file
127.0.0.1 localhost linux-7w1q
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
but it's seem ok
Upvotes: 1
Views: 5360
Reputation: 13914
The error message shows you're looking for linux-7w1q.site
, but your /etc/hosts
alias is linux-7w1q
Upvotes: 1