Ascio DNS

PHP 5 Classes SearchZoneNames

Searches for zones and names only.

Search for a zone by name by properties and wildcards. eg. Zones with a Record target that is ascio*. Returns only names (array of string)

Response SearchZoneNames(SearchZoneNames $searchZoneNames)

Response codes

ResultCodeMessageValue
200OK
400Parameter value error - Null or invalid value
401Authorization failed
416Validation failed
204No results found

SearchZoneNames Request

Property
searchZoneClauses

SearchZoneNamesResponse

Property
SearchZoneNamesResult
zoneNames

PHP 5 Classes example

<?php
        require_once(__DIR__."../service/DnsService.php");

	$searchZoneClause =  new ascio\SearchZoneClause();
	$searchZoneClause->setOperator(ascio\SearchOperatorType::Is);
	$searchZoneClause->setSearchZoneField(ascio\SearchZoneField::ZoneName);
	$searchZoneClause->setValue("Mr.");

	$searchZoneClauses =  new ascio\ArrayOfSearchZoneClause();
	$searchZoneClauses->setSearchZoneClause([$searchZoneClause]);
	try {
		 $response = $ascioClient->SearchZoneNames(new ascio\SearchZoneNames($searchZoneClauses));
        } catch (\Exception $e) {
    		echo ("[".$e->faultcode . "] ". $e->faultstring);
	    	return;
        
        }
	$result = $response->SearchZoneNamesResult;
	echo "Code: ".$result->getResultCode()."\n";
	echo "Message: ".$result->getResultMessage()."\n";  
	return $result;
}
searchZoneNamesExample();
WSDL AscioDns
https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl (OTE)
https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.