15 users online | 15 Guests and 0 Registered

Update Nameservers


require_once 'inc/jsonRPCClient.php';
  
$resellAPI = new jsonRPCClient('http://api.resell.al/server.php');
  
try {
  
$postfields = array();
  
$postfields[Username] = "name@webhost.al";
  
$postfields[Password] = "*****";
  
  
//--------------- UPDATE NAMESERVERS

$postfields["tld"] = "al";
$postfields["sld"] = "freedomain";
$postfields["ns1"] = "ns1.titanserver.net";
$postfields["ns2"] = "ns2.titanserver.net";
$postfields["ns3"] = "ns3.titanserver.net";
$postfields["ns4"] = "ns4.titanserver.net";
  
  
$result = $resellAPI->UpdateDomainNS($postfields);

  
} catch (Exception $e) {
  
echonl2br($e->getMessage()).'<br />'."\n";
  
}
Last update:
2013-10-06 23:11
Author:
admin
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.