API Commands
[All Commands]

Command: Get_DNS_Info



command Get_DNS_Info

DNS analyzer

Input Parameters ($data):

string ssid Token from Login
string domain Registered domain
string dnstype DNS analyze (1 - DNS from the register, 2- Diagnostics of Gransy DNS , 0 - no response)

Output Responses:

string status ok | error
int data Details about your request
 
int in_zone DNSSEC is active in SUBREG DNS zone
int dnssec DNSSEC is active on the domain
array dns Dns analyze
int nameserver Nameserver
array anydata Any records
string type Type
string data Data
array nslist NS list
string soaid SOA ID

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'exampledomain.com',
    
'dnstype' => '1',
  ),
);

$response $client->__call("Get_DNS_Info",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => exampledomain.com [dnstype] => 1 ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [in_zone] => 1 [dnssec] => 1 [dns] => Array ( [0] => Array ( [nameserver] => ns.exampledomain.com [anydata] => Array ( [0] => Array ( [type] => A [data] => 11.11.111.111 ) [1] => Array ( [type] => MX [data] => test.exampledomain.com ) ) [nslist] => Array ( [0] => ns.exampledomain.com [1] => ns1.exampledomain.com [2] => ns2.exampledomain.com ) [soaid] => 2017091904 ) [1] => Array ( [nameserver] => ns1.exampledomain.com [anydata] => Array ( [0] => Array ( [type] => A [data] => 11.11.111.111 ) [1] => Array ( [type] => MX [data] => test1.exampledomain.com ) ) [nslist] => Array ( [0] => ns.exampledomain.com [1] => ns1.exampledomain.com [2] => ns2.exampledomain.com ) [soaid] => 2017091904 ) ) ) )

API Manual - version from 2023-05-12 12:15:50