From owner-freebsd-stable@FreeBSD.ORG Mon Jun 5 12:57:01 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB59916A4DA for ; Mon, 5 Jun 2006 12:57:01 +0000 (UTC) (envelope-from patrick@cyberwizards.nl) Received: from gandalf.cyberwizards.nl (217-19-20-65.dsl.cambrium.nl [217.19.20.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D713A43D64 for ; Mon, 5 Jun 2006 12:57:00 +0000 (GMT) (envelope-from patrick@cyberwizards.nl) Received: from gandalf.cyberwizards.nl (localhost [127.0.0.1]) by gandalf.cyberwizards.nl (8.13.4/8.13.4) with ESMTP id k55Cusfe099375; Mon, 5 Jun 2006 14:56:54 +0200 (CEST) (envelope-from patrick@cyberwizards.nl) Received: from localhost (pbm@localhost) by gandalf.cyberwizards.nl (8.13.4/8.13.4/Submit) with ESMTP id k55Curfl099372; Mon, 5 Jun 2006 14:56:54 +0200 (CEST) (envelope-from patrick@cyberwizards.nl) X-Authentication-Warning: gandalf.cyberwizards.nl: pbm owned process doing -bs Date: Mon, 5 Jun 2006 14:56:53 +0200 (CEST) From: patrick X-X-Sender: pbm@gandalf.cyberwizards.nl To: "Thomas T. Veldhouse" In-Reply-To: <44842282.6050409@veldy.net> Message-ID: <20060605145226.A96694@gandalf.cyberwizards.nl> References: <44842282.6050409@veldy.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Re: resolv.conf and dhclient X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 12:57:06 -0000 On Mon, 5 Jun 2006, Thomas T. Veldhouse wrote: hi, this is not the correct list to ask, but anyway. "man dhclient.conf" would learn you to use supersede and prepend statements. interface "xl0" { supersede domain-name "yourdomainname.com"; prepend domain-name-servers www.xxx.yyy.zzz; } adjust xl0 to your dhclient interface, yourdomain is search first for hostname lookups xyz is prefered first nameserver in the resolv.conf > What is the best approach to keep dhclient from overwriting /etc/resolv.conf > every time it gets a new lease on an IP address? This has been a frustrating > search as Google has turned up next to nothing on the issue other than a hack > into a script file which should be overwritten when world is rebuilt. grtz patrick