nv-l

[nv-l] Re: Help with name resolution on Linux

2004-12-21 13:19:37
Subject: [nv-l] Re: Help with name resolution on Linux
From: Leslie Clark <lclark AT us.ibm DOT com>
To: Leslie Clark <lclark AT us.ibm DOT com>
Date: Tue, 21 Dec 2004 13:19:04 -0500

Test - resending.
I did not get a copy of this back, although I did receive a copy of the one posted this morning about Herman's question.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
(248) 552-4968 Voicemail, Fax, Pager



Leslie Clark/Southfield/IBM

12/21/2004 12:12 PM

To
nv-l AT lists.us.ibm DOT com
cc
Subject
Help with name resolution on LinuxLink




Has anyone encountered this? I'm trying to override DNS with /etc/hosts. It appears that you do this in /etc/nsswitch.conf and /etc/host.conf on Linux, similar to Solaris. And the host command behaves differently than it does on AIX - it always checks only dns, like nslookup. The same with the 'dig' command. So it is tricky to verify just what is going on. It appears to me that it works for forward resolution, but not for backward resolution.

That is,  gethostbyname  respects the order that you set in nsswitch.conf
     hosts:  files dns
and in /etc/host.conf
     order hosts, bind
     multi on
but gethostbyaddr does not.

Suggestions welcome.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
(248) 552-4968 Voicemail, Fax, Pager

<Prev in Thread] Current Thread [Next in Thread>