An IPv4 or IPv6 address query for the name localhost must always resolve to the respective loopback address [rfc6761].
According to several users, apparently chromebook and OSX `host localhost` fails but configuring 127.0.0.1 works. (maybe a DNS/DHCP issue?! or ipv6)