Re: Unable to lookup host registered in hosts file

"Adam T. Bowen" <[email protected]>
Newsgroups gmane.linux.admin
Message-ID <[email protected]>
Hi,

Edi CAHYADI wrote:
> Hi All,
> 
> I have 2 servers:
> hostA: RedHat Linux 2.4.21-40.EL
> hostB: HP-UX 10.20
> 
>>From hostA, I can't lookup hostB even though I put its entry in /etc/hosts file.

Commands like host, dig and nslookup are DNS lookup utilities and so
don't use the configuration defined in /etc/nsswitch.conf.  The switch
file is used to define different ways to find host names (amongst other
things) of which DNS is just one.

Cheers

Adam
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.