Update Domain Nameservers

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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Domain WHOIS

domainwhois Purpose This command is used to perform a whois lookup on a specified domain....

Release Domain

domainrelease Purpose This command is used to send a Release command to the registrar...

Toggle ID Protect

domaintoggleidprotect Purpose This command is used to toggle the ID Protection status of a...

Get Domain WHOIS

domaingetwhoisinfo Purpose This command is used to obtain the WHOIS of a domain from the...

Update Lock Status

domainupdatelockingstatus Purpose This command is used to update the lock state of a domain...