Logo
22ndjan API Documentation

Mail eXchange (MX records)

GET {{dns_service}}/{{domain}}/mx

MX stands for Mail eXchange. MX Records tell email delivery agents where they should deliver your email. You can have many MX records for a domain, providing a way to have redundancy and ensure that email will always be delivered.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "question": [ { "name": "getpostman.com.", "type": "MX", "class": "IN" } ], "answer": [ { "name": "getpostman.com.", "type": "MX", "class": "IN", "ttl": 299, "rdlength": 19, "rdata": "1 aspmx.l.google.com." }, { "name": "getpostman.com.", "type": "MX", "class": "IN", "ttl": 299, "rdlength": 22, "rdata": "10 aspmx2.googlemail.com." }, { "name": "getpostman.com.", "type": "MX", "class": "IN", "ttl": 299, "rdlength": 11, "rdata": "10 aspmx3.googlemail.com." }, { "name": "getpostman.com.", "type": "MX", "class": "IN", "ttl": 299, "rdlength": 27, "rdata": "32767 ms41315438.msv1.invalid." }, { "name": "getpostman.com.", "type": "MX", "class": "IN", "ttl": 299, "rdlength": 9, "rdata": "5 alt1.aspmx.l.google.com." }, { "name": "getpostman.com.", "type": "MX", "class": "IN", "ttl": 299, "rdlength": 9, "rdata": "5 alt2.aspmx.l.google.com." } ] }



Curl
curl -X GET 'dns_service/domain/mx'

ENDPOINTS