Return nameserver's IP address

This function retrieves a nameserver's IP address.

SecurityBasicAuth
Request
query Parameters
host
required
string <domain>

The nameserver's hostname.

Example: host=ns1.example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/lookupnsip
Request samples
whmapi1 --output=jsonpretty \
  lookupnsip \
  host='ns1.example.com'
Response samples
application/json
{
  • "data": {
    • "ip": "192.168.0.20"
    },
  • "metadata": {
    • "command": "lookupnsip",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}