Hello cPanelers. I have reseller rights on my webhost, which gives me access to WHM. I've written a script in Perl that uses the WHM API to make new accounts, and this seems to work correctly. However, I'm having trouble figuring out how to do what I want to do, and so I'm hoping someone can offer some advice. Here is what I'd like to do:
When someone registers at my site, I want to automatically create theirname.mydomain.com as a cpanel account. (I can do this now.) Then, perhaps immediately, or perhaps at a later date, I want to also let the user register a domain name through my eNom reseller account. At that time I'd like the domain name to become their site, and the original theirname.mydomain.com to point to the domain name. How do I do this through the API? Does parking a domain on their theirname.mydomain.com do this, or will that cause the parked domain to redirect traffic to the subdomain? I want their URL to be theirdomain.com once they've registered it.
I can make a new account with the domain 'theirname.mydomain.com' and this works, but then how do I later give it it's own domain name through the API? Do I need to make a new account with the new domain name? How do I make a subdomain of my account and point it to their new domain? DNS zones?
Any help would be greatly appreciated. I'm an experience Perl programmer, but I'm new to cPanel and WHM hosting.
Thanks!
-Andrew
When someone registers at my site, I want to automatically create theirname.mydomain.com as a cpanel account. (I can do this now.) Then, perhaps immediately, or perhaps at a later date, I want to also let the user register a domain name through my eNom reseller account. At that time I'd like the domain name to become their site, and the original theirname.mydomain.com to point to the domain name. How do I do this through the API? Does parking a domain on their theirname.mydomain.com do this, or will that cause the parked domain to redirect traffic to the subdomain? I want their URL to be theirdomain.com once they've registered it.
I can make a new account with the domain 'theirname.mydomain.com' and this works, but then how do I later give it it's own domain name through the API? Do I need to make a new account with the new domain name? How do I make a subdomain of my account and point it to their new domain? DNS zones?
Any help would be greatly appreciated. I'm an experience Perl programmer, but I'm new to cPanel and WHM hosting.
Thanks!
-Andrew