Return nameserver's IP address

This function retrieves a nameserver's IP address.

Authorizations:
query Parameters
host
required
string <domain>

The nameserver's hostname.

Example: host=ns1.example.com

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  lookupnsip \
  host='ns1.example.com'

Response samples

Content type
application/json
{
  • "data": {
    • "ip": "192.168.0.20"
    },
  • "metadata": {
    • "command": "lookupnsip",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}