[fbsd] Re: possible patch for implementing split DNS

Jeremie Le Hen jeremie at le-hen.org
Tue Aug 29 08:36:09 UTC 2006


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 >


More information about the freebsd-net mailing list