Delete record

dnsDeleteRecord

Purpose

Delete DNS record from zone.

Attributes

  • domainid - Domain ID OR
  • domain - The domain name
send domain id *or* domain
  • 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 = YYY
Error code and message
  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

Retrieve full zone

dnsGetZone Purpose   Attributes domainid - Domain ID OR domain - The domain name send...

Edit record

dnsEditRecord Purpose Edit existing DNS record into zone. Attributes domainid - Domain ID...

Add record

dnsAddRecord Purpose Add new record into DNS zone. Attributes domainid - Domain ID OR...