From owner-freebsd-questions Sat Aug 31 3:47:24 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D9F437B400 for ; Sat, 31 Aug 2002 03:47:20 -0700 (PDT) Received: from sixshooter.v6.thrupoint.net (sixshooter.v6.thrupoint.net [65.242.152.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4F1043E4A for ; Sat, 31 Aug 2002 03:47:19 -0700 (PDT) (envelope-from jpb@sixshooter.v6.thrupoint.net) Received: by sixshooter.v6.thrupoint.net (Postfix, from userid 1000) id DE759107A3; Sat, 31 Aug 2002 06:47:18 -0400 (EDT) Date: Sat, 31 Aug 2002 06:47:18 -0400 From: Jim Brown To: questions@freebsd.org Subject: Re: name resolving issues behind a firewall Message-ID: <20020831104718.GA87250@sixshooter.v6.thrupoint.net> Mail-Followup-To: Jim Brown , questions@freebsd.org References: <20020830135011.P34200-100000@serv1.wallnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020830135011.P34200-100000@serv1.wallnet.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Tim Kellers [2002-08-30 13:59]: > > Strange name resolving issuses... > > When I type: > > heaven# nslookup wallnet.com > Server: cpe3.maestro.njit.edu > Address: 128.235.198.4 > > Name: wallnet.com > Address: 208.225.162.122 > > > All is well, but when I type: > > heaven# ping wallnet.com > > I get: > > ping: cannot resolve wallnet.com: Unknown host > > The IP address of this machine is 192.168.0.64 and shares the private > subnet with 2 other machines (one Win2k, one Linux) that can ping the > outside world with no apparent problem. The FreeBSD box can get to the > internet via IP addresses, just fine; it just can't resolve names. > > /etc/resolv.conf has valid Nameserver entries; I'm about out of ideas > > > The OS is: 4.6-STABLE (as of Wednesday afternoon). > > I'd appreciate any thoughts. > > Tim Kellers > CPE/NJIT > Check /etc/host.conf. Should look similar to the following. # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $ # First try the /etc/hosts file hosts # Now try the nameserver next. bind # If you have YP/NIS configured, uncomment the next line # nis Also, what exactly are the contents of /etc/resolv.conf? There are several possible directives, and they do different things. See 'man resolv.conf' (contents is resolver(5)) for details. Mine looks like this: domain myfoodomain.com nameserver m.m.m.m nameserver n.n.n.n I don't use the search directive. Also, make sure there is a valid route to m.m.m.m and n.n.n.n and that if you use any firewall, that your FreeBSD box has the same rules as the other servers on your internal LAN. Also, make sure you are not running named locally. HTH, jpb === To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message