Edit record

dnsEditRecord

Purpose

Edit existing DNS record into zone.

Attributes

  • domainid - Domain ID OR
  • domain - The domain name
send domain id *or* domain
  • 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 = YYY
Error code and message
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Retrieve full zone

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

Add record

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

Delete record

dnsDeleteRecord Purpose Delete DNS record from zone. Attributes domainid - Domain ID OR...