having single file for many zones

Stephane Bortzmeyer bortzmeyer at nic.fr
Fri Oct 5 13:05:33 UTC 2007


On Fri, Oct 05, 2007 at 03:34:36PM +0300,
 Cihan Subasi (Garanti Teknoloji) <CihanS at garanti.com.tr> wrote 
 a message of 35 lines which said:

> Is there a way to have a single zone file for all those domain
> names. 

Very easy. Several solutions:

1) Use only one zone file, with all the content in it being relative
(i.e. using @ instead of the zone name, not adding the zone name and
the final dot, etc). Then use, a symbolic link on the master name
server.

2) Generate zone files from some sort of a database (it does not have
to be a relational database engine, text files with a format are
databases, too, and so are XML or JSON files) with ten lines of Perl
or Python.

3) Mark Andrews will probably add: DNAME :-)



More information about the bind-users mailing list