Skip to main content

Unable to add DNS zone via API

Comments

3 comments

  • cPanelMichael
    Hello :) I was unable to reproduce this issue. Are you using a valid security token in the URL? For example, my test request looked like this: https://1.2.3.4:2087/cpsess5542266702/xml-api/adddns?domain=cptesting.com&ip=1.2.3.4&template=standard&trueowner=root
    Also, do you notice the same issue across multiple browsers? Thank you.
    0
  • btaylor927
    I hadn't done, but I was assuming that using curl with the -u flag handled the security authentication?
    0
  • cPanelMichael
    [quote="btaylor927, post: 1548721">I hadn't done, but I was assuming that using curl with the -u flag handled the security authentication?
    That's correct. I just noticed that you were using "curl" in the example you provided. I tested again using curl this time, and it still worked as expected. Do you experience the same problem when using this method to add the zone directly via the command line instead of through your custom script? Thank you.
    0

Please sign in to leave a comment.