I have encountered the same issue
here is the output from my /etc/hosts file
[root@conganode1 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Here is output that I type in ifconfig
[root@conganode1 etc]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:AD:48:1A
inet addr:192.168.146.132 Bcast:192.168.146.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fead:481a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4203 errors:0 dropped:0 overruns:0 frame:0
TX packets:3267 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:4330849 (4.1 MiB) TX bytes:456168 (445.4 KiB)
Interrupt:67 Base address:0x2024
It seems there is no hostname associated with the IP in the output from my ifconfig
Please help. I used DHCP not static IP to configure my network card. And this is the test machine running on vmworkstation, and there is no DNS has been configure.
Thank you for the time and help.