From owner-freebsd-questions Fri Nov 16 7:40:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 402D937B417 for ; Fri, 16 Nov 2001 07:40:19 -0800 (PST) Received: from pc3-card3-0-cust122.cdf.cable.ntl.com ([62.254.251.122] helo=rhadamanth.private.submonkey.net ident=exim) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 164l6D-00021Q-00; Fri, 16 Nov 2001 15:40:14 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.33 #1) id 164l3T-000E18-00; Fri, 16 Nov 2001 15:37:23 +0000 Date: Fri, 16 Nov 2001 15:37:23 +0000 From: setantae To: Todd Hansen Cc: questions@freebsd.org Subject: Re: resolv.conf Message-ID: <20011116153723.GA53802@rhadamanth> References: <20011116124701.K684@k7.mavetju.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011116124701.K684@k7.mavetju.org> User-Agent: Mutt/1.3.23.2i 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 On Fri, Nov 16, 2001 at 12:47:01PM +1100, Edwin Groothuis wrote: > On Thu, Nov 15, 2001 at 05:43:49PM -0800, Todd Hansen wrote: > > is there a way to specify the search domains for my DNS resolving. I use > > DHCP and as such each time I boot my laptop in a new location the > > resolv.conf file gets overwritten. Is there another place I can specify > > the search domains so that I don't have to use the full domain name? > > You can prevent your resolv.conf to be (completly/partly) overwritten > if you use dhclient.conf correctly. Here's what I use in my /etc/dhclient.conf : # $FreeBSD: src/etc/dhclient.conf,v 1.2 1999/08/27 23:23:41 peter Exp $ # # This file is required by the ISC DHCP client. # See ``man 5 dhclient.conf'' for details. # # In most cases an empty file is suffient for most people as the # defaults are usually fine. # interface "ed0" { supersede domain-name "private.submonkey.net"; prepend domain-name-servers 192.168.10.1; } Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message