From owner-freebsd-questions@FreeBSD.ORG Sun Apr 18 04:40:32 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 63ACB16A4CE for ; Sun, 18 Apr 2004 04:40:32 -0700 (PDT) Received: from gaff.hhhr.ision.net (gaff.hhhr.ision.net [195.180.9.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0877F43D64 for ; Sun, 18 Apr 2004 04:40:31 -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 i3IBeXYO033927; Sun, 18 Apr 2004 13:40:33 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) Received: from localhost (ohoyer@localhost)i3IBeRBE033924; Sun, 18 Apr 2004 13:40:33 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) X-Authentication-Warning: gaff.hhhr.ision.net: ohoyer owned process doing -bs Date: Sun, 18 Apr 2004 13:40:27 +0200 (CEST) From: Olaf Hoyer Sender: ohoyer@gaff.hhhr.ision.net To: Killermink! In-Reply-To: Message-ID: <20040418133730.C33909@gaff.hhhr.ision.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org cc: ohoyer@ohoyer.de 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 11:40:32 -0000 On Sun, 18 Apr 2004, Killermink ! wrote: > > #echo "nameserver 192.168.2.1" > /etc/resolv.conf > > (this is the correct IP for the Mac) > > then > > #ping www.google.com > > And it worked immediately! Thanks very much, I feel pretty stupid with such > an easy answer, but shouldn't this info be provided by dhclient? If I move > to another network, say with a gateway of 10.x.x.x or other, will I have to > change resolv.conf again? Is there anyway to get this automatically or is > it a feature of FreeBSD/dhclient? > Hi! Well, you have to tell the DHCP server to also provide to the client gateway and DNS information explicitly. My notebook gets its /etc/resolv.conf entries also from DHCP @work, respectively when I work @home from my DSL provider. So dhclient is able to do that, resp. the ppp when it comes to the DSL Line... 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)