Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Add a subdomain from ASP or ASP.NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add a subdomain from ASP or ASP.NET

 Post Reply Post Reply
Author
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Topic: Add a subdomain from ASP or ASP.NET
    Posted: 04 September 2005 at 1:33pm
I want to add a subdomain (john.mydomain.com) like that, when someone registers to one of my services, I run a DNS server, and I'm wondering what is needed to do this from ASP, or ASP.NET.

I can do it manually on the DNS and IIS server, but it would be great if this could be done programatically, therefor automating the system.

Each subdomain would be served from a different directory with the same name, created at the time of registration.

I would prefer doing it with ASP, but if it can only be done from .NET, then so be it.

Anyone?
Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2005 at 5:37pm
I'm not sure how you'd do that, but my gut reaction is that you'll need a COM object in ASP to do the real work. As for .NET, not sure, but if it can be done, then you should be able to do it in .NET without COM.

Then again, I'm just shooting in the dark.

I'd look into how you can interact with the DNS service through .Net for an answer - as well as IIS where you'd create a new site automatically.

Search engine spammers do a lot of this type of thing on Apache and PHP, but I don't know what tools they use other than the httpd Apache file.

I hope that kindof helps...

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2005 at 5:45pm
To create a new IIS site you can use WMI (Windows Management Intrumentation) with .NET. You can also access WMI using ASP/COM using WScript I think.

Here's how to do it in C#, the basics should be the same in ASP http://weblogs.asp.net/jezell/archive/2003/09/17/27869.aspx

I'm guessing that creating a subdomain on your DNS server will be specific to your server, take a look throught the docs. It will no doubt have some kinda COM API
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.