Hello!
I've wrote a script using cpanel XML API. Cpanel version is 11.30.6(build 3). The script written in perl using corresponding perl modules.
The script edites the reseller's domain changes NSes and SOA, adds IN A records for new nameservers to zone.
All these done as denoted in cpanel docs, i.e EditZoneRecord < SoftwareDevelopmentKit < TWiki and so on.
Firstly I dump domain and get SOA and NSes records, for instance:
soa: 4
ns:11, 12
Next I'm adding IN A record:
htps://server.com:2087/xml-api/addzonerecord?domain=aaaaaaaaaa.com&name=ns1.aaaaaaaaaa.com.&address=192.168.0.10&type=A&class=IN
Next I'm editting IN NS record, using this URL
htps://server.com:2087/xml-api/editzonerecord?domain=aaaaaaaaaa.com&Line=11&nsdname=ns1.aaaaaaaaaa.com
And each time I'm getting the following error
NS update error 'aaaaaaaaaa.com' domain. Reason: 'Failed to serialize record: unknown error'
Please, would you like to get me a key to solve this problem?
--
Thank you for any assistance.
I've wrote a script using cpanel XML API. Cpanel version is 11.30.6(build 3). The script written in perl using corresponding perl modules.
The script edites the reseller's domain changes NSes and SOA, adds IN A records for new nameservers to zone.
All these done as denoted in cpanel docs, i.e EditZoneRecord < SoftwareDevelopmentKit < TWiki and so on.
Firstly I dump domain and get SOA and NSes records, for instance:
soa: 4
ns:11, 12
Next I'm adding IN A record:
htps://server.com:2087/xml-api/addzonerecord?domain=aaaaaaaaaa.com&name=ns1.aaaaaaaaaa.com.&address=192.168.0.10&type=A&class=IN
Next I'm editting IN NS record, using this URL
htps://server.com:2087/xml-api/editzonerecord?domain=aaaaaaaaaa.com&Line=11&nsdname=ns1.aaaaaaaaaa.com
And each time I'm getting the following error
NS update error 'aaaaaaaaaa.com' domain. Reason: 'Failed to serialize record: unknown error'
Please, would you like to get me a key to solve this problem?
--
Thank you for any assistance.