one machine being authoritative server for multiple domains

Kevin Darcy kcd at daimlerchrysler.com
Thu Jan 11 00:03:08 UTC 2001


ffaure at bigSPAMGAMOUTAKUSANfoot.com wrote:

> On 9 Jan 2001 00:33:57 -0800, Thor Kottelin <thor at anta.net> wrote:
> >Yes; just define those domains in your named.conf, e.g.:
>
> Next question: What if you're an ISP, and need to be authoritative for
> a lot of domains. Is it possible to cram several zones into a single
> file to avoid having tens or hundreds of independent files?

No, you can't store data for different domains in the same zone file,
under BIND. If you have *identical* data in multiple domains, however,
then with careful use of relative names and "@" you can use the same zone
file for different domains -- the trick being that although the actual
text of the zone file is the same, it is interpreted differently for
different zones ("@" stands for the zone names, and non-dot-terminated
names are parsed as if they have the zone name appended to them).

Also, if your main concern is that you have to update lots of zone files
when anything changes, you might be able to alleviate that by using
$INCLUDE files for shared information. That will probably *increase* the
number of files, though...


- Kevin





More information about the bind-users mailing list