From owner-freebsd-isp Tue Jan 9 15:52:57 2001 Delivered-To: freebsd-isp@freebsd.org Received: from coloradosurf.com (c769378-a.lakwod3.co.home.com [24.15.35.141]) by hub.freebsd.org (Postfix) with ESMTP id 333D637B401 for ; Tue, 9 Jan 2001 15:52:37 -0800 (PST) Received: from heike ([172.16.1.2]) by coloradosurf.com (8.9.3/8.9.3) with SMTP id QAA11551; Tue, 9 Jan 2001 16:50:24 -0700 (MST) (envelope-from mike@coloradosurf.com) Message-ID: <001601c07a97$94cd3260$020110ac@c769378a.lakwod3.co.home.com> From: "mike" To: , "Len Conrad" References: <5.0.2.1.0.20010107082319.0522d9e0@mail.Go2France.com> Subject: Re: DNS Tools - Zone File Creation Date: Tue, 9 Jan 2001 16:54:51 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Len, I looked again in my copy of DNS/BIND (rather tattered despite how clueless I feel) and did not find adequate examples the proper use of the $INCLUDE statement you referenced. I have a script that copies a 'master' zone file and makes the necessary substitutions (serial,domain, and IP which is only one of a couple ip's) for new virtually hosted domains. My company hosts 150-200 domains and therefore has 150-200 zone files. This way would seem to clean things up quite a bit. Could you (please) show me an example of it's proper use (or refer me to some location that does)? I have pasted below what should be pretty close to the master we use. From your post, I believe I should be able to get down to 3-5 zone files. TIA, mike #domain#. IN SOA #ns1#. webmaster.#domain#. ( #date# 10800 3600 604800 86400 ) #domain#. IN NS #ns1#. #domain#. IN NS #ns2#. #domain#. IN A #ipaddress# www.#domain#. IN CNAME #domain#. #domain#. IN MX 1 #domain#. ----- Original Message ----- From: "Len Conrad" To: Sent: Sunday, January 07, 2001 12:33 AM Subject: Re: DNS Tools - Zone File Creation > > >I manage all my zones manually and don't mind. I do a search and replace in > >vi. However, I have to create a number of zone files all in one go and was > >wondering if anyone has any scripts to create the zone files. > > If you use the $INCLUDE of BIND8, you can greatly simplify the zone > files and errors and maintenance. > > And if you do a lot of virtual www/ftp/smtp hosting where many > domains have the same ip's (A records) for their www/ftp services and > you have one or two mail servers with virtual mail hosts, then you > can often use just one zone file for any number of separate domains. > > I helped one ISP upgrade 150 zones from W2K DNS to BIND8, and with > the above techniques, I reduced his zone files to just 4. No enough > of zone files bothering to develop a script for. Adding a new zone > for him was just duplicating a line in his named.conf with no > modification of the common zone file. > > Len > > > > http://BIND8NT.MEIway.com : Binary for ISC BIND 8.2.3 T9B for NT4 & W2K > http://IMGate.MEIway.com : Build free, hi-perf, anti-spam mail gateways > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message