On 06/27/2012 09:52 PM, Ed Greshko wrote:
> On 06/28/2012 09:50 AM, Kevin Martin wrote:
>> nslookup (or some versions of it) used to honor the /etc/nsswitch.conf file 
>> so if hosts was defined
>>
>> hosts:  dns file
>>
>> in /etc/nsswitch.conf, "nslookup risingstar" would return the address (*if* 
>> /etc/hosts had "192.168.0.18 
> 
> I could find no version of nslookup on my systems which do as you suggest.
> 
> All of my nsswitch.conf files have "hosts:      files dns"
> 
> This includes nslookup on RHELv4.8 as well as ubuntu.
> 
> In all my years I can't recall ever coming across that behavior....and it 
> doesn't
> make much sense to me that a utility/tool meant to query the DNS would do 
> this.  dig
> also doesn't.
> 
> If you can recall what version did this I'd be interested to know.
> 


Hmm, perhaps I'm mistaken.  I know for a fact that nslookup on Solaris 6 and 8 
and on HP/UX honored the /etc/nsswitch.conf file.  I
*don't* know that that is the case on any Linux system but made the (probably 
stupid) assumption that this behaviour would be
consistent on all OSes.  My bad.

Kevin
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to