Description

This function performs a DNS lookup on a domain.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$lookup_dnszone = $cpanel->api1('Net','dnslookup', array('example.com') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $lookup_dnszone = $cpliveapi->api1('Net','dnslookup', ['example.com'] ); # Call the function.

<cpanel Module="Net::dnslookup( $FORM('example.com'))">
cpapi1 --user=username Net dnslookup

example.com has address 192.0.32.10<br />

Parameters

ParameterTypeDescriptionPossible valuesExample
dnszonestring

Required

The domain name.

A valid domain name on the cPanel account.

example.com

Returns

This function returns the results of the domain query.