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

news at teknologia.com news at teknologia.com
Fri Sep 8 15:45:09 UTC 2006


$INCLUDE seems to work but if the IP-nr change you still need to change
the serial number in each zone-file and restart bind to get it to work.


I know you can script such things but it would be so pleasant if the
only thing you need to do was to change the IP-nr in one single place.
CNAME would do it but is impossible to use.

Other suggestions?

// Martin


Karl Auer skrev:

> On Fri, 2006-09-08 at 05:05 -0700, news at teknologia.com wrote:
> > We would like to get around the problem of having the following line in
> > each zonefile:
> > domainname.com          IN      A            X.X.X.X
>
> Use $INCLUDE and "@"?
>
> @ is the origin either as specified with $ORIGIN or the name of zone as
> given in the named.conf entry referring to the file.
>
> Put a line like "@ in a x.x.x.x" in a file like "my_ip.inc" and put
> "$INCLUDE my.inc" in each zone file...
>
> See
>
>    http://www.zytrax.com/books/dns/ch8/include.html
>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
> http://www.biplane.com.au/~kauer/                  +61-428-957160 (mob)



More information about the bind-users mailing list