I'm trying to use the Xml API, to park a domain (example.com) to an existing subdomain (sub.anotherdomain.com).
maindomain.com is the main domain registered for my user (reseller account)
anotherdomain.com is an already parked domain, and it points to maindomain.com
sub.anotherdomain.com is an existing and active subdomain
when I try to park another domain (example.com) to point to sub.anotherdomain.com, using:
$xmlapi->api2_query($username,'Park', 'park', array('domain'=>'anotherdomain.com','topdomain'=>'sub.anotherdomain.com'));
or
$xmlapi->api1_query($username,'Park', 'park', array('anotherdomain.com','sub.anotherdomain.com'));
I get an error message:
sub.anotherdomain.com.maindomain.com is not a valid domain name
No matter what I do, It always append the maindomain.com to the topdomain parameter.
Using de WHM UI > DNS Functions > Park a Domain, it works fine.
How can I resolve this, calling the API?
Thanks in advance
ApiPark < ApiDocs/Api1 < TWiki
ApiPark < ApiDocs/Api2 < TWiki



LinkBack URL
About LinkBacks
Reply With Quote
ark, 'topdomain' should simply be 'sub' (and not the fully qualified subdomain).




