dnsEditRecord
Purpose
Edit existing DNS record into zone.
Attributes
- domainid - Domain ID OR
- domain - The domain name
- name - The new record name
- type - The new DNS record type (SOA, NS, A, AAAA, CNAME, MX, TXT, SRV)
- content - new Record value - base64_encode
- prio - The new record's preference
- ttl - The new record's Time To Live
- oldname - Original name of the record
- oldtype - Original DNS record type
- oldcontent - Original DNS conzent - base64_encode
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "dnsEditRecord"; $postfields['domain'] = 'domain.hu'; $postfields['oldname'] = 'teszt.domain.hu'; $postfields['oldtype'] = 'A'; $postfields['oldcontent'] = '192.168.1.1'; $postfields['name'] = 'teszt.domain.hu'; $postfields['type'] = 'A'; $postfields['content'] = '192.168.1.2'; $postfields['ttl'] = '3600'; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array ( [status] => success [code] => RECORD_EDITED [description] => Record has been edited in: domain.hu )
Error Response
result = error code = XXX description = YYYError code and message