Return nameserver's IPv4 and IPv6 addresses

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

Authorizations:
query Parameters
host
required
string

The nameserver's hostname.

Example: host=ns1.example.com

Responses

Response Schema: application/json
object
object

Request samples

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

Response samples

Content type
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
    }
}