OK, you're /etc/nsswitch.conf is fine. I think what's happening is that
the host command is only for DNS lookups and thus bypasses /etc/hosts
and other lookup methods by design[1]. If you try dig instead, I think
you'll find it looks at /etc/hosts. Can you let me know if dig works
fine?
[1] This is supported by the following extract from the release notes
for host:
Vendor-specific resolver libraries.
Some vendors supply resolver libraries with configurable
lookup strategies for gethostbyname/gethostbyaddr, e.g. to
consult DNS, NIS, /etc/hosts, or other databases, in specific
order. Such libraries are to be avoided when linking host.
It is meant to query the DNS and DNS only.
--
/etc/hosts totally ignored in edgy
https://launchpad.net/bugs/69256
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs