DNS
Resolvers

Return nameserver's IPv4 and IPv6 addresses

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

get/lookupnsips

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Query parameters

hoststring required
Example:ns1.example.com

The nameserver's hostname.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "ipv4": "192.0.2.0",
    "ipv6": "2001:0db8:0:0:1:0:0:1"
  },
  "metadata": {
    "command": "lookupnsips",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.