dnsDeleteRecord
Purpose
Delete DNS record from zone.
Attributes
- domainid - Domain ID OR
- domain - The domain name
- name - The record name
- type - The DNS record type (SOA, NS, A, AAAA, CNAME, MX, TXT, SRV)
- content - Record value - base64_encode
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "dnsDeleteRecord"; $postfields['domain'] = 'domain.hu'; $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_DELETED [description] => Record has been deleted from: domain.hu )
Error Response
result = error code = XXX description = YYYError code and message