Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to create a SubDomain

Reply
Thread Tools

How to create a SubDomain

 
 
Tina
Guest
Posts: n/a
 
      11-09-2007
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


 
Reply With Quote
 
 
 
 
darrel
Guest
Posts: n/a
 
      11-09-2007
> 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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?YnJ1Y2UgYmFya2VyIChzcWx3b3JrLmNvbSk=?=
Guest
Posts: n/a
 
      11-09-2007
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
>
>
>

 
Reply With Quote
 
Tina
Guest
Posts: n/a
 
      11-09-2007
darrel,
Yes. I know. Now can you answer the two questions?
Thanks,
T
"darrel" <> wrote in message
news:...
>> 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
>



 
Reply With Quote
 
Tina
Guest
Posts: n/a
 
      11-09-2007
bruce,
Yes I know they are dns entries. Now, can you answer the two questions?
Thanks so much,
T
"bruce barker (sqlwork.com)"
< > wrote in message
news:4A4D51B9-6D51-429C-93E2-...
> 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
>>
>>
>>



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      11-09-2007
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" <> wrote in message news:...
> bruce,
> Yes I know they are dns entries. Now, can you answer the two questions?
> Thanks so much,
> T
> "bruce barker (sqlwork.com)" < > wrote in message
> news:4A4D51B9-6D51-429C-93E2-...
>> 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
>>>
>>>
>>>

>
>



 
Reply With Quote
 
Tina
Guest
Posts: n/a
 
      11-09-2007
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" <> wrote in message
news:%...
> 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" <> wrote in message
> news:...
>> bruce,
>> Yes I know they are dns entries. Now, can you answer the two questions?
>> Thanks so much,
>> T
>> "bruce barker (sqlwork.com)"
>> < > wrote in message
>> news:4A4D51B9-6D51-429C-93E2-...
>>> 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
>>>>
>>>>
>>>>

>>
>>

>
>



 
Reply With Quote
 
=?Utf-8?B?YnJ1Y2UgYmFya2VyIChzcWx3b3JrLmNvbSk=?=
Guest
Posts: n/a
 
      11-09-2007
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" <> wrote in message
> news:...
> >> 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
> >

>
>
>

 
Reply With Quote
 
GaryDean
Guest
Posts: n/a
 
      11-10-2007
bruce,
Thanks for the answer.
T
--
Regards,
Gary Blakely
Dean Blakely & Associates
www.deanblakely.com
"bruce barker (sqlwork.com)"
< > wrote in message
news:23667DBB-3144-42BC-84D6-...
> 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" <> wrote in message
>> news:...
>> >> 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
>> >

>>
>>
>>



 
Reply With Quote
 
Bolwerk
Guest
Posts: n/a
 
      11-10-2007
(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" <> wrote in message
> news:%...
>> 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" <> wrote in message
>> news:...
>>> bruce,
>>> Yes I know they are dns entries. Now, can you answer the two questions?
>>> Thanks so much,
>>> T
>>> "bruce barker (sqlwork.com)"
>>> < > wrote in message
>>> news:4A4D51B9-6D51-429C-93E2-...
>>>> 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
>>>>>
>>>>>
>>>>>
>>>

>>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to create virtual subdomain in asp.net c# by http handlers. saurabhm Software 0 10-13-2009 09:56 AM
across subdomain authentication failed on one subdomain while workingon other one saify ASP .Net Security 0 09-28-2009 07:27 AM
ASP/ASP.NET page that reacts a special way to items coming from a particular subdomain (programmatically testing subdomain?) Ken Fine ASP .Net 3 02-29-2008 05:35 AM
Create subdomain Roshawn ASP .Net 3 11-13-2006 06:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57