From owner-freebsd-net@FreeBSD.ORG Mon Aug 28 22:52:03 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 D0E9716A4DA for ; Mon, 28 Aug 2006 22:52:03 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.FreeBSD.org (Postfix) with SMTP id A71A443D8A for ; Mon, 28 Aug 2006 22:51:53 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 13111 invoked by uid 399); 28 Aug 2006 22:51:53 -0000 Received: from localhost (HELO ?192.168.0.10?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 28 Aug 2006 22:51:53 -0000 Message-ID: <44F37386.4020702@FreeBSD.org> Date: Mon, 28 Aug 2006 15:51:50 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Julian Elischer References: <44EF6E18.6090905@elischer.org> <44F3429F.6050204@FreeBSD.org> <44F344FA.1000408@elischer.org> <20060828221218.GB93062@dwpc.dwlabs.ca> <44F370F2.7080406@elischer.org> In-Reply-To: <44F370F2.7080406@elischer.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: 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: Mon, 28 Aug 2006 22:52:03 -0000 Julian Elischer wrote: > Duane Whitty wrote: >> Hi Julian, >> >> I'm no expert so I apologize in advance if I am wasting your time. >> >> I was just wondering if you could use the multiple views facility as >> provided by Bind 9? I'm currently using the technique to provide >> different views of my network depending on whether access is coming >> from an internal address or an external address. Perhaps I am not >> fully understanding the depth of the problem. > I'm not an expert on bind 9 views, but I want two sibling processs to get > different network views. can I do that on a freebsd6.1 machine using > stock gethostbyname() from libc? I waited to suggest this based on whatever additional information you provided, but it sounds like this could work, with the condition that you be able to identify the IP addresses (or better yet, ranges) that the different categories of process will be assigned to in advance; or that you could configure named.conf (or an include file) on the fly. And of course, all THIS is presupposing that you can get both views (inside and outside) on the same nameserver, that is available to both sets of processes. So, not trivial, but could possibly solve your problem. Doug -- This .signature sanitized for your protection