API Docs

This functionality of the Ubiquity API has been disabled. Looking for information on this transition to LeaseWeb? Click here for answers to FAQs and here for information on the LeaseWeb customer portal. Click here for information about the Leaseweb API.

Get to know list_rdns_entries

Overview: list_rdns_entries returns a list of rDNS entries associated with the public IP addresses of the provided device.

list_rdns_entries expects either of the following parameters:

  • [device_id] – The identifier of a device.
  • [ip_addresses] – A list of ip addresses to display the rDNS entries of.

Example:

$params = array(
	    'device_id' => 1
	);
$api->call('dns.list_rdns_entries', $params);

Output:

Array
	(
	    [status] => 1
	    [data] => Array
	        (
	            [192.168.0.2] => 192.168.0.2.rdns.ubiquity.io
	            [192.168.0.3] => 192.168.0.3.rdns.ubiquity.io
	            [192.168.0.4] => 192.168.0.4.rdns.ubiquity.io
	            [192.168.0.5] => 192.168.0.5.rdns.ubiquity.io
	            [192.168.0.6] => 192.168.0.6.rdns.ubiquity.io
	        )
	)