Click here to Skip to main content
13,000,022 members (45,314 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I have my own domain -
If I want to create subdomain - using c#

Later, when abc user will enter in browser URL, it will open his interface.

How can we achieve this?

Posted 2-Oct-12 2:03am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Answering requests for subdomains is only possible if your DNS (Domain Name Service) software knows about your subdomain.
To create a subdomain from C# you have to write an integration layer to connect with your DNS and create appropriate DNS record in it.
This is obviously only possible if your DNS software offers a kind of API to interact with and that you have admin rights on it.

It is probably easier to send an email to your DNS administrator and ask him to create the subdomain and make it point to the IP adress of your WebServer.
Convincing. My 5.
sgjoshi85 5-Oct-12 1:52am
Thanks a lottt..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100