Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    4

    Default Whm Cpanel Park API not allowing to park a domain on an existing subdomain

    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

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Whm Cpanel Park API not allowing to park a domain on an existing subdomain

    Hi djow,

    In your arguements to the API2 Park:ark, 'topdomain' should simply be 'sub' (and not the fully qualified subdomain).

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    4

    Default Re: Whm Cpanel Park API not allowing to park a domain on an existing subdomain

    Hi CPanelDavidN,

    thanks for the reply, but if I put only 'sub', it points to the wrong subdomain: sub.maindomain.com
    I need to point to sub.anotherdomain.com not the sub.maindomain.com, is it possible?

    Regards

  4. #4
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Whm Cpanel Park API not allowing to park a domain on an existing subdomain

    what version of cPanel/WHM are you using?

    Thanks,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  5. #5
    Registered User
    Join Date
    Aug 2011
    Posts
    4

    Default Re: Whm Cpanel Park API not allowing to park a domain on an existing subdomain

    WHM 11.30.2 (build 1)
    CLOUDLINUX 5.6 x86_64 standard

    cPanel Version11.30.2.1

    Regards

  6. #6
    Registered User
    Join Date
    Aug 2011
    Posts
    4

    Default Re: Whm Cpanel Park API not allowing to park a domain on an existing subdom

    Is there any solution for this, or is this a bug on the API?

    Thanks

Similar Threads & Tags
Similar threads

  1. Park Domain and add Mail Parking to existing domain
    By hostmedic in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 06-10-2011, 05:02 AM
  2. Park/unpark existing domain
    By wookiee in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-04-2008, 10:41 PM
  3. How to park domain already existing?
    By cosmo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-04-2004, 06:53 PM
  4. How to park domain already existing?
    By cosmo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-04-2004, 05:42 PM
  5. How to park domain already existing?
    By cosmo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-04-2004, 05:41 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube