subdomains

Barry Margolin barmar at bbnplanet.com
Tue Mar 7 17:50:40 UTC 2000


In article <8a2d26$otu29 at nova.entelchile.net>, axc <axc at cv.cl> wrote:
>i have a domain hosted on hypermart.net
>http://www.fotoradar.com
>and would like to have multiple subdomains
>like sales.fotoradar.com or abc.fotoradar.com
>i understand is it not posible on hypermart, but I wonder
>if maybe using the free dns server granitecanyon.com
>I could change some record so this domains all point to the
>same address www.fotoradar.com and then use a cgi script
>to send the users to diferent sub directories on the same site
>please help any advise is welcome

To make them all point to the same address, use CNAME records:

sales.fotoradar.com. CNAME www.fotoradar.com.
abc.fotoradar.com.   CNAME www.fotoradar.com.

In the CGI script, look at the HTTP_HOST variable to get the hostname that
was used.

-- 
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