Forum Moderators: phranque

Message Too Old, No Replies

Creating sub domain

Please help

         

Night_Hawk

8:25 pm on Jan 12, 2003 (gmt 0)

10+ Year Member



I need to creat asub domain to be accessable in the folowing format
[subdomain.mydomain.com...]

where the directory should be in regard to wwwroot on Win2000. Please help.

Night_Hawk

2:29 am on Jan 13, 2003 (gmt 0)

10+ Year Member



This forum must be slow - Anybody out there?

jdMorgan

3:34 am on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Night_Hawk,

Typically a bit slow on weekend-nights...

Hopefully, someone with some Windows 2000 Server experience will come along and be able to point you in the right direction or tell you where to find some documentation.

Jim

txbakers

4:45 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



** bump **

andreasfriedrich

4:56 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



While I have no experience with Windows 2000 server a search on Google returned this how-to: Step-by-Step: Adding a Subdomain using Host Headers in Windows 2000 Server/Advanced Server [dslwebserver.com]

Hope that gives you some pointers.

Andreas

txbakers

6:49 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Andreas. I didn't think it was that easy!

I'm still not sure what the CNAME zone file entry is used for. I thought you used the CNAME with subdomains, but I see now that it isn't so.

Do you know what the CNAME is for?

andreasfriedrich

10:37 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have a look at Oversimplified DNS - CNAME records [rscott.org]

In short CNAME lets you specify lots of alias names for the true/canonical name of a computer.

aaron.domain.tld CNAME server.domain.tld

nick.domain.tld CNAME server.domain.tld

alias.domain2.tld CNAME server.domain.tld

specify that the canonical name for

aaron.domain.tld
,
nick.domain.tld
,
alias.domain2.tld
is
server.domain.tld
. Specifying that some name is simply an alias for another real name prevents you from adding any other records (MX, A, etc) for that alias. It is simply an alias after all so the records for the true/canonical name will apply.

Usually one could use an A record to specify an IP address for

aaron.domain.tld
. But using CNAME gives you an additional abstraction layer. If all alias names are specified using CNAME records then you will only have to change one record when the IP of
servername.domain.tld
changes. If you had used an A record then you would need to change the IP address of
aaron.domain.tld
as well to point to the new IP address of
servername.domain.tld
.

Andreas

andreasfriedrich

10:42 pm on Jan 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I thought you used the CNAME with subdomains, but I see now that it isn't so.

You can do so when the subdomains should be handled by the same maschine as the main domain. The same could be achieved by using the same IP address in A records for each subdomain.

If you want to use seperate IP addresses for subdomains then you would need to use A records for each subdomain.

Specifying subdomains is but one use for CNAME records. Among a lot of other uses CNAME records may be used to specify subdomains.

Night_Hawk

11:12 am on Jan 14, 2003 (gmt 0)

10+ Year Member



Thank you all for your replies,

I finally got a hold of one of the tech support and he made the subdomain point to the main domain to be able to access the pages on the wwwroot with the subdomain

So i think he did not create the subdomain after all. so if you type [subdomain.maindomain.com...]
or [maindomain.com...] you will be taken to the same page but the first is secured and the javascript for the ssl validate and the second one is not secured.

I hope this setup is not going to cause any problems in the future.

Thank you all very much.

AJ