Click here to Skip to main content
11,567,926 members (40,956 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 2-Oct-12 2:03am
sgjoshi851.4K

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 2-Oct-12 14:54pm
   
Convincing. My 5.
--SA
sgjoshi85 at 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


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2015
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