Subject: Re: Why cant I resolve internet names anymore ?
To: Tony Hernandez <dbsaint@bellsouth.net>
From: Simon Burge <simonb@netbsd.org>
List: port-i386
Date: 05/01/1999 15:15:17
Tony Hernandez wrote:

> I have ahd this problem on Solaris machines. I can ping out to the web
> all I want . But I cant get NetBSD to look at my name server first .
> 
> Is it the /etc/nsswitch.conf file ? it has the dns files appended to it
> allready.
> and I have my name server in /etc/resolv.conf . I can resolve hostnames
> by entering the following:
> # nslookup www.yahoo.com 205.152.64.20

I've got this in nsswitch.conf:

	mona:~ 35> grep hosts /etc/nsswitch.conf 
	hosts:          dns files

Also, if you don't have a "hosts" entry at all it should default to "dns
files".

Can you do "nslookup www.yahoo.com" without specifying a nameserver
as well?  From memory, nslookup goes straight to /etc/resolv.conf and
doesn't go through the nsswitch mechanism.

Simon.