Click here to Skip to main content
15,885,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have my own domain - www.XXX.com
If I want to create subdomain - abc.XXX.com using asp.net c#

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

How can we achieve this?

Thanks,
Sneha
Posted

1 solution

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-Oct-12 14:54pm    
Convincing. My 5.
--SA
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900