One IP, multiple domains pointing to it

David McMahon spammers at suck.org
Sat Aug 7 21:38:29 UTC 1999


Barry Margolin <barmar at bbnplanet.com> wrote in message
news:LCoq3.38$34.805 at burlma1-snr2...
> 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.

Hello Barry,

I'm wondering if it is more complicated than that.  I'm now (trying to)
host two domains on my single IP machine.  I've set up the
zone files as described above.  The name servers for domain1 (seein.to)
are at register.com where I registered the domain name.  I've had to move
the name servers for domain2 (toolix.com) over to granitecanyon because
register.com won't config the toolix.com zone files to be slaves for my
unpublished master/primary.  Why do one and not the other?  Who
knows...great customer service I guess!

Anyway, I think that may be the source of my current problem.
Having changed the name servers on the register.com admin page to
the granitecanyon name servers, and going through the process at
granitecanyon of telling them about ns.toolix.com, I would expect to
see those servers when I do an nslookup, but I'm seeing what appears
to be the zone info for seein.to and I'm wondering if, being the same
IP address, the granitecanyon nameservers are grabbing the seein.to
zone data from my machine.  I cannot ping or access
http://www.toolix.com

Here's the toolix.com nslookup (which again looks just like my seein.to
lookup!):

> server ns1.granitecanyon.com
Default Server:  ns1.granitecanyon.com
Address:  199.239.20.4

> ls -d toolix.com
[ns1.granitecanyon.com]
 toolix.com.                    SOA   ns.toolix.com root.toolix.com.
(199908051 10800 3600 604800 86400)
 toolix.com.                    NS    ns.toolix.com
 toolix.com.                    NS    dns5.register.com
 toolix.com.                    NS    dns6.register.com
 toolix.com.                    MX    0    toolix.com
 toolix.com.                    MX    10   mail.flashcom.net
 toolix.com.                    A     209.67.233.3
 localhost                      A     127.0.0.1
 mail                           CNAME toolix.com
 www                            CNAME toolix.com
 ns                             A     209.67.233.3
 ftp                            CNAME toolix.com
 toolix.com.                    SOA   ns.toolix.com root.toolix.com.
(199908051 10800 3600 604800 86400)


Is this due to the fact that I've got two domain names' name servers trying
to look at my single IP machine?  Or is granitecanyon just slow getting
my zone info or slow publishing it?  Or have I indeed set up my zone
data on this machine incorrectly?

Any ideas?

Any assistance is much appreciated!

Dave McMahon (djm at xnospammin--seein.to)





More information about the bind-users mailing list