cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

DNS → Return domain's mail exchanger records

AI-generated

Summary

Retrieve the mail exchanger (MX) records for a specified domain from the WHM DNS service.

Inputs

  • Domain (required) — The domain name of the DNS zone whose mail exchanger records you want to retrieve.

Output shape

a list of the mail exchanger (MX) records associated with the specified domain.

The operation requires providing the domain name as a mandatory input query parameter 'domain'. The returned data corresponds to WHM API response containing MX record details. No additional optional parameters are supported.

Links

Discussion