Delete Reverse DNS

Use Delete RDNS API to delete existing RDNS information on your server.

HTTP Request

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

Parameters

NameTypeValueDescriptionRequired
actGETrdnsThe action will delete the rdns recordYes
deletePOSTdelrdnsThe rdns entry to be deletedYes

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);
    $post['delete'] = 24;

    $output = $admin->rdns($post);

    print_r(json_encode($output));


?>

Curl

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

Output

{
    "uid": "5",
    "act": "rdns",
    "timezone": 1,
    "timenow": "October 17, 2016, 1:05 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",
    "done": {
        "msg": "The rDNS record has been deleted",
        "goto": "act=rdns"
    },
    "deleted": 1,
    "allowed_ip": {
        "107.189.35.165": {
            "ipid": "210417",
            "ip": "107.189.35.165",
            "ipv6": "0",
            "ipr_ips": "",
            "ipr_netmask": "",
            "vpsid": "3587",
            "hostname": "test_userapi"
        },
        "192.168.3.6": {
            "ipid": "6",
            "ip": "192.168.3.6",
            "ipv6": "0",
            "ipr_ips": "",
            "ipr_netmask": "",
            "vpsid": "3587",
            "hostname": "test_userapi"
        },
        "192.168.11.5": {
            "ipid": "7",
            "ip": "192.168.11.5",
            "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.082"
}
Was this helpful to you?