473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to create a SubDomain

Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So when
someone browses to //training.wombat.com they will be directed to the IP we
have assigned. I have two questions:

1. how can I do this at design time?

2. how can I do this at run time from my asp.net code?

Thanks,
T
Nov 9 '07 #1
12 3024
Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So
when someone browses to //training.wombat.com they will be directed to the
IP we have assigned.
All they do is purchase wombat. traning.wombat is something they set up
themselves on their DNS server.
1. how can I do this at design time?
2. how can I do this at run time from my asp.net code?
It's a network/DNS/IIS setting...not an application setting.

-Darrel
Nov 9 '07 #2
this are just dns entries. see your network group.
-- bruce (sqlwork.com)
"Tina" wrote:
Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So when
someone browses to //training.wombat.com they will be directed to the IP we
have assigned. I have two questions:

1. how can I do this at design time?

2. how can I do this at run time from my asp.net code?

Thanks,
T
Nov 9 '07 #3
bruce,
Yes I know they are dns entries. Now, can you answer the two questions?
Thanks so much,
T
"bruce barker (sqlwork.com)"
<br*******************@discussions.microsoft.comwr ote in message
news:4A**********************************@microsof t.com...
this are just dns entries. see your network group.
-- bruce (sqlwork.com)
"Tina" wrote:
>Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So
when
someone browses to //training.wombat.com they will be directed to the IP
we
have assigned. I have two questions:

1. how can I do this at design time?

2. how can I do this at run time from my asp.net code?

Thanks,
T

Nov 9 '07 #4
darrel,
Yes. I know. Now can you answer the two questions?
Thanks,
T
"darrel" <no*****@nowhere.comwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
>Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So
when someone browses to //training.wombat.com they will be directed to
the IP we have assigned.

All they do is purchase wombat. traning.wombat is something they set up
themselves on their DNS server.
>1. how can I do this at design time?
2. how can I do this at run time from my asp.net code?

It's a network/DNS/IIS setting...not an application setting.

-Darrel

Nov 9 '07 #5
re:
!Yes I know they are dns entries. Now, can you answer the two questions?
!1. how can I do this at design time?
!2. how can I do this at run time from my asp.net code?

You can't do it at design time and you can't do it from code.

I suggest you read up on what dns servers actually do.

http://en.wikipedia.org/wiki/Domain_name_system

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tina" <Ti**********@nospamexcite.comwrote in message news:OR**************@TK2MSFTNGP03.phx.gbl...
bruce,
Yes I know they are dns entries. Now, can you answer the two questions?
Thanks so much,
T
"bruce barker (sqlwork.com)" <br*******************@discussions.microsoft.comwr ote in message
news:4A**********************************@microsof t.com...
>this are just dns entries. see your network group.
-- bruce (sqlwork.com)
"Tina" wrote:
>>Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So when
someone browses to //training.wombat.com they will be directed to the IP we
have assigned. I have two questions:

1. how can I do this at design time?

2. how can I do this at run time from my asp.net code?

Thanks,
T


Nov 9 '07 #6
Juan,
I just got done reading the entire help file for the DNS server product. It
was nearly a complete education and I now understand levels of domain mames,
subdomains, zones, reverse lookups, etc. It told me nearly everything....

...except how to create a subdomain

I then spent time googling every word combination I could think of such as
"create a subdomain." to no avail. I found a lot of other people asking but
no answers.

It looks like no one else knows either judging by the quality of answers
I've received thus far on this thread.
T

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
re:
!Yes I know they are dns entries. Now, can you answer the two
questions?
!1. how can I do this at design time?
!2. how can I do this at run time from my asp.net code?

You can't do it at design time and you can't do it from code.

I suggest you read up on what dns servers actually do.

http://en.wikipedia.org/wiki/Domain_name_system

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tina" <Ti**********@nospamexcite.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
>bruce,
Yes I know they are dns entries. Now, can you answer the two questions?
Thanks so much,
T
"bruce barker (sqlwork.com)"
<br*******************@discussions.microsoft.comw rote in message
news:4A**********************************@microso ft.com...
>>this are just dns entries. see your network group.
-- bruce (sqlwork.com)
"Tina" wrote:

Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So
when
someone browses to //training.wombat.com they will be directed to the
IP we
have assigned. I have two questions:

1. how can I do this at design time?

2. how can I do this at run time from my asp.net code?

Thanks,
T



