Ping hostname doesn't work

Antonino89

Member
Jul 13, 2017
76
1
6
36
Hi guys,

I have 3 virtual servers, after i edited the /etc/hosts file i'm not able to ping the hostname of the other servers on the cluster but i can ping the IP address.

root@Server1:~# more /etc/hosts
Server1 192.168.100.11
Server2 192.168.100.12

127.0.0.1 localhost
Server3 192.168.100.13

root@Server1:~# ping 192.168.100.13
PING 192.168.100.13 (192.168.100.13) 56(84) bytes of data.
64 bytes from 192.168.100.13: icmp_seq=1 ttl=64 time=0.279 ms
64 bytes from 192.168.100.13: icmp_seq=2 ttl=64 time=0.196 ms
64 bytes from 192.168.100.13: icmp_seq=3 ttl=64 time=0.231 ms
64 bytes from 192.168.100.13: icmp_seq=4 ttl=64 time=0.219 ms
64 bytes from 192.168.100.13: icmp_seq=5 ttl=64 time=0.210 ms
^C
--- 192.168.100.13 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4078ms
rtt min/avg/max/mdev = 0.196/0.227/0.279/0.028 ms


root@Server1:~# ping Server3
(Nothing happens, stuck)
ping: Server3: Temporary failure in name resolution


Any suggestions please???