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!

Possible to do a simple "A" record update using a URL via the API?

Discussion in 'cPanel Developers' started by electric, Apr 24, 2014.

  1. electric

    electric Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    737
    Likes Received:
    4
    Trophy Points:
    318
    Hello,

    I need to update a single "A" record in the DNS for a domain. The 'trick' is that I can only use a single URL. Is this possible?

    For example, something simple like this:

    /api/?pw=pass&un=user&hostname=my.domain.com&ip=newip

    Unfortunately, I'm not able to do the update with a script or anything like that... I can only specify a single URL.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You could utilize ZoneEdit::edit_zone_record as documented here:

    cPanel API2 - ZoneEdit

    For information on how to construct a URL to perform an API call, read our API Shell for cPanel documentation.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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