Get dns records list

				
					StructOperationResponse WebHostingZoneList(string $IDsession, string $domain)
				
			

Return all records of a DNS zone.

REQUIRED

  • idSession string (32)
    Session ID.
  • domain string
    Domain name.

An Object of type StructQueryZoneList

Perimeter : Applies only web hosting.

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