From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 07:15:46 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 945F216A41F for ; Sat, 7 Jul 2007 07:15:46 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from eskimo.tundraware.com (eskimo.tundraware.com [66.92.130.161]) by mx1.freebsd.org (Postfix) with ESMTP id 31F8B13C44C for ; Sat, 7 Jul 2007 07:15:46 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (ozzie.tundraware.com [66.92.130.199]) (authenticated bits=0) by eskimo.tundraware.com (8.14.1/8.14.1) with ESMTP id l677FcjA087466 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sat, 7 Jul 2007 02:15:38 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <468F3D95.6010909@tundraware.com> Date: Sat, 07 Jul 2007 02:15:33 -0500 From: Tim Daneliuk Organization: TundraWare Inc. User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Josh Paetzel References: <468972C5.9090902@tundraware.com> <200707021722.05724.josh@tcbug.org> In-Reply-To: <200707021722.05724.josh@tcbug.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-tundraware.com-MailScanner-Information: Please contact the ISP for more information X-tundraware.com-MailScanner: Found to be clean X-tundraware.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 1, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-tundraware.com-MailScanner-From: tundra@tundraware.com X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Finally Converting From Bind 8 -> Bind 9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tundra@tundraware.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2007 07:15:46 -0000 Josh Paetzel wrote: > On Monday 02 July 2007 16:48, Tim Daneliuk wrote: >> I am (ever so) slowly moving my domain from FBSD 4.x to 6.2. I am now >> at the point where I need to convert my Bind 8 configuration to Bind 9. >> In so doing, I like to finally separate my internal (non-routable) hosts >> so that their names never resolve outside the private network, and >> expose only the public facing hosts to the world via DNS. I'd also >> like to (finally) associate names with dhcpd-provided addresses >> so both forwards & reverses work inside the private network. >> >> Could some kind soul please point me to a good HOWTO on this migration and >> reconfiguration? I am DAGSing as I write this, but so far have not >> found what I want. >> >> TIA, > > The first part of what you want is easy. > In named.conf you'll have something like... > > acl private-hosts { 192.168.1.0/24; 192.168.2.0/24; }; > > view "internal" { > match-clients { "private-hosts"; }; > zone "example.org" { > type master; > file "master/db.internal.example.org"; > }; > }; > > view "external" { > match-clients { any; }; > zone "example.org" { > type master; > file "master/db.example.org"; > }; > }; > > Now you have two separate zonefiles, one which is consulted when someone from > 192.168.1.0/24 or 192.168.2.0/24 makes a query and one that is consulted when > anyone else makes a query. > > HTH That helped immensely and made this part of the problem trivial to implement. Thanks! Now I just have to learn how to have dhcpd update named with the latest lease information... -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/