From owner-freebsd-net@FreeBSD.ORG Tue Aug 29 08:36:09 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4FAA16A4DA; Tue, 29 Aug 2006 08:36:09 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6964C43D46; Tue, 29 Aug 2006 08:36:09 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 78EB7917D2; Tue, 29 Aug 2006 10:36:07 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 34DA69C4C4; Tue, 29 Aug 2006 08:36:38 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 1BE3F408C; Tue, 29 Aug 2006 10:36:38 +0200 (CEST) Date: Tue, 29 Aug 2006 10:36:38 +0200 From: Jeremie Le Hen To: Julian Elischer Message-ID: <20060829083638.GC15761@obiwan.tataz.chchile.org> References: <44EF6E18.6090905@elischer.org> <44F3429F.6050204@FreeBSD.org> <44F344FA.1000408@elischer.org> <20060828221218.GB93062@dwpc.dwlabs.ca> <44F370F2.7080406@elischer.org> <44F37386.4020702@FreeBSD.org> <44F37994.8010808@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F37994.8010808@elischer.org> User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-net@FreeBSD.org, Doug Barton Subject: Re: [fbsd] Re: possible patch for implementing split DNS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 08:36:09 -0000 On Mon, Aug 28, 2006 at 04:17:40PM -0700, Julian Elischer wrote: > It is intersting that people are suggesting tons of really complicated > solutions involving loading essoteric > softwere or setting up complicated virtual machines when listenning to a > simple environment variable > will do the trick.. For comparison, the nsswitch code in current ALREADY > listens to an environment variable > for an alternate name for /etc/nsswitch.conf.. > > i.e. nsdispatch.c: path = getenv("NSSWITCH_CONF"); The full context should have been pasted: % #if defined(_NSS_DEBUG) && defined(_NSS_SHOOT_FOOT) % /* NOTE WELL: THIS IS A SECURITY HOLE. This must only be built % * for debugging purposes and MUST NEVER be used in production. % */ % path = getenv("NSSWITCH_CONF"); % if (path == NULL) % #endif % path = _PATH_NS_CONF; -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >