Create dns record

				
					StructOperationResponse domainZoneCreate(string idSession, string domain, string subdomain, string type, string value, StructOptionsZone options) 
				
			

Create a DNS record into the domain zonefile.

REQUIRED

  • idSession string (32)
    Session ID.
  • domain string (255)
    Domain name.
  • subdomain string (255)
    Sub domain.
  • type string
    Type of DNS record (A / AAAA / MX / CNAME / TXT / NS / SRV).
  • value string (150)
    Value of the new DNS record.
OPTIONAL

  • options object (StructOptionsZone)
    Custom settings of the new record as StructOptionsZone object.

An Object of type StructOperationResponse

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
$structOptionsZone = array('service' => '', 'protocol' => '', 'ttl' => '', 'priority' => '', 'weight' => '', 'port' => ''); 
 
try
{
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");      
      $StructOperationResponse = $clientSOAP->domainZoneCreate($idSession, "netim.com", "www", "A", "192.168.0.1", $structOptionsZone);
 
      print_r($StructOperationResponse);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->sessionClose($idSession);
}
?>