Return nameserver's IPv4 and IPv6 addresses

This function retrieves a nameserver's IPv4 and IPv6 addresses.

SecurityBasicAuth
Request
query Parameters
host
required
string

The nameserver's hostname.

Example: host=ns1.example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/lookupnsips
Request samples
whmapi1 --output=jsonpretty \
  lookupnsips \
  host='ns1.example.com'
Response samples
application/json
{
  • "data": {
    • "ipv4": "192.0.2.0",
    • "ipv6": "2001:0db8:0:0:1:0:0:1"
    },
  • "metadata": {
    • "command": "lookupnsips",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}