Check DNS zone

				
					array domainZoneCheck(string $IDsession, string $domain, array $nameservers)
				
			

Investigates the state of the domain name from the top to the bottom of the DNS tree.

REQUIRED

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

An Array containing the check informations


  • result bool (255)
    Check result
  • data string
    Check data

The data key contains an Array of structures, each with the following keys :


  • module string
    Test module
  • level string
    Severity
  • message string
    Error message

$soapClient = new SoapClient("http://URL.wsdl");

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'abc123465!');

    $nameservers [
        ['name' => 'ns1.netim.net', 'IPv4' => '198.50.216.33'],
        ['name' => 'ns2.netim.net'],
    ];

    $soapClient->domainZoneCheck($idSession, 'netim.com', $nameservers);

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

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