Update Domain Nameservers Print

  • 1

domainupdatenameservers

Purpose

This command is used to update the nameservers of a domain

Attributes

  • domainid - Domain ID OR
  • domain - The domain name
  • ns1 - nameserver1
  • ns2 - nameserver2
send domain id *or* domain

Optional Attributes

  • ns3 - nameserver3
  • ns4 - nameserver4
  • ns5 - nameserver5

Example Command

$postfields = array();
$postfields["responsetype"] = "json";

$postfields["action"] = "domainupdatenameservers";
$postfields["domain"] = "domain.tld";
$postfields["ns1"] = "ns1.onlyfordemo.net";
$postfields["ns2"] = "ns2.onlyfordemo.net";

$result = mikrovps_SendCommand( $postfields );

Successful Response

result  = success

Error Response

result = error
message = Domain Not Found

Domain ID not found

result = error
message = ns1 and ns2 required

Nameserver1 and 2 are missing or not entered

result = error
message = Registrar Error Message
error = xxx

Error values


Was this answer helpful?

« Back