Free tool
MX records checker
Enter a domain to list its mail servers (MX records) and their priority. No MX records means the domain can’t receive email.
Free · No signup · Protected by Cloudflare Turnstile
MX records tell sending servers where to deliver mail for a domain. The lowest priority number is tried first; higher numbers are fallbacks. If a domain publishes none, mail to it bounces.
Use the lookup before you add a sending domain, when a customer says your mail never arrives, or to see who hosts a company’s email.
How does the MX lookup work?
- Live DNS query
- We ask DNS for the domain’s MX records and sort them by priority.
- Caching
- Answers are cached for up to an hour. “No records” answers are cached for at most 5 minutes, so a fix shows up quickly.
- Timeouts are not “no MX”
- If DNS doesn’t answer, the full email check leaves MX as unknown and doesn’t block. Only a definite empty answer counts as no MX.
- Reading the hosts
- *.l.google.com means Google Workspace or Gmail. *.mail.protection.outlook.com means Microsoft 365. in.mail.tm is a known throwaway service, which the disposable check uses.
Example lookups
| Input | Result | Why |
|---|---|---|
| gmail.com | 5 gmail-smtp-in.l.google.com | Plus alt1 (10) and alt2 (20) fallbacks. |
| github.com | 0 github-com.mail.protection.outlook.com | Hosted on Microsoft 365. |
| mailinator.com | 1 mail.mailinator.com | Receives mail fine. It is still disposable. |
| gmial.com | No MX records | Mail to this typo domain can’t be delivered. |
For developers · GET /check/email/{email}
Use this in your signup flow
You don’t need a separate MX call at signup: the email check looks up MX for the address’s domain. Block only on mx === false. null means the lookup didn’t finish.
curl https://api.piisend.com/api/v1/check/email/jane@gmial.com \
-H "Authorization: Bearer pii_..."
# Response (trimmed)
{
"email": "jane@gmial.com",
"mx": false,
"mx_records": [],
"did_you_mean": "jane@gmail.com",
"recommendation": "block",
"reasons": ["no_mx", "possible_typo"]
}- Authenticate with an API key:
Authorization: Bearer pii_…. Call it from your server, never the browser. - The Free plan includes 1,000 checks a month. Every response has an
X-Checks-Remainingheader; invalid input returns 400 and isn’t counted. - The browser checker on this page is separate and doesn’t use your checks.
When not to block
- When mx is null. The lookup timed out; that is not a “no”.
- Right after a DNS change. Wait for the old record’s TTL to expire, then check again.
- Domains that rely on an A record. The SMTP standard (RFC 5321) lets senders fall back to the A record when there is no MX. Almost no real mailbox works this way, but the check will call it no MX.
FAQ
What is an MX record?
A DNS record that names the server accepting email for a domain, with a priority number. A domain can have several for redundancy.
What does MX priority mean?
Lower numbers are tried first. If gmail-smtp-in.l.google.com (5) is unreachable, senders try alt1 (10), then alt2 (20). Equal numbers share the load.
What if no MX records are found?
Check the spelling first. Otherwise the domain isn’t set up for email, the records were just added and haven’t propagated, or the domain doesn’t exist.
How long until a new MX record shows up?
Up to the TTL of the old record at your DNS host. This tool also caches positive answers for up to an hour.
Does this check SPF or DKIM?
No. MX shows where mail is received. Use the SPF / DKIM / DMARC checker for the records that authenticate mail you send.