Best implementation of many zonfiles containing the same info (to avoid duplicate IP-nr)
summerborn at gmail.com
Fri Sep 8 13:59:57 UTC 2006
I know that you can have a directive $INCLUDE in your zone file, so to
include another file in the zone records. I did not test it but I think
that, making a separate zone file for each domain with the SOA record and
the other unique records and then including the common part for all domains
from one file is possible.
If you try it that way, please respond with the results. Also I did not know
if this is a secure way or not. But if you dig a little I think there will
be an answer.
Best regards Ivo Sabev
> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of news at teknologia.com
> Sent: Friday, September 08, 2006 3:05 PM
> To: comp-protocols-dns-bind at isc.org
> Subject: Best implementation of many zonfiles containing the same info (to
> avoid duplicate IP-nr)
> When handling a lot of domain names you want to avoid the same IP-nr in
> many zonefiles, but how is best way of doing it?
> Let's say we have 200 domain names, one zonefile for each. All domains
> points to same servers so all zonefiles are more or less equal except
> for the SOA-record-line and the A-record for the root level of the
> domain name.
> Our main server is www5.ourcompany.com so all zonefiles uses CNAME for
> all subdomains and stuff, pointing to www5.oucompany.com. (MX and NS
> points to other servers as well).
> We would like to get around the problem of having the following line in
> each zonefile:
> domainname.com IN A X.X.X.X
> First thought was to put CNAME even here but I know that is not
> I simply wants to avoid IP-number in every zonefile because of the work
> involved every time the IP-nr change of the main server.
> Any suggestion to do this? Of course it must agree with RFC regulations
> and follow bind rules.
> Best regards
> Martin Rådbo
More information about the bind-users