This function retrieves a nameserver's IPv4 and IPv6 addresses.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ lookupnsips \ host='ns1.example.com'
{- "data": {
- "ipv4": "192.0.2.0",
- "ipv6": "2001:0db8:0:0:1:0:0:1"
}, - "metadata": {
- "command": "lookupnsips",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}