le contenu du fichier hosts:
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 mooav
et oui, j’ai une réponse au ping en localhost (l’inverse aurait été étonnant non ???)
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.039 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.050 ms
64 bytes from localhost (::1): icmp_seq=4 ttl=64 time=0.026 ms
64 bytes from localhost (::1): icmp_seq=5 ttl=64 time=0.037 ms
64 bytes from localhost (::1): icmp_seq=6 ttl=64 time=0.032 ms
64 bytes from localhost (::1): icmp_seq=7 ttl=64 time=0.040 ms
64 bytes from localhost (::1): icmp_seq=8 ttl=64 time=0.034 ms
64 bytes from localhost (::1): icmp_seq=9 ttl=64 time=0.041 ms
64 bytes from localhost (::1): icmp_seq=10 ttl=64 time=0.039 ms
64 bytes from localhost (::1): icmp_seq=11 ttl=64 time=0.033 ms
64 bytes from localhost (::1): icmp_seq=12 ttl=64 time=0.031 ms
64 bytes from localhost (::1): icmp_seq=13 ttl=64 time=0.041 ms
64 bytes from localhost (::1): icmp_seq=14 ttl=64 time=0.034 ms
64 bytes from localhost (::1): icmp_seq=15 ttl=64 time=0.043 ms
64 bytes from localhost (::1): icmp_seq=16 ttl=64 time=0.042 ms
64 bytes from localhost (::1): icmp_seq=17 ttl=64 time=0.042 ms
64 bytes from localhost (::1): icmp_seq=18 ttl=64 time=0.041 ms
64 bytes from localhost (::1): icmp_seq=19 ttl=64 time=0.030 ms
64 bytes from localhost (::1): icmp_seq=20 ttl=64 time=0.039 ms
64 bytes from localhost (::1): icmp_seq=21 ttl=64 time=0.052 ms
64 bytes from localhost (::1): icmp_seq=22 ttl=64 time=0.049 ms
64 bytes from localhost (::1): icmp_seq=23 ttl=64 time=0.054 ms
64 bytes from localhost (::1): icmp_seq=24 ttl=64 time=0.047 ms
64 bytes from localhost (::1): icmp_seq=25 ttl=64 time=0.052 ms
^C
--- localhost ping statistics ---
25 packets transmitted, 25 received, 0% packet loss, time 577ms
rtt min/avg/max/mdev = 0.026/0.040/0.054/0.007 ms