From owner-freebsd-current Thu Nov 30 11:59:10 2000 Delivered-To: freebsd-current@freebsd.org Received: from munin.odin-corporation.com (munin.odin-corporation.com [216.233.173.18]) by hub.freebsd.org (Postfix) with ESMTP id 6300037B400 for ; Thu, 30 Nov 2000 11:59:07 -0800 (PST) Received: from odin-corporation.com (localhost [127.0.0.1]) by munin.odin-corporation.com (8.11.1/8.11.1) with ESMTP id eAUJwxf87426 for ; Thu, 30 Nov 2000 13:59:03 -0600 (CST) (envelope-from lars@odin-corporation.com) Message-ID: <3A26B182.8717E963@odin-corporation.com> Date: Thu, 30 Nov 2000 13:58:59 -0600 From: Lars Fredriksen Organization: Odin Corporation X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: no, en MIME-Version: 1.0 To: current@freebsd.org Subject: environment variable for resolv.conf anyone? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I find myself connected to multiple networks and domains all the time, and was wondering if anyone has solved (without using a chroot environment) using a different resolv.conf for different shells? One solution I thought off was to change the resolver library to look for an environment variable and if that was set, to use the file it pointed to instead of being hardcoded to /etc/resolv.conf as it is today. Anyone have an opinion on the general usefulness of this idea, and whether it poses a security risk? Thanks, Lars To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message