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.

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:
    697
    Likes Received:
    1
    Trophy Points:
    18
    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!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page