From owner-freebsd-questions@FreeBSD.ORG Sat Jul 14 10:30:16 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 9D2B116A404 for ; Sat, 14 Jul 2007 10:30:16 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from galaxy.systems.pipex.net (galaxy.systems.pipex.net [62.241.162.31]) by mx1.freebsd.org (Postfix) with ESMTP id 6749D13C4C6 for ; Sat, 14 Jul 2007 10:30:16 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by galaxy.systems.pipex.net (Postfix) with ESMTP id AD311E00015C; Sat, 14 Jul 2007 11:30:11 +0100 (BST) Message-ID: <4698A5AF.5090604@dial.pipex.com> Date: Sat, 14 Jul 2007 11:30:07 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: tundra@tundraware.com References: <468972C5.9090902@tundraware.com> <200707021722.05724.josh@tcbug.org> <4697A498.5000501@tundraware.com> <4697AE4C.8070909@dial.pipex.com> <4697DC7E.7000809@tundraware.com> In-Reply-To: <4697DC7E.7000809@tundraware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2007 10:30:16 -0000 Tim Daneliuk wrote: > Alex Zbyslaw wrote: > >> Tim Daneliuk wrote: >> >>> 2) Better still is there some sort of "include" mechanism where I could >>> keep a flat file of public host information for use by db.external, >>> but include it into db.internal. >> >> >> I don't think there is, but let someone who uses bind more than I do >> give a definitive on that :-) >> >> What you *can* do, irrespective of bind version, is to have two files >> which you pre-process with m4, and have a third file which m4 >> includes on both the others. >> >> So you start with: >> >> internal.M4 which includes "shared" >> external.M4 which also includes "shared" >> shared which gets included in the other two. >> >> Then m4 internal.M4 > internal and m4 external.M4 -> external. >> >> Bind then loads internal and external. > > > A reasonable and very Unix-ish solution, certainly. Though, I think > the subsequent post on this thread regarding $INCLUDE is probably more > elegant ;) > Certainly, since bind supports it (it's even in my Bind 8 book, though I never noticed it before). Of course, you can do a heck of a lot more with m4, and it's not limited to bind, but in this case I would say that simplicity wins hands down ;-) --Alex