Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2009
    Location
    Utah, USA
    Posts
    1

    Default xml-api listzones returns differently depending on dns clustering

    Greetings!

    My goal is to obtain a list of domains on a given cPanel server. Our test environment has two servers running cPanel DNS only, and several standard cPanel servers. The setup appears to operate correctly.

    I've been working with the xml api listzones and have noticed that the data it returns is different depending on dns clustering being enabled or not. According to the documentation at
    ListDNSZone < AllDocumentation/AutomationIntegration < TWiki

    This function will generate a list of all domains and corresponding DNS zones associated with your server.
    This appears to hold true if dns clustering is disabled. Once dns clustering is enabled then the results appear to contain all zones from all servers participating in dns clustering. Is this the appropriate and expected behavior for this api?

    As a work around it seems like I could use the listaccts api to get a list of accounts, and loop through each one querying cpanel again with the dumpzone api. While I can perform this two step process, I'd like not to unless needed. What are your thoughts?

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    yes. that is the expected result. The function works the same way as the corresponding WHM Edit a DNS Zone interface. With Clustering enabled all zones in the cluster will be returned.
    Last edited by cpanelkenneth; 08-11-2009 at 03:34 PM. Reason: typo
    Kenneth
    Product Manager
    cPanel, Inc.

Similar Threads & Tags
Similar threads

  1. DNS Setup/edit domain forwarding via XML/JSON API
    By abrakadabra in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 09-02-2011, 06:24 AM
  2. XML-API DNS (killdns response error)
    By paulipv in forum cPanel Developers
    Replies: 2
    Last Post: 07-13-2009, 06:20 PM
  3. createacct xml-api always returns username taken
    By unihost.pl in forum cPanel Developers
    Replies: 9
    Last Post: 04-13-2009, 10:20 AM
  4. /xml-api/listips - returns empty string
    By steelaz in forum cPanel Developers
    Replies: 7
    Last Post: 01-16-2009, 01:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube