From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adam T. Bowen" Subject: Re: Unable to lookup host registered in hosts file Date: Mon, 02 Oct 2006 09:36:45 +0100 Message-ID: <4520CF9D.3060907@connectinternetsolutions.com> References: <002501c6e5e4$8d4d5ec0$3dfbc68a@amk.st.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <002501c6e5e4$8d4d5ec0$3dfbc68a@amk.st.com> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Edi CAHYADI Cc: linux-admin@vger.kernel.org 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