From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 16:28:05 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DAAE16A417 for ; Sun, 28 Oct 2007 16:28:05 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (aleph.cepheid.org [72.232.60.94]) by mx1.freebsd.org (Postfix) with ESMTP id 1827C13C4C2 for ; Sun, 28 Oct 2007 16:28:04 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id 1C2329B4057; Sun, 28 Oct 2007 11:29:47 -0500 (CDT) Date: Sun, 28 Oct 2007 11:29:47 -0500 From: Erik Osterholm To: jekillen Message-ID: <20071028162947.GA17200@aleph.cepheid.org> Mail-Followup-To: Erik Osterholm , jekillen , FreeBSD Mailing List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Mailing List Subject: Re: Name resolution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 16:28:05 -0000 On Sat, Oct 27, 2007 at 04:42:02PM -0700, jekillen wrote: > I set up a system with a static ip connection to the internet > I checked inetd.conf and resolv.conf. Just FYI, inetd.conf shouldn't matter here, as it has to do with running a server, not accessing one. > look in resolv.conf, there was no file by that name. > So I created one with my local nameservers and the ISP's nameservers. Are the local nameservers on the same CIDR network? The ISP servers? Did you maybe use hostnames here instead of IP addresses? > But I am not sure whether these changes require that I reboot the > machine. My experience has been that changes to resolv.conf do not require a reboot. > The connection is live and working. I can ping another of my static ip > addresses, and other machines running on the private nework. But > if I ping one of my websites by name the ping cannot find it. so I know > it is a resolver issue, with no name server running on this machine. Are these on the same network? Did you set your gateway correctly? The command "netstat -nrf inet" should probably list a default route. Sometimes people forget this when they use static IPs as you have. > This is because after adding the file /etc/resolv.conf I still get > the above complaints. I occasionally type "resolve.conf" instead of "resolv.conf" when creating this file for the first time. The wonders of tab completion can make me unaware of the problem for awhile. Could this possibly be the problem? Do you have any sort of firewall active on this computer? If so, outgoing connections to port 53 (UDP and TCP) should be allowed for DNS to work. Erik