Change DNS

				
					StructOperationResponse domainChangeDNS(string idSession, string domain, array nameservers)
				
			

Replace the DNS servers of the domain (redelegation).

REQUIRED


  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • nameservers array (0-13)
    Nameserver list

An Object of type StructOperationResponse

  • The minimal number of nameservers must match the requirements of the extension.
  • A DNS test may be performed prior the registration. See structdomaintldinfo.HasZonecheck
$clientSOAP = new SoapClient('https://URL.wsdl');

$nameservers = array(
    1 => ['name' => 'ns1.netim.net'],
    2 => ['name' => 'ns2.netim.net']
);

try {
    $idSession = $clientSOAP->sessionOpen('AA001_user', 'xxxxxxxx');
    $structOperationResponse  = $clientSOAP->domainChangeDNS($idSession, 'example.com', $nameservers);
    print_r($structOperationResponse);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}

if (isset($idSession)) {
    $clientSOAP->sessionClose($idSession);
}