One IP, multiple domains pointing to it

Barry Margolin barmar at bbnplanet.com
Thu Aug 5 22:54:35 UTC 1999


In article <rqk2u010kur14 at corp.supernews.com>,
David McMahon <spammers at suck.org> wrote:
>My linux box is currently hosting a single domain.  How do I set up
>the zone data to accept another domain?  It's one machine with one
>IP address.
>
>I added another entry to /etc/named.conf:
>
>zone "domain2.com" in {
>        type master;
>        file "zone/domain2.com";
>};
>
>And then just copied zone/domain1.com to zone/domain2.com and
>changed all the domain1 strings to domain2, including the MX record
>for the primary mail exchanger.

That's all you have to do.

>Now, I've got the zone/ files for 0.0.127.in-addr.arpa and
>333.222.111.in-addr.arpa that contain data for domain1.
>What do I have to do with these files for domain2 if anything?

If you have any machines in domain2.com that have addresses in the
111.222.333 network, you'll need to add PTR records for them to this
reverse domain.  This is true no matter what domain the host is in.
However, if they both point to the same IP address, it's not critical that
you create multiple PTR records (I generally recommend that you pick a
single name to use for the PTR record).

>I haven't found any clear explainations/examples of multi-domain/
>single-ip zone data anywhere, not even in O'Reilly's DNS and BIND!
>If it's in there and I'm missing it, got a page #?

The reason there's nothing in there is because there's nothing special to
say.  You set up the second domain exactly the same way as the first
domain.  I don't understand why people think this is more complicated than
it is.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list