List Reverse DNS

Use List RDNS API to get information about installed RDNS on your server.

HTTP Request

https://hostname:4083/index.php?act=rdns

Parameters

NameTypeValueDescriptionRequired
actGETrdnsThe action will retrieve all RDNS RecordsYes

Sample Code

PHP

<?php
    require_once('/usr/local/virtualizor/sdk/enduser.php');

    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'your_server_ip';

    $admin = new Virtualizor_Enduser_API($ip, $key, $pass);
    $output = $admin->rdns();

    print_r(json_encode($output));  
?>

Curl

curl -k -X GET -L "https://xcp.nuftp.com:4083/index.php?act=rdns&
api=json&apikey=your_api_key&
apipass=your_api_pass"

Output

{
    "uid": "5",
    "act": "rdns",
    "timezone": 1,
    "timenow": "October 14, 2016, 1:15 pm",
    "vpsid": "3587",
    "username": "test@test.com",
    "user_type": "2",
    "preferences": {
        "fname": "",
        "lname": "",
        "theme": "default",
        "language": "english",
        "timezone": 1
    },
    "url": "index.php?",
    "rdns": {
        "pdnsid": "1"
    },
    "pdns": {
        "pdnsid": "1"
    },
    "support_link": "http:\/\/softaculous.com",
    "disable_login_logo": 1,
    "title": "Add Reverse DNS",
    "allowed_ip": {
        "107.189.35.165": {
            "ipid": "210417",
            "ip": "107.189.35.165",
            "ipv6": "0",
            "ipr_ips": "",
            "ipr_netmask": "",
            "vpsid": "3587",
            "hostname": "test_userapi"
        }
    },
    "rdns_records": {
        "15": {
            "id": "15",
            "domain_id": "1",
            "name": "165.35.189.107.in-addr.arpa",
            "type": "PTR",
            "content": "test123.com",
            "ttl": "86400",
            "prio": "0",
            "change_date": "1476446323",
            "ip": "107.189.35.165"
        }
    },
    "time_taken": "0.192"
}
Was this helpful to you?