Retrieving one or all existing MX Records using the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.

See RFC 1035 for more information about MX records.

REST Syntax

Click to view all REST Resources
/REST/MXRecord/ GET — Retrieve one or all existing MX Records on the zone/node indicated.

HTTP Action — GET

URIs:

Get one MX Record — https://api.dynect.net/REST/MXRecord/<zone>/<fqdn>/<record_id>/

Get MX Records — https://api.dynect.net/REST/MXRecord/<zone>/<fqdn>/

Arguments:

No Arguments.

Response:

Get one MX record — Click for More Info

Get all MX records — array — Individual MX Record resources.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands
GETOneMXRecord — Retrieve one existing MX Record on the zone/node indicated.

GETMXRecords — Retrieve all existing MX Records on the zone/node indicated.

Arguments:

GetOneMXRecord — Click for More Info

GetMXRecords — Click for More Info

Response:

GetOneMXRecord — Click for More Info

GetMXRecords — Click for More Info

Example Request(GetOneMXRecord) — Click for More Info

Example Request (GetMXRecords) — Click for More Info