Auto-Subdomain creation

Francisco

Verified User
Joined
May 3, 2004
Messages
8
Just wondering has anyone succesfully implemented such a feature in DA ?

The feature would be web based using a simple form, connecting to either a php or perl script that would allow registered users to automatically create their own sub domain, after first checking that the sub domain was available

Thanks :)
 
You can use API to do it :

Phil1 has created a nice script for us to call the APIs,
First you may want to take a good look here :

http://www.directadmin.com/forum/showthread.php?s=&threadid=258


Then call API :
/CMD_API_SUBDOMAINS
Method : POST

domain : the domain to be shown eg: domain.com
action : create
subdomain : the name of the subdomain to be created

Success Return : error=0
Success Return : error=1

It's originally posted here
(You need to scroll a little bit)


You are suggested to examinate the result that the API returned, and get a better understanding!

Good Luck~ :)
 
Back
Top