Adding NS records and SOA records
I am wanting to add NS records and SOA records but cPanel doesn't give me the option to add those through the interface. I see from the API that I can add a record via
I set up a Basic Auth header. I try to POST and I receive a
Do I not have the correct URL to POST to? Why is it returning apiversion 2 when I specified 1? Do I need to use something other than Basic Auth? Can I generate a token another way than using Basic Auth? Can I do this without Postman and configure something in the cPanel interface so that I can add NS and SOA records? Any help would be great.
I set up a Basic Auth header. I try to POST and I receive a
{"cpanelresult":{"apiversion":"2","error":"Token denied","data":{"reason":"Token denied","result":"0"},"type":"text"}}Do I not have the correct URL to POST to? Why is it returning apiversion 2 when I specified 1? Do I need to use something other than Basic Auth? Can I generate a token another way than using Basic Auth? Can I do this without Postman and configure something in the cPanel interface so that I can add NS and SOA records? Any help would be great.
-
Can I do this without Postman and configure something in the cPanel interface so that I can add NS and SOA records?
Hello, Support for NS and SOA record manipulation through cPanel or cPanel UAPI/API 2 functions is not currently offered. I encourage you to open a feature request for the ability to modify the "NS" records, and vote/add feedback to the following feature request: Move SOA record management to Advanced Zone Editor Do you have root access to the system? If so, the following WHM API 1 function would allow you to make these modifications: WHM API 1 Functions - editzonerecord - Software Development Kit - cPanel Documentation Thank you.0
Please sign in to leave a comment.
Comments
1 comment