Return domain's IP address

This function resolves a domain's IPv4 address.

Authorizations:
query Parameters
domain
required
string <domain>

The domain.

Example: domain=example.com

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  resolvedomainname \
  domain='example.com'

Response samples

Content type
application/json
{
  • "data": {
    • "ip": "192.168.0.20"
    },
  • "metadata": {
    • "command": "resolvedomainname",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}