Return domain's IP address

This function resolves a domain's IPv4 address.

SecurityBasicAuth
Request
query Parameters
domain
required
string <domain>

The domain.

Example: domain=example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/resolvedomainname
Request samples
whmapi1 --output=jsonpretty \
  resolvedomainname \
  domain='example.com'
Response samples
application/json
{
  • "data": {
    • "ip": "192.168.0.20"
    },
  • "metadata": {
    • "command": "resolvedomainname",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}