473,659 Members | 3,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3049
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************ *******@discuss ions.microsoft. comwrote in message
news:4A******** *************** ***********@mic rosoft.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*****@nowher e.comwrote in message
news:ua******** ******@TK2MSFTN GP06.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**********@n ospamexcite.com wrote in message news:OR******** ******@TK2MSFTN GP03.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************ *******@discuss ions.microsoft. comwrote in message
news:4A******** *************** ***********@mic rosoft.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.comwrot e in message
news:%2******** ********@TK2MSF TNGP05.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**********@n ospamexcite.com wrote in message
news:OR******** ******@TK2MSFTN GP03.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*********** ********@discus sions.microsoft .comwrote in message
news:4A******* *************** ************@mi crosoft.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*****@nowher e.comwrote in message
news:ua******** ******@TK2MSFTN GP06.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************ *******@discuss ions.microsoft. comwrote in message
news:23******** *************** ***********@mic rosoft.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*****@nowher e.comwrote in message
news:ua******* *******@TK2MSFT NGP06.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.comwrot e in message
news:%2******** ********@TK2MSF TNGP05.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**********@n ospamexcite.com wrote in message
news:OR******* *******@TK2MSFT NGP03.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********** *********@discu ssions.microsof t.comwrote in message
news:4A****** *************** *************@m icrosoft.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

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

Similar topics

6
3860
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 page? Thanks.
1
2487
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 http://picturestore.newpicturestore.com/test - the first one works - the counter using session state increases every time the button is clicked. The second one uses subdomain forwarding with masking. The "picturestore"
0
1212
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 sub-domain name in the above form and then they will be stored in the MS-SQL database with relation to ASP.net Please help me with this.
0
1016
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 is no error as well. I am working on windows 2003 server and IIIS version is 6 I tried following methods and its same for all . 1) Dim objWShell = CreateObject("WScript.Shell") 'objWShell.Run("cscript c:\autohost\host.vbs nnnm ...
0
1696
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 clicks on link that points to the subdomain demo/somesite.com. Is it possible to retain the authentication information for the subdomain, so that there is no need to log in again?
3
33602
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 = strleft(strtolower($_SERVER), "/").$s; $port = ($_SERVER == "80") ? "" : (":".$_SERVER); return $protocol."://".$_SERVER.$port.$_SERVER; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } $url = selfURL(); $uri =...
0
2152
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. :- http://subdomain.domain.com This works fine. Now if any user name contains special character like underscore then the subdomain only takes the character before underscore. For example if I register with devils_acc06 then the created subdomain URL is...
1
1688
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 can use the subdomain as a variable to customize details. For example, the home page at www.thesite.com would have a set of information displayed, but the subdomain (subdomain.thesite.com) would display certain additional details. Am I...
7
4958
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 resolves the subdomain traffic back to the default site (e.g. the site with empty host header). From there it is possible to rewrite and pass the traffic back to correct web app and use the referring agent to get original url, but this gets messy in...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7359
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2754
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.