Help center
How to find the MX records of a domain
Look up the mail servers of any domain with dig, nslookup or a free MX lookup, and read priorities, null MX records and the provider behind them.
Updated 2026-11-23
Ask DNS for the domain's MX records with dig +short MX example.com, or use the free MX lookup. The answer lists mail servers and priorities: lowest number first. The records show where mail goes and usually who hosts it. They never show whether a specific mailbox exists.
What you get back
An MX record names a server and a priority:
10 mx1.mailprovider.example.
20 mx2.mailprovider.example.
Senders use the lowest priority number first. A single record with priority 0 and a dot as target is a null MX (RFC 7505): the domain accepts no mail.
Free way
Use any one of these:
- The free MX lookup. It shows the records, priorities, null MX detection and the provider behind them.
digon macOS and Linux:
dig +short MX example.com
nslookupon Windows, macOS and Linux:
nslookup -type=MX example.com
- The DNS lookup tool, which also shows A, TXT, NS and other records.
If the answer is empty, the domain has no MX records. RFC 5321 lets senders fall back to the domain's address record, but many verifiers treat such a domain as unable to receive mail.
With the API
The email endpoint checks the MX records as part of every verification, and reports the result as a yes or no, not as the list:
curl https://api.qelka.com/v1/email \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "jane@example.com", "mode": "fast"}'
It costs 1 credit. Read:
{
"status": "deliverable",
"checks": { "syntax": true, "mx": true },
"domain": { "name": "example.com", "spf": true, "dmarc": true }
}
| Field | Meaning |
|---|---|
checks.mx |
true when the domain has MX records naming mail servers. false when it has none or a null MX. Null when it could not be checked. |
reason |
domain_not_found, domain_no_mx or domain_null_mx explain an undeliverable result. |
To see the actual records, use the free tool or dig. See the email reference.
Read the result
- Provider. Hostnames hint at hosting: a large mailbox provider, a filtering gateway or the company's own server. A filtering gateway often explains catch-all behaviour.
- Several priorities. Normal. The higher numbers are backups.
- One server, priority 0, dot target. Null MX. Do not send mail.
- No records. Check for typos before concluding the domain is dead.
When MX is not enough
MX shows where mail goes. To see who may send mail from the domain, check its SPF record. To test a mailbox, use Verify an email without sending.
Common mistakes
- Asking for A records. Use the MX type.
- Forgetting the trailing dot. Hostnames in DNS answers end with a dot. It is normal.
- Reading the priority as importance across domains. It only orders servers within one domain.
- Using a cached or local resolver result after a change. Query a public resolver or wait for the TTL.
- Treating MX as proof of a mailbox. It proves the domain receives mail.
Related
Frequently asked questions
What is an MX record?
What does a priority number mean in MX records?
What is a null MX record?
domain_null_mx.Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time