This function resolves a domain's IPv4 address.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ resolvedomainname \ domain='example.com'
{- "data": {
- "ip": "192.168.0.20"
}, - "metadata": {
- "command": "resolvedomainname",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}