Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    18

    Default Confused on parameters for XML-API in 11.25

    Hi,
    I am coding a DNS update routine under 11.25 and using the new XML-API DNS calls.

    I am confused over the parameters zone and name and domain. Across the addzonerecord, removezonerecord and editzonerecord there appears to be some differences in use - or maybe I am reading it wrong?


    For addzonerecord it states:
    zone (string) — Name of the zone to be added, expressed like a domain name. Example: example.com
    but also:
    name (string) — The name of the zone record
    so is the zone the domain name and the name the hostname ?

    For removezonerecord it states:
    zone (string) — The domain name whose zone record you wish to remove
    so in this case the zone is the domain name ?

    For editzonerecord it states:
    domain (string) — The domain name whose zone record you wish to edit.
    It doesnt mention zone as a variable except in the example inputs ? Should I specify zone and domain ?
    and
    name (string) — Domain name. Example: example.com
    is this the hostname ?
    Hope this question makes sense and I hope someone can clear my thick brain on this

    cheers

    Jim

  2. #2
    Member
    Join Date
    Feb 2006
    Posts
    18

    Default

    As a follow up and while logged into the WHM I tried this:

    https://mydomain.com:2087/xml-api/editzonerecord?type=ns&name="floppychops.com."&Line=12&nsdname=ns2.myns.com.au&ttl=86400&zone="floppychops.com"&domain="floppychops.com"

    getting this error:

    - <editzonerecord>
    - <result>
    <status>0</status>
    <statusmsg>Invalid domain specified.</statusmsg>
    </result>
    </editzonerecord>

    The line # is correct.
    What I am trying to do is to update the nameserver record at line 12 at floppychops.com to point to ns2.myns.com.au

    Any help ?

    Jim

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    18

    Default

    Guess not - suppose this are is a touch new. I will place a support request to cpanel on the example

    cheers

    jim

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2003
    Location
    Gothenburg, Sweden
    Posts
    324

    Default

    Hey jim

    You should really try their api call debugger logger. It's helped me tremendously while extending Matt's xml-api class in php.

    Looking up cPanel API call parameters

    twitter: oderland_david

Similar Threads & Tags
Similar threads

  1. XML API 2 help
    By Dragonxito in forum cPanel Developers
    Replies: 1
    Last Post: 05-13-2011, 04:23 PM
  2. Looking up cPanel API call parameters
    By cPanelMatt in forum cPanel Developers
    Replies: 2
    Last Post: 04-05-2010, 01:21 AM
  3. XML-API is any of these possible?
    By neo4242002 in forum cPanel Developers
    Replies: 3
    Last Post: 03-17-2008, 01:46 PM
  4. XML API: always get login screen, not XML
    By sldff3ald in forum cPanel Developers
    Replies: 3
    Last Post: 09-19-2007, 09:29 AM
  5. How do I use the xml - api?
    By rhopperger in forum cPanel Developers
    Replies: 3
    Last Post: 05-19-2007, 08:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube