Description

This function retrieves a nameserver's IP address.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/lookupnsip?nameserver=ns1.example.com
https://hostname.example.com:2087/cpsess##########/xml-api/lookupnsip?nameserver=ns1.example.com
whmapi0 lookupnsip nameserver=ns1.example.com

{
   "ip":"192.168.0.20"
}
<lookupnsip>
      <ip>192.168.0.20</ip>
</lookupnsip>

   

Parameters

ParameterTypeDescriptionPossible valuesExample
nameserverstring

Required

The nameserver's hostname.

A valid nameserver hostname.ns1.example.com

 

Returns

ReturnTypeDescriptionPossible valuesExample
ipstringThe nameserver's IP address.A valid IP address.192.168.0.20