Get Virtualizor

Add Reverse DNS zone

Use the Add Reverse DNS zone API for adding the reverse dns zone to the PowerDNS server's database. These reverse DNS zone allow resolution of the IP address to a valid domain name. Both IPv4 and IPv6 type of zone records can be added using this API. The API response will contain "done" as "true" after the record is added successfully.

HTTP Request



actGETrdnsThe action will add a rdns zoneYes
zone_namePOSTtextWe specify the zone name here, refer below table for valid valuesYes
ns1POSTtextThis takes the nameserver valueYes
ns2POSTtextThis takes the nameserver valueYes
ns3POSTtextThis takes the nameserver valueNo
ns4POSTtextThis takes the nameserver valueNo
pdnsidPOSTIntThis specifies the pdnsid that has to be included with the rdnsYes

Zone Name Specification


Sample Code



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

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['pdnsid'] = 1;
    $post['rdns'] = 1;
    $post['ns1'] = '';
    $post['ns2'] = '';   
    $post['zone_name'] = '';
    $post['hostmasteremail'] = '';

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




    "title": "Add Reverse DNS Zone",
    "done": "true",
    "timenow": "1480659350",
    "time_taken": "0.130"
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list