API Commands
[All Commands]

Command: Get_DNS_Zone



command Get_DNS_Zone

List of DNS records for specified domain.

Input Parameters ($data):

string ssid Token from Login
string domain Registered domain

Output Responses:

string status ok | error
array data Details about your request
 
string domain Registered domain for which records are returned
array records List of records identified by IDs
int id ID of the record
string name Hostname
string type Type of DNS record
string content Value of this record (IP address, hostname, text value etc.)
int prio Priority of this record (MX records only)
int ttl TTL value

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',
  ),
);

$response $client->__call("Get_DNS_Zone",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => exampledomain.com ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [domain] => exampledomain.com [records] => Array ( [0] => Array ( [id] => 160 [name] => sub [type] => CNAME [content] => anotherdomain.com [prio] => 0 [ttl] => 1800 ) [1] => Array ( [id] => 161 [name] => [type] => A [content] => 1.2.3.4 [prio] => 0 [ttl] => 900 ) ) ) )

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