From owner-freebsd-stable@FreeBSD.ORG Tue Jun 6 13:51:39 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 9C95D16A978 for ; Tue, 6 Jun 2006 13:51:39 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 369C743D46 for ; Tue, 6 Jun 2006 13:51:39 +0000 (GMT) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: (qmail 27468 invoked from network); 6 Jun 2006 13:51:38 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Jun 2006 13:51:38 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 11A6B2842A; Tue, 6 Jun 2006 09:51:37 -0400 (EDT) To: Damian Gerow References: <44842282.6050409@veldy.net> <448428D8.5030501@orchid.homeunix.org> <20060605134049.GB99893@afflictions.org> <44r72365l3.fsf@be-well.ilk.org> <20060605195654.GK99893@afflictions.org> From: Lowell Gilbert Date: Tue, 06 Jun 2006 09:51:37 -0400 In-Reply-To: <20060605195654.GK99893@afflictions.org> (Damian Gerow's message of "Mon, 5 Jun 2006 15:56:54 -0400") Message-ID: <44u06ywfx2.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-stable@freebsd.org Subject: Re: [OT] resolv.conf and dhclient X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 13:51:43 -0000 Damian Gerow writes: > Thus spake Lowell Gilbert (freebsd-stable-local@be-well.ilk.org) [05/06/06 10:32]: > : > 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. > : > : Why not just write a simple script for one of the hooks that > : dhclient-script(8) supports? > > I'd looked at this before (a few months back), and deemed it insufficient > for the job. However, upon your re-suggestion, I can't see why it /won't/ > work. It should also be able to figure out which wired LAN the machine is > connected to, and assign the appropriate DNS servers. So this /may/ > actually address my problem. (Goodness knows why I originally dismissed > it.) > > However, this ignores my original question: why is there no 'ignore' > directive in dhclient.conf? I don't think it does really beg the question: the existence of other options reduces the impetus for someone to write it and get it accepted in to the codebase. And hidden in there is the direct answer to your question: the feature doesn't exist because no one has written it. > It seems like a potentially incredibly useful > thing, and I run across posts from people who could greatly benefit from > this every couple of months. Perhaps, but most of the time "supersede" (or "prepend" or "append") will solve their problems fine. At least, that's my experience from watching this list.