Cedric Tucker wrote:
> Hi,
> 
> I am trying to make my system look at the host file first when doing a 
> nslookup, but am having problems.  I have updated the nsswitch.conf, 
> nsswitch.files, and nsswitch.dns files to say hosts:files, but it still does 
> not resolve correctly.  

nslookup is specifically a DNS query tool, which ignores /etc/nsswitch.conf
and always uses DNS and only DNS.

You want to use "getent hosts" to use the nsswitch.conf facilities.

-- 
        -Alan Coopersmith-           [EMAIL PROTECTED]
         Sun Microsystems, Inc. - X Window System Engineering

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to