Hi,
this is something that has puzzled me for a while, and I like to
get it solved if possible:
In our environment, we rely heavily in NIS. Our name resolution is
configured in nsswitch.conf to use NIS, then hosts file, then DNS
(host.conf is also configured this way). We have many short host name
aliases in NIS that we use for convenience that are NOT in DNS or local
hosts file. From the OS perspective, this all works well.
If I attempt a ping to one of those aliases, all works well - the name
is resolved to IP and the ping succeeds. However, if I attempt to use
the nslookup or host command to lookup the alias manually, it fails with
a SERVFAIL error.
Shouldn't these commands be using the name service switch just like the
rest of the OS, or am I spoiled because HP-UX works the "right" way?