Nov 9 '07 #7
at design or runtime its the same, you give the dns server the ipaddress and
domain name. it must a trusted dns server to update the internet. generally
you need to be admin on the dns server to update it.

how will depend on which dns server you are using as the trusted one (by
the internet). if its a windows box, use dns manager. if you are using a
unix based dns server, then you want to use bind.

if you servers have ldap support you can use a ldap library to talk to the
dns server.

-- bruce (sqlwork.com)
"Tina" wrote:
darrel,
Yes. I know. Now can you answer the two questions?
Thanks,
T
"darrel" <no*****@nowhere.comwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So
when someone browses to //training.wombat.com they will be directed to
the IP we have assigned.
All they do is purchase wombat. traning.wombat is something they set up
themselves on their DNS server.
1. how can I do this at design time?
2. how can I do this at run time from my asp.net code?
It's a network/DNS/IIS setting...not an application setting.

-Darrel


Nov 9 '07 #8
bruce,
Thanks for the answer.
T
--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
"bruce barker (sqlwork.com)"
<br*******************@discussions.microsoft.comwr ote in message
news:23**********************************@microsof t.com...
at design or runtime its the same, you give the dns server the ipaddress
and
domain name. it must a trusted dns server to update the internet.
generally
you need to be admin on the dns server to update it.

how will depend on which dns server you are using as the trusted one (by
the internet). if its a windows box, use dns manager. if you are using a
unix based dns server, then you want to use bind.

if you servers have ldap support you can use a ldap library to talk to the
dns server.

-- bruce (sqlwork.com)
"Tina" wrote:
>darrel,
Yes. I know. Now can you answer the two questions?
Thanks,
T
"darrel" <no*****@nowhere.comwrote in message
news:ua**************@TK2MSFTNGP06.phx.gbl...
>Our company domain, say, wombat.com needs to create several
subdomains:
support, training, and purchase are three of the subdomains needed.
So
when someone browses to //training.wombat.com they will be directed to
the IP we have assigned.

All they do is purchase wombat. traning.wombat is something they set up
themselves on their DNS server.

1. how can I do this at design time?
2. how can I do this at run time from my asp.net code?

It's a network/DNS/IIS setting...not an application setting.

-Darrel



Nov 10 '07 #9
(Assuming this isn't a troll question....)

Simply give each DNS record an A record. Alternatively, CNAMES could
point to aliases of already configured subdomains. You realize in
www.whatever.com., www is a subdomain, right?

Controlling DNS records from the application level would be quite
difficult, and I don't see the benefit.

Here's a solution that might work (I don't know how to do it off the top
of my head with IIS, but it can't be difficult): use name-based virtual
hosts. Use a wildcard to resolve all subdomains to a certain host
(GoDaddy supports this feature), then the application could maybe be
programmed to respond differently depending on which subdomain a user's
browser sends in the headers; the browser should pass the subdomain it's
seeking as an environmental variable, and your application can respond
accordingly. When the application checks the environmental variable, it
can deliver a different page based on what host header is supplied by
the browser.

The disadvantage is you couldn't use SSL with name-based vhosts; you
also won't be able to server HTTP 1.0 clients very well (but then,
almost nobody is limited to HTTP 1.0 anymore; most browsers support 1.1,
and many hosting companies use name-based vhosts).

But the advantage is you save IPs and have more flexibility in what
sites to host.

http://httpd.apache.org/docs/2.2/vhosts/ - that's Apache's vhost
configuration info. It won't help with IIS, but it goes into a bit more
detail weighing the advantages and disadvantages than I just did. I
know IIS supports name-based vhosts too. I just don't remember how to do it.

Tina wrote:
Juan,
I just got done reading the entire help file for the DNS server product. It
was nearly a complete education and I now understand levels of domain mames,
subdomains, zones, reverse lookups, etc. It told me nearly everything....

..except how to create a subdomain

I then spent time googling every word combination I could think of such as
"create a subdomain." to no avail. I found a lot of other people asking but
no answers.

It looks like no one else knows either judging by the quality of answers
I've received thus far on this thread.
T

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>re:
!Yes I know they are dns entries. Now, can you answer the two
questions?
!1. how can I do this at design time?
!2. how can I do this at run time from my asp.net code?

You can't do it at design time and you can't do it from code.

I suggest you read up on what dns servers actually do.

