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!

Api / Dns

Discussion in 'cPanel Developers' started by monaghan, Apr 25, 2008.

  1. monaghan

    monaghan Well-Known Member

    Joined:
    Jan 7, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    156
    Looking at the on-site documentation I can't see anything for this.

    I'd like to be able to modify the DNS records for a domain via the API. I'm wanting to be able to list, add new, modify existing and delete existing DNS entries for a domain. Ideally I'd like to be able to run this at a user account level, but would be happy to take this up to the reseller level and go in via the WHM API if necessary.

    Any suggestions?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The only DNS entry I can think of modifying via the currently available APIs is the MX entry using API1/API2 via the XML-API.

    Here's a related feature request you can comment on and vote for:

    http://bugzilla.cpanel.net/show_bug.cgi?id=6211
     
  3. monaghan

    monaghan Well-Known Member

    Joined:
    Jan 7, 2004
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    156
    If the zonefiles were updated outside of cpanel/whm would this break things when cpanel/whm made changes? Would changes still get replicated to a cpanel/DNS only slave server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rejected

    rejected Well-Known Member

    Joined:
    Sep 19, 2006
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    If you can code you could login to WHM and screen scrape the DNS pages... Which could create a DNS API for you :) I have a perl socket server using PAM auth for my dns now .. You could always write something along those lines
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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