From owner-freebsd-stable@FreeBSD.ORG Mon Jun 5 13:40:59 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 B3F2516AE88 for ; Mon, 5 Jun 2006 13:40:59 +0000 (UTC) (envelope-from dgerow@afflictions.org) Received: from mail.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id A345743D49 for ; Mon, 5 Jun 2006 13:40:57 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from localhost (localhost [127.0.0.1]) by mail.afflictions.org (Postfix) with ESMTP id 4C64878C91 for ; Mon, 5 Jun 2006 09:42:43 -0400 (EDT) Received: from mail.afflictions.org ([127.0.0.1]) by localhost (pandora.afflictions.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36748-02 for ; Mon, 5 Jun 2006 09:42:40 -0400 (EDT) Received: from dementia.afflictions.org (dementia [172.19.206.56]) by mail.afflictions.org (Postfix) with ESMTP id C543278C8E for ; Mon, 5 Jun 2006 09:42:39 -0400 (EDT) Received: by dementia.afflictions.org (Postfix, from userid 1001) id 61D781C0811; Mon, 5 Jun 2006 09:40:49 -0400 (EDT) Date: Mon, 5 Jun 2006 09:40:49 -0400 From: Damian Gerow To: freebsd-stable@freebsd.org Message-ID: <20060605134049.GB99893@afflictions.org> References: <44842282.6050409@veldy.net> <448428D8.5030501@orchid.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <448428D8.5030501@orchid.homeunix.org> X-PGP-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 X-PGP-Key: 0xC2889CC9 User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at pandora.afflictions.org Subject: Re: [OT] 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 13:41:04 -0000 I've recently run into a situation similar to the original posters, and... Thus spake Karol Kwiatkowski (freebsd@orchid.homeunix.org) [05/06/06 08:55]: : > 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. : : If I'm getting your question right - isn't 'supersede' option in : dhclient.conf(5) what you want? Something like: Unfortunately, supersede doesn't cut it (for me). I have two interfaces, one wired and one wireless. Both addresses are negotiated via DHCP. However, I do /not/ want to use the DNS servers provided via the wireless connection. Short of statically mapping my DNS servers into place (something I'd really rather avoid), there is nothing I can do. Even if I coax the wired interface into negotiating its address second, as the lease times on the two links are different, I will be flip-flopping betwixt the two sets of DNS servers for the duration of the connection. I've often wondered why dhclient.conf doesn't have an 'ignore' directive. There's a 'require' in there; it doesn't seem like much of a stretch to 'ignore' something. - Damian