[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Name lookup question



I know what you mean. My solution to that is to specify the name server
to nslookup, then it will only use DNS.

The perl solution is where I am leaning...

Thanks,

Kevin

-----Original Message-----
From: taroon-list-bounces redhat com
[mailto:taroon-list-bounces redhat com] On Behalf Of John Haxby
Sent: Thursday, May 12, 2005 9:36 AM
To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
Subject: Re: Name lookup question


> On Thu, 12 May 2005, Collins, Kevin  [MindWorks] wrote:
>
>>
>> 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?
>>
>
I used to regularly curse HP-UX's hacked nslookup.   nslookup on every 
other platform only queries the DNS, on HP/UX it consults 
/etc/nsswitch.conf -- it's great when everything is working and a total 
pain in the neck when you're trying to diagnose name server problems so 
you can explain to the Help Desk what's broken and what needs to be done

to fix it so that they can pass on the message to the non-English 
speaking but technically OK (just) network folks in Grenoble.   Not that

I'm bitter and twisted :-)

Seriously, the easiest cross-platform way I found of going through 
nsswitch.conf was to use one-line perl scripts to call gethostbyname() 
(or whatever).

jch

--
Taroon-list mailing list
Taroon-list redhat com
http://www.redhat.com/mailman/listinfo/taroon-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]