Best way for multiple domains with same-name

Kevin Darcy kcd at daimlerchrysler.com
Fri May 11 22:41:41 UTC 2001


syn uw wrote:

> Hello,
>
> I would like to know what you guys suggest in the case of registering a
> domain under mutiple top levels domains for example a company has
> companyname.com and companyname.co.uk. Of course the machines are exactly
> the same so www.companyname.com and www.comanyname.co.uk would point to the
> same machine. What is the best way to do that with BIND ? Should I keep two
> separate copies and always modify in both files when I change something (so
> each files mirrors the other except for the domain name). Or is there an
> other solution ?

If all of the information in each domain is identical in "absolute" (e.g. the
mail server for all of the domains is foo.example.com regardless of what
domain it is) and/or "relative" (e.g. the mail server for a.com is mail.a.com,
the mail server for b.com is mail.b.com and so forth) terms, then you can have
multiple zone definitions all referring to the same zone file: just use
dot-terminated names for the absolute references, (e.g.
"foo.example.com.") and short/unqualified names (e.g. "mail" with no dots) for
the relative references.

If you want different information in each domain, though (e.g. the mail server
for companyname.com is mail1.example.com but the mail server for
companyname.co.uk is mail2.example.com), then this approach doesn't work.


- Kevin




More information about the bind-users mailing list