The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

dnsadmin and zoneeditor.cgi

Discussion in 'cPanel Developers' started by iXanadu, Jun 11, 2008.

  1. iXanadu

    iXanadu Registered

    Joined:
    Oct 4, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have my own dns/nameserver system that uses a MySql db to store zone records. My outlying nameservers query the DB every 4 hours to add, delete or update zones. I do not use the cpanel managed hosting machines as name servers.

    After some research on these boards I started modifying dnsadmin to get & write zone data from my db. Everything was going fine until I got to savezonelocal. Instead of getting all of the individual zone records (managed on the form as line_1_1, line_1_2....) I get zonedata with all of the records in a single string. The original dnsadmin simply writes this string to a file, appends a LF and does a config check. Because I can't get the individual records I'm faced with trying to parse the string to pick out the individual records and update the DB. If zoneeditor.cgi would send zonedata as a well formed xml packet, I could simply parse out what I need.

    zoneeditor.cgi is a compiled script so I can't modify that.

    Can anyone recommend a means supplementing cpanel's dns sub-system. The API is missing critical commands, and I don't cherish parsing string.

    Bob
     
  2. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Cpanel seems lack of DNS management API, and it's DNS management is not so good as well.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You're responding to a thread that is almost a year old. There have been many improvements to our DNS systems since this original post as well as additions to our XML API to accommodate DNS functionality.
     
Loading...
Similar Threads - dnsadmin zoneeditor cgi
  1. FabryB
    Replies:
    1
    Views:
    603

Share This Page