http://en.wikipedia.org/wiki/Domain_name_system

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tina" <Ti**********@nospamexcite.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
>>bruce,
Yes I know they are dns entries. Now, can you answer the two questions?
Thanks so much,
T
"bruce barker (sqlwork.com)"
<br*******************@discussions.microsoft.com wrote in message
news:4A**********************************@micros oft.com...
this are just dns entries. see your network group.
-- bruce (sqlwork.com)
"Tina" wrote:

Our company domain, say, wombat.com needs to create several subdomains:
support, training, and purchase are three of the subdomains needed. So
when
someone browses to //training.wombat.com they will be directed to the
IP we
have assigned. I have two questions:
>
1. how can I do this at design time?
>
2. how can I do this at run time from my asp.net code?
>
Thanks,
T
>
>
>

Nov 10 '07 #10
thanks, uh, what's a troll question?
T

"Bolwerk" <bo*****@gmail.comwrote in message
news:13*************@corp.supernews.com...
(Assuming this isn't a troll question....)

Simply give each DNS record an A record. Alternatively, CNAMES could
point to aliases of already configured subdomains. You realize in
www.whatever.com., www is a subdomain, right?

Controlling DNS records from the application level would be quite
difficult, and I don't see the benefit.

Here's a solution that might work (I don't know how to do it off the top
of my head with IIS, but it can't be difficult): use name-based virtual
hosts. Use a wildcard to resolve all subdomains to a certain host
(GoDaddy supports this feature), then the application could maybe be
programmed to respond differently depending on which subdomain a user's
browser sends in the headers; the browser should pass the subdomain it's
seeking as an environmental variable, and your application can respond
accordingly. When the application checks the environmental variable, it
can deliver a different page based on what host header is supplied by the
browser.

The disadvantage is you couldn't use SSL with name-based vhosts; you also
won't be able to server HTTP 1.0 clients very well (but then, almost
nobody is limited to HTTP 1.0 anymore; most browsers support 1.1, and many
hosting companies use name-based vhosts).

But the advantage is you save IPs and have more flexibility in what sites
to host.

http://httpd.apache.org/docs/2.2/vhosts/ - that's Apache's vhost
configuration info. It won't help with IIS, but it goes into a bit more
detail weighing the advantages and disadvantages than I just did. I know
IIS supports name-based vhosts too. I just don't remember how to do it.

Tina wrote:
>Juan,
I just got done reading the entire help file for the DNS server product.
It was nearly a complete education and I now understand levels of domain
mames, subdomains, zones, reverse lookups, etc. It told me nearly
everything....

..except how to create a subdomain

I then spent time googling every word combination I could think of such
as "create a subdomain." to no avail. I found a lot of other people
asking but no answers.

It looks like no one else knows either judging by the quality of answers
I've received thus far on this thread.
T

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>re:
!Yes I know they are dns entries. Now, can you answer the two
questions?
!1. how can I do this at design time?
!2. how can I do this at run time from my asp.net code?

You can't do it at design time and you can't do it from code.

I suggest you read up on what dns servers actually do.

http://en.wikipedia.org/wiki/Domain_name_system

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tina" <Ti**********@nospamexcite.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
bruce,
Yes I know they are dns entries. Now, can you answer the two
questions?
Thanks so much,
T
"bruce barker (sqlwork.com)"
<br*******************@discussions.microsoft.co mwrote in message
news:4A**********************************@micro soft.com...
this are just dns entries. see your network group.
>
>
-- bruce (sqlwork.com)
>
>
"Tina" wrote:
>
>Our company domain, say, wombat.com needs to create several
>subdomains:
>support, training, and purchase are three of the subdomains needed.
>So when
>someone browses to //training.wombat.com they will be directed to the
>IP we
>have assigned. I have two questions:
>>
>1. how can I do this at design time?
>>
>2. how can I do this at run time from my asp.net code?
>>
>Thanks,
>T
>>
>>
>>

Nov 11 '07 #11
Tina wrote:
thanks, uh, what's a troll question?
T
Sorry, I found it odd that you said you knew all about DNS, but didn't
know how to make a subdomain. :-p

I have to warn you, the solution I suggested is pretty inflexible, but I
guess works. I think you'd be better off just using subdirectories.

