Two Domain Names Using 1 IP Address

Ernest Cespedes ernestc at intimesw.com
Thu Apr 6 02:16:49 UTC 2000



I'm currently in a 'bind' right now and was wondernig if someone
in the list can help.

We just registered another  domainname to our company and would
like to include [or point] to our existing domain.  So, for example,
if one were to go to www.newdomain.com,  I want it to go
to www.currentdomain.com website.

New domain:  intime-online.com
Current domain:  intimesw.com

I read the new edition of DNS and BIND book by Albitz & Liu (O'Reilly),
but didn't find any information of having two domainnames pointing to
one.

I'm running Solaris 7 and Bind  8.x, we are the primary controller of
our
domain and our ISP as secondary.

I can resolve the new domain with nslookup, but when I try
and resolve the new www.newdomain.com, it fails.  Here's the
transcript:

======================================================

 Default Server:  intime99.intimesw.com
 Address:  216.15.114.17

> set type=any
 > intime-online.com.
> Server:  intime99.intimesw.com
> Address:  216.15.114.17
>
> Non-authoritative answer:
> intime-online.com       nameserver = DNS1.DNAI.COM
> intime-online.com       nameserver = INTIME99.INTIMESW.COM
>
> Authoritative answers can be found from:
> intime-online.com       nameserver = DNS1.DNAI.COM
> intime-online.com       nameserver = INTIME99.INTIMESW.COM
> DNS1.DNAI.COM   internet address = 207.181.192.141
> INTIME99.INTIMESW.COM   internet address = 216.15.114.17
> >
> > www.intime-online.com.
> Server:  intime99.intimesw.com
> Address:  216.15.114.17
>
> *** intime99.intimesw.com can't find www.intime-online.com.: Server
failed
>
 ========================================================

Here's what I've done so far and below are the corresponding files:


==============================================

             Config of /etc/named/named.conf   file:

// This is the second and new domain name for InTime Software
//
// It starts here...
//
zone "intime-online.com" in {
        type master;
        file "named.forward-online";
};

// This is the Primary domain name (intimesw.com)

zone "intimesw.com" in {
        type master;
        file "named.forward-online";
};

=============================================
;  New domain configuration
;
Copy of /etc/named/named.forward-online   file:

;  SOA rec  /etc/named/named.forward-online
 ;
 intime-online.com.      IN      SOA     intime99.intimesw.com.
 ernestc.intimesw.com. (
                         2000040512      ; serial number
                         3600            ; REFRESH every 3 hours
                         900             ; RETRY every 15 mins if
REFRESH fails
                         604800          ; EXPIRE after a week
                         3600 )          ; MINIMUM TTL of 60 minutes
 ;
 ;        NS Records
 ;
 intime-online.com.      IN      NS      intime99.intimesw.com.
 ;
 ;        Host Addresses
 ;
 intime-online.com.      IN      A       216.15.114.17
 ;
 ;        Aliases
 ;
 www.intime-online.com.  IN      CNAME   intime-online.com.
 ;
 ========================================

Copy of  /etc/named/named.forward  file


;  SOA rec  /etc/named/named.forward
;
intimesw.com.   IN      SOA     intime99.intimesw.com.
ernestc.intimesw.com. (
                        2000040502      ; serial number
                        3600            ; REFRESH every 3 hours
                        900             ; RETRY every 15 mins if REFRESH
fails
                        604800          ; EXPIRE after a week
                        3600 )          ; MINIMUM TTL of 60 minutes
;

;
intimesw.com.           IN      NS      intime99.intimesw.com.
intimesw.com.           IN      NS      dns1.dnai.com.
;
;
intimesw.com.           IN      MX 10   intime99.intimesw.com.
intimesw.com.           IN      MX 20   bmx.dnai.com.
;
localhost                   IN      A       127.0.0.1

;
intime99.intimesw.com.  IN      A       216.15.114.17
intime99.intimesw.com.  IN      MX 10   intime99.intimesw.com.
intime99.intimesw.com.  IN      MX 20   bmx.dnai.com.
17.intimesw.com.            IN      PTR     intime99.intimesw.com.
;
;
;  Secondary Name Server
;
dns1.dnai.com.                  IN      A       207.181.192.141
;
;
; CNAME  Note that intime99 serves as everything
;
mailhub.intimesw.com.   IN      CNAME   intime99.intimesw.com.
mailhost.intimesw.com.  IN      CNAME   intime99.intimesw.com.
www.intimesw.com.       IN      CNAME   intime99.intimesw.com.
ftp.intimesw.com.       IN      CNAME   intime99.intimesw.com.

=============================================




Any help/suggestions are highly appreciated.

Regards,

-Ernie




More information about the bind-users mailing list