This function lists a domain's MX records.
Important:
When you disable the DNS role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ listmxs \ domain='example.com'
{- "data": {
- "record": [
- {
- "Line": 1,
- "class": "IN",
- "exchange": "mail.example.com",
- "name": "hostname.example.com",
- "preference": 20,
- "ttl": 86400,
- "type": "MX"
}
]
}, - "metadata": {
- "command": "listmxs",
- "reason": "Records obtained.",
- "result": 1,
- "version": 1
}
}