Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

xml-api listzones returns differently depending on dns clustering

Discussion in 'cPanel Developers' started by morgans, Aug 10, 2009.

  1. morgans

    morgans Registered

    Aug 10, 2009
    Likes Received:
    Trophy Points:
    Utah, USA

    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 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. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Apr 7, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelKenneth, Aug 11, 2009
    Last edited: Aug 11, 2009

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice