I was struggling trying to find out the reason why the linux host utility was ignoring my /etc/hosts file until I find the answer to my question here: hosts file seems to be ignored:
With this configuration, most applications will happily work with your entry from /etc/hosts. However host doesn't look at /etc/nsswitch.conf. That is by design, not by accident, since host is specifically a DNS lookup program. /etc/hosts is not DNS, it's (mostly) what we used before we had DNS.
However, as far as I'm concerned, the utility didn't use to behave like this back in the not-so-old days.
I'm pretty sure host DID check the /etc/hosts file...
Am I just going crazy after a very tough day or am I correct?
If I'm correct, does anyone know why and when they changed it?
I noticed it on CentOS 5.6 and 6.0 servers.