DomainsDNSListRecords

List al DNS records for domain.

Input

Parameter Value Example value
domain Domain without extension.
Eg "versio.uk" you enter "versio".
Parameter is required
versio
tld Domain extension.
Eg "versio.uk" you enter "uk".
Parameter is required
uk


Output

Parameter Value Example value
success command executed successfully 0 = error
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Total recordss
Only sent when value parameter success = 1
20
id_X Record ID (numeric).
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
45221
name_X DNS record name.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
|DOMAIN|
type_X Type DNS record.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
MX
value_X DNS Record value.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
127.0.0.1
prio_X DNS prio. Only for MX records.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
10
ttl_X DNS TTL in seconds.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
14400


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DomainsDNSListRecords", "domain" => "domein", "tld" => "ext" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['id_'.$teller]; ?></td> <td><? echo $versio['name_'.$teller]; ?></td> <td><? echo $versio['type_'.$teller]; ?></td> <td><? echo $versio['value_'.$teller]; ?></td> <td><? echo $versio['prio_'.$teller]; ?></td> <td><? echo $versio['ttl_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No DNS records found for this domain."); } } ?>