Good luck
"Bolwerk" <bo*****@gmail.comwrote in message
news:13*************@corp.supernews.com...
>(Assuming this isn't a troll question....)

Simply give each DNS record an A record. Alternatively, CNAMES could
point to aliases of already configured subdomains. You realize in
www.whatever.com., www is a subdomain, right?

Controlling DNS records from the application level would be quite
difficult, and I don't see the benefit.

Here's a solution that might work (I don't know how to do it off the top
of my head with IIS, but it can't be difficult): use name-based virtual
hosts. Use a wildcard to resolve all subdomains to a certain host
(GoDaddy supports this feature), then the application could maybe be
programmed to respond differently depending on which subdomain a user's
browser sends in the headers; the browser should pass the subdomain it's
seeking as an environmental variable, and your application can respond
accordingly. When the application checks the environmental variable, it
can deliver a different page based on what host header is supplied by the
browser.

The disadvantage is you couldn't use SSL with name-based vhosts; you also
won't be able to server HTTP 1.0 clients very well (but then, almost
nobody is limited to HTTP 1.0 anymore; most browsers support 1.1, and many
hosting companies use name-based vhosts).

But the advantage is you save IPs and have more flexibility in what sites
to host.

http://httpd.apache.org/docs/2.2/vhosts/ - that's Apache's vhost
configuration info. It won't help with IIS, but it goes into a bit more
detail weighing the advantages and disadvantages than I just did. I know
IIS supports name-based vhosts too. I just don't remember how to do it.

Tina wrote:
>>Juan,
I just got done reading the entire help file for the DNS server product.
It was nearly a complete education and I now understand levels of domain
mames, subdomains, zones, reverse lookups, etc. It told me nearly
everything....

..except how to create a subdomain

I then spent time googling every word combination I could think of such
as "create a subdomain." to no avail. I found a lot of other people
asking but no answers.

It looks like no one else knows either judging by the quality of answers
I've received thus far on this thread.
T

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl.. .
re:
!Yes I know they are dns entries. Now, can you answer the two
questions?
!1. how can I do this at design time?
!2. how can I do this at run time from my asp.net code?

You can't do it at design time and you can't do it from code.

I suggest you read up on what dns servers actually do.

http://en.wikipedia.org/wiki/Domain_name_system

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Tina" <Ti**********@nospamexcite.comwrote in message
news:OR**************@TK2MSFTNGP03.phx.gbl...
bruce,
Yes I know they are dns entries. Now, can you answer the two
questions?
Thanks so much,
T
"bruce barker (sqlwork.com)"
<br*******************@discussions.microsoft.c omwrote in message
news:4A**********************************@micr osoft.com...
>this are just dns entries. see your network group.
>>
>>
>-- bruce (sqlwork.com)
>>
>>
>"Tina" wrote:
>>
>>Our company domain, say, wombat.com needs to create several
>>subdomains:
>>support, training, and purchase are three of the subdomains needed.
>>So when
>>someone browses to //training.wombat.com they will be directed to the
>>IP we
>>have assigned. I have two questions:
>>>
>>1. how can I do this at design time?
>>>
>>2. how can I do this at run time from my asp.net code?
>>>
>>Thanks,
>>T
>>>
>>>
>>>
Nov 11 '07 #12
Yes. I know. Now can you answer the two questions?

You'd think that someone that 'knows' that would ask this question in a DNS
forum rather than an ASP.net one.

-Darrel
Nov 12 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: vtxr1300 | last post by:
I have a web site that allows users to register. When they register, I'd like to create a subdomain that points to their profile page. Does anyone know how to do this in IIS through a c# asp.net...
1
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and...
0
by: anj.smart | last post by:
Hi:-I have my own webspace www.domain.com. When any new user register on to my site, a new url name www.subdomain.domain.com or www.domain.subdomain.com should be provided to it. I want to provide...
0
by: anjupt | last post by:
Hi, I have wriiten a vb script to create a subdomain and have called that vbscript in Asp.net program.The problem i am not getting the result as in the subdomain is not getting created and there...
0
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User...
3
by: a2rodger | last post by:
I am using the following function and parse_url() to attempt to grab the subdomain from my sites url function selfURL() { $s = empty($_SERVER) ? '' : ($_SERVER == "on") ? "s" : ""; $protocol =...
0
by: devilsjunk | last post by:
Hello Everybody, In my web application I have created an interface where, if any user register then a subdomain will be created with the user name of the user link this manner E.G. :-...
1
by: Josh | last post by:
I have a question about subdomains. I would like my website to have subdomains that essentially show my regular main website, except that the subdomain passes as a variable on all pages so that I...
7
by: lmeyers | last post by:
I implemented a URL rewriter which worked reasonably well, but now I am creating other sites on the same server (single IP). Because IIS will not accept subdomain wildcards (*.subdomain.com), it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.