Subject: Re: Resolv.conf Help Needed
To: None <netbsd-help@netbsd.org>
From: Michael Owens <owensmk@earthlink.net>
List: netbsd-help
Date: 06/28/2001 10:37:44
I modified the nsswitch.conf, but to no avail. But I can ping the name 
servers fine. When I do nslookup, the exact error is


root@mike> nslookup yahoo.com.
nslookup yahoo.com.
*** Can't find server name for address 216.140.16.254: No response from server
*** Can't find server name for address 216.140.17.254: No response from server
*** Default servers are not available

root@mike> ping 216.140.51.254
ping 216.140.51.254
PING 216.140.51.254 (216.140.51.254): 56 data bytes
64 bytes from 216.140.51.254: icmp_seq=0 ttl=121 time=33.539 ms
64 bytes from 216.140.51.254: icmp_seq=1 ttl=121 time=32.501 ms
64 bytes from 216.140.51.254: icmp_seq=2 ttl=121 time=29.617 ms
64 bytes from 216.140.51.254: icmp_seq=3 ttl=121 time=106.603 ms
^C
----216.140.51.254 PING Statistics----
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 29.617/50.565/106.603/37.395 ms

root@mike> cat /etc/nsswitch.conf
cat /etc/nsswitch.conf
#       $NetBSD: nsswitch.conf,v 1.5 1999/10/24 12:36:52 lukem Exp $
#
# nsswitch.conf(5) -
#       name service switch configuration file
#

# These are the defaults in libc
#
group:          compat
group_compat:   nis
hosts:          files [notfound=continue] dns
netgroup:       files [notfound=return] nis
networks:       files dns
passwd:         compat
passwd_compat:  nis
shells:         files

# List of supported sources for each database
#
# group:                compat, dns, files, nis
# group_compat:         dns, nis
# hosts:                dns, files, nis
# netgroup:             files, nis
# networks:             dns, files, nis
# passwd:               compat, dns, files, nis
# passwd_compat:        dns, nis
# shells:               dns, files, nis


root@mike> cat /etc/resolv.conf
cat /etc/resolv.conf
;
; BIND data file
; Created by NetBSD sysinst on Wed Jun 27 23:23:57 2001
;
nameserver 216.140.16.254
nameserver 216.140.17.254
search c21mb.com

root@mike> cat /etc/hosts
cat /etc/hosts
#       $NetBSD: hosts,v 1.5.4.1 2000/08/15 14:37:19 itojun Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# It is used only for "ifconfig" and other operations
# before the nameserver is started.
#
#
::1                     localhost
127.0.0.1               localhost
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0      10.255.255.255
# 172.16.0.0    172.31.255.255
# 192.168.0.0   192.168.255.255
#
# Added by NetBSD sysinst
#
127.0.0.1       localhost
10.10.10.167    mike.c21mb.com mike





On Wednesday 27 June 2001 21:45, you wrote:
> Do you have an /etc/nsswitch.conf file which is misconfigured somehow?
> Check that it has something like this in it.
>
> hosts:          files [notfound=continue] dns
>
>
> I'm not sure what error you would get if it isn't right, but always worth
> a look
>
> Regards
> Nigel
>
> On Wed, Jun 27, 2001 at 08:36:56PM -0500, Michael Owens wrote:
> > This is an ebarassing question, but I am stuck. I am just starting out
> > with NetBSD using 1.5 CDs I ordered from Wasabi. I've configured the
> > network properly, except for name resolution. Despite my specifying the
> > name servers in the installation utility and manually in resolv.conf, I
> > can't get the system to resolve. I configured resolv.conf like I do every
> > other system, and checked all NetBSD docs, but it still does not work. I
> > can ping outside the network, but cannot get name resolution. My
> > resolv.conf is simple:
> >
> > nameserver 216.140.16.254
> > nameserver 216.140.17.254
> > domain c21mb.com
> >
> > I have FreeBSD and OpenBSD systems using these same DNS servers.
> >
> > nslookup complains about not being able to get the servername for these
> > and bails, but I have no problem with other systems using them. They are
> > up and running, and I can ping them.
> >
> > Surely I've missed something, I just don't know what. I'd really like to
> > start using NetBSD, so any help would be greatly appreciated. I know this
> > is a basic question, but this is where I am stuck.

-- 
           _ _        
 _ __ ___ (_) | _____ 
| '_ ` _ \| | |/ / _ \  | Where does Bill want you to go today?
| | | | | | |   <  __/  | Find out at the Micro$oft Boycott Campaign
|_| |_| |_|_|_|\_\___|  | http://www.msbc.simplenet.com