Best implementation of many zonfiles containing the same info (to avoid duplicate IP-nr)

Ivo Sabev summerborn at
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 [mailto:bind-users-bounce at] On
> Behalf Of news at
> Sent: Friday, September 08, 2006 3:05 PM
> To: comp-protocols-dns-bind at
> 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 so all zonefiles uses CNAME for
> all subdomains and stuff, pointing to (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:
>          IN      A            X.X.X.X
> First thought was to put CNAME even here but I know that is not
> allowed.
> 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 mailing list