Describiré los detalles de este problema en los registros de interacción de shell:
$ host 'hostname'
Host myhost.local not found: 3(NXDOMAIN)
$ cat /etc/hosts | grep 127.0.0.1
127.0.0.1 localhost myhost.local
$ ping 'hostname' # stuck about 5 seconds (maybe a DNS query timeout)
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.108 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.028 ms