From owner-freebsd-questions@FreeBSD.ORG Sun Apr 18 02:21:44 2004 Return-Path: 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 C58C216A4CE for ; Sun, 18 Apr 2004 02:21:44 -0700 (PDT) Received: from gaff.hhhr.ision.net (gaff.hhhr.ision.net [195.180.9.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5303C43D41 for ; Sun, 18 Apr 2004 02:21:43 -0700 (PDT) (envelope-from ohoyer@ohoyer.de) Received: from gaff.hhhr.ision.net (ohoyer@localhost [127.0.0.1]) by gaff.hhhr.ision.net (8.12.11/8.12.11) with ESMTP id i3I9LiKE033730; Sun, 18 Apr 2004 11:21:44 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) Received: from localhost (ohoyer@localhost)i3I9LhT4033726; Sun, 18 Apr 2004 11:21:44 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) X-Authentication-Warning: gaff.hhhr.ision.net: ohoyer owned process doing -bs Date: Sun, 18 Apr 2004 11:21:42 +0200 (CEST) From: Olaf Hoyer Sender: ohoyer@gaff.hhhr.ision.net To: Killermink! In-Reply-To: Message-ID: <20040418111623.W33719@gaff.hhhr.ision.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: dhclient and host resolution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2004 09:21:44 -0000 On Sun, 18 Apr 2004, Killermink ! wrote: > Hello, > > I have a Apple PowerBook running Panther and have set it to share my modem > internet connection over the Ethernet port. FreeBSD is connected to this > and should get all config via DHCP. When dhclient runs, it successfully > gets an IP Address from the Powerbook, and I can ping between machines... A > quick look at the leases file also shows that it has the Powerbook as the > Gateway and as the DNS server. However, I can only get to the Internet > from the BSD box using IP addresses, trying a url such as www.google.com > always fails as it cant resolve the host, plus the response is immediate as > if it hasn't tried or waited for a response. > Well, sound like DNS prblems. What is the content of your /etc/resolv.conf? then, when there is an entry like: nameserver 192.168.1.1 (192.168.1.1 being the IP of the MAC), then check if the DNS on your MAC is working by: #### nslookup - 192.168.1.1 set q=any freebsd.org #### Well, then your MAC should resolve some IP and mx data, when not, the DNS on your MAC is misfunctional. You also can specify DNS in the /etc/resolv.conf that are on the outside, or you could run named as caching resolver. Therefore, populate /etc/hosts with the IP/name of FreeBSD box, run /etc/named/make-localhost and then start named. In /etc/resolv.conf put a : nameserver 127.0.0.1 as first nameserver statement, and FreeBSD will directly resolve... HTH Olaf -- Olaf Hoyer ohoyer@gaff.hhhr.ision.net Fuerchterliche Erlebniss geben zu raten, ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. (Nietzsche, Jenseits von Gut und Boese)