DomainChangeDNS

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Replaces the DNS servers of the domain (redelegation)

StructOperationResponse domainChangeDNS(string idSession, string domain, string ns1, string ns2, string ns3, string ns4, string ns5)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain name
string (255) ns1 Name server DNS 1
string (255) ns2 Name server DNS 2
string (255) ns3 Name server DNS 3
string (255) ns4 Name server DNS 4
string (255) ns5 Name server DNS 5


Return

A structure StructOperationResponse


Notes

The number of required DNS servers must match the semantic rules of the extension. See Category:Tld
A DNS test may be required according to the extension. See zonecheck in Category:Tld 


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse = $clientSOAP->domainChangeDNS($idSession, "netim.com", "ns1.netim.com", "ns2.netim.com", "", "", ""); 
 
      print_r($StructOperationResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>


Release Runtime
API > 1.0 Asynchronous


Description

Replaces the DNS servers of the domain (redelegation)

int domainChangeDNS(string idSession, string domain, string ns1, string ns2, string ns3, string ns4, string ns5)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain name
string (255) ns1 Name server DNS 1
string (255) ns2 Name server DNS 2
string (255) ns3 Name server DNS 3
string (255) ns4 Name server DNS 4
string (255) ns5 Name server DNS 5


Return

A tracking ID


Notes

The number of required DNS servers must match the semantic rules of the extension. See Category:Tld
A DNS test may be required according to the extension. See zonecheck in Category:Tld 


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $trackingID = $clientSOAP->domainChangeDNS($idSession, "netim.com", "ns1.netim.com", "ns2.netim.com", "", "", ""); 
 
      echo($trackingID); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


Langage JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
int trackingID; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      trackingID = port.domainChangeDNS(idSession, "netim.com", "ns1.netim.com", "ns2.netim.com", "", "", ""); 
      System.out.println(trackingID); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous