Email DNS
Look up a domain's MX records
List the mail servers of a domain with their priorities, detect null MX records and identify the email provider.
How to read the result
The header of the card counts the MX records found. The rows below it read as follows.
| Field | What it means | What to do with it |
|---|---|---|
| Records | The number of MX records published for the exact name you entered. | Zero with a NOERROR response means the domain names no mail server. Read the implicit MX rule below before you write the domain off. |
| DNS response | The response code of the MX query: NOERROR, NXDOMAIN (the name does not exist), SERVFAIL (no usable answer), REFUSED (a server declined the query) or TIMEOUT (no resolver answered in time). |
Only NOERROR gives a complete list. Fix the spelling after NXDOMAIN. Retry SERVFAIL and TIMEOUT later, and check the domain's name servers if they persist. |
| Email provider | The mail service whose host names match the MX records. It can be a mailbox host, a filtering gateway or a forwarding service. Empty when no known pattern matches, which is normal for self-hosted mail. | Confirm that inbound mail reaches the service you expect. After a migration, this row should name the new provider. |
| Null MX | Yes when the domain publishes the RFC 7505 record 0 ., a statement that it accepts no email. |
Treat every address at this domain as undeliverable. Publish one yourself on domains that never receive mail. |
| MX 10, MX 20 | One row per record. The number in the label is the preference, the value is the mail server's host name. Rows are sorted from the lowest preference. | Senders try the lowest number first. Check that each host has an A or AAAA record with the DNS lookup tool. |
| Mailbox check (SMTP) | Locked. The email verifier connects to the domain's mail server on port 25 and asks whether one exact mailbox accepts mail. It never sends a message. | Use it when you need an answer about an address, not only its domain. Needs a free account. |
| Bulk CSV upload | Locked. Verifies a CSV of up to 2,000,000 email addresses; every row includes this MX check. | Needs a free account. |
| API access | Locked. The email endpoint runs the same MX resolution for every address it verifies, along with SPF and DMARC presence, for 1 credit per address. | Needs a free account, which includes 100 credits every month. |
Without an account you get 10 free checks a day.
How the check works
- The tool keeps the host name of what you typed. A bare domain is used as is. For an email address it takes everything after the @, and for a URL it takes the host. Internationalized names are converted to their ASCII form, which starts with
xn--. - It sends one MX query over DNS over HTTPS to Cloudflare's public resolver, 1.1.1.1. If that query errors, times out or comes back
SERVFAILorREFUSED, the same query goes to Google Public DNS. - Each answer is split into a preference and a host name. Host names are lowercased, the trailing dot is dropped, and the records are sorted by preference.
- A record whose host is the DNS root, written
., marks a null MX. - The host names, lowest preference first, are compared with the domain suffixes of known mail services. The first match names the provider. A null MX domain gets no provider.
What the check cannot see:
- It does not connect to the servers. Whether port 25 answers, whether the server accepts mail for this domain and whether a mailbox exists are questions for the SMTP check.
- It does not resolve the MX host names. A record that points to a host without an A or AAAA record looks normal here and still fails for every sender.
- The answer comes from a recursive resolver, which caches records for their TTL. Right after a change you can see the old list for up to one TTL, and other resolvers may hold older or newer copies.
- Routing behind the MX hosts, such as a gateway that forwards to a mailbox host, is not published in DNS.
MX preference and the delivery order
RFC 5321 section 5.1 tells a sending server how to use the records. Lower preference numbers are tried first, and only the order matters: 10 and 20 behave like 1 and 2. When several records share a number, the sender must pick among them at random to spread the load. If none of the preferred hosts can be reached, it moves to the next number. If every host fails, it keeps the message in its queue and retries; RFC 5321 section 4.5.4.1 says the give-up time generally needs to be at least four to five days.
| Records published | What a sending server does |
|---|---|
10 mx1.example.com and 20 mx2.example.com |
Delivers to mx1. Uses mx2 only when mx1 cannot be reached. |
10 mx1.example.com and 10 mx2.example.com |
Picks one of the two at random for each delivery. |
| No MX, but an A or AAAA record | Delivers to the domain's own address, as if it had 0 example.com. This is the implicit MX rule of RFC 5321 section 5.1. |
0 . and nothing else |
Makes no attempt. The domain says it takes no mail (RFC 7505). |
| No MX and no A or AAAA record | Has nowhere to deliver and bounces the message. |
The implicit MX rule cuts both ways. A domain with no MX but with a web server's A record can technically receive mail on that web server, if something listens on port 25 there. Our email endpoint is stricter and reports such a domain with the reason domain_no_mx. If a domain should receive email, publish an explicit MX record and remove the guesswork.
Null MX (RFC 7505)
A null MX is a single record with preference 0 and an empty host, written as a dot:
example.com. 3600 IN MX 0 .
It must be the only MX record of the domain. RFC 7505 gives servers two reply codes to use with it. A server that relays mail for its users should reject a recipient at a null MX domain with 556 and the enhanced status code 5.1.10. A receiving server may reject mail whose envelope sender domain has a null MX, with 550 and 5.7.27, since no reply to that sender could ever be delivered.
Publish a null MX on parked domains and on domains that only serve a website. Pair it with an SPF record of v=spf1 -all, which authorizes no server to send for the domain, and a DMARC record with p=reject. Check both with the SPF checker and the DMARC checker.
What the provider row tells you
The provider is read from host names alone, so it describes where mail goes first, not necessarily where it is stored.
| The MX records point to | What it means | What to check |
|---|---|---|
| A mailbox provider | Mailboxes live with that service. | Compare the records with the provider's own setup guide, which lists the exact hosts and preferences it expects. |
| A filtering gateway | Mail is scanned there, then relayed to a mailbox host that is not visible from outside. | Nothing in DNS reveals the mailbox host. Ask the domain's administrator if you need it. |
| A forwarding service | Mail is re-sent to another mailbox. At the final destination it arrives from the forwarder's servers, so SPF for the original sender fails there unless the forwarder rewrites the envelope sender. | Senders to this domain should sign with DKIM, which survives forwarding when the message is not modified. |
| An inbound email API | An application receives the mail and processes it, for example to turn replies into support tickets. | There may be no human mailbox behind the address at all. |
| Nothing the tool recognizes | Self-hosted mail, or a provider that is not in the list. | An empty row is not an error. Check that the hosts resolve. |
Switching email providers without losing mail
| When | Step |
|---|---|
| At least one old TTL before the switch | Lower the TTL of the MX records, for example to 300 seconds, so the change spreads quickly. |
| At the switch | Replace the old records with the new ones in a single edit. Do not keep the old hosts at a higher number as a safety net: senders fall back to them whenever the new hosts cannot be reached, and that mail lands in the old service. |
| Right after | Look up the domain here until the provider row names the new service, then send a test message from an outside account. |
| During the transition | Keep the old mailboxes reachable. Mail delivered there before every cache expired is still waiting to be read or moved. |
| Once stable | Raise the TTL again. Remove the old provider from your SPF record if it no longer sends mail for you, which also frees DNS lookups. |
MX mistakes that break delivery
| Mistake | Why it breaks | Fix |
|---|---|---|
| The MX value is an IP address | RFC 5321 requires a domain name in the MX data field, one that returns at least one A or AAAA record. | Create a host name with an A or AAAA record and point the MX at it. |
| The MX value is a CNAME | RFC 2181 section 10.3 says an MX value must not be an alias. Some senders follow it, others refuse. | Point the MX at the canonical host name. |
| The MX host has no address record | Senders find the host name and then nowhere to connect. | Add the A or AAAA record, or correct the host name. |
| No trailing dot in a zone file | In master file syntax (RFC 1035 section 5.1), a name without a final dot is relative, so mx1.example.com becomes mx1.example.com.example.com. |
Write mx1.example.com. with the dot, or use a DNS panel that adds it for you. |
| The old provider's records stayed after a migration | Senders keep delivering part or all of the mail to the old service, depending on the preferences. | Remove the old records once the new provider receives mail. |
| A backup MX that accepts any recipient | It must later bounce mail for addresses that do not exist, and those bounces go to whatever sender the message carried, forged or not. | Give the backup the list of valid recipients and the same filtering, or remove it. |
When mail to a domain does not arrive
Start with DNS when a bounce says the domain could not be found, or when messages sit in your outbox. Work through it in this order:
- Look up the recipient domain here.
NXDOMAINmeans a typo or an expired domain, so confirm the address with the recipient. - Zero records with
NOERRORmeans the domain relies on the implicit MX rule or does not receive mail at all. A null MX settles it: the domain refuses email. - If records exist, check each host with the DNS lookup tool for an A or AAAA record. A host that resolves nowhere explains a stuck queue.
- Compare the provider with what the recipient expects. After a migration, leftover records can still send mail to the old service.
- If DNS is clean, the problem lies further along: the mailbox, the receiving filters or your own sending reputation. The email verifier tests the mailbox, and the IP blacklist check tests your sending address.
The same checks protect a signup form. An address whose domain has no mail server, or a null MX, will never receive your confirmation email. The email endpoint returns those addresses with the reasons domain_no_mx and domain_null_mx. The signup form guide shows where to call it, and the email endpoint reference lists every field it returns.
Same check through the API
One HTTPS call, one credit. The response below is the real schema returned by the API.
curl https://api.qelka.com/v1/email \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"email":"jane@exmaple.com","mode":"fast"}'const response = await fetch("https://api.qelka.com/v1/email", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
email: "jane@exmaple.com",
mode: "fast",
}),
});
const result = await response.json();{
"id": "lkp_01M84QZDZG5EJDJJE338NYR2ZA",
"object": "email",
"input": "jane@exmaple.com",
"status": "unknown",
"reason": "smtp_not_checked",
"did_you_mean": "jane@example.com",
"checks": {
"syntax": true,
"mx": true,
"smtp": null,
"catch_all": null,
"disposable": false,
"role": false,
"free_provider": false
},
"domain": {
"name": "exmaple.com",
"spf": true,
"dmarc": true
},
"score": 55,
"credits_used": 1,
"cached": false
}Bulk and pricing
- Upload a CSV of up to 2,000,000 rows from the dashboard or the API, pick the column, get the results back as a CSV.
- Every check costs 1 credit, live phone lookups cost 3. Cached results are billed the same way; calls that fail upstream are not billed.
- The free plan includes 100 credits every month. Paid plans start at $29 for 10,000 credits.
Frequently asked questions
What is an MX record?
What does the number before each mail server mean?
Can a domain receive email without an MX record?
domain_no_mx. If a domain should get email, publish an explicit MX record.What is a null MX record?
0 .. Defined in RFC 7505, it states that the domain accepts no email at all, so senders can fail at once instead of retrying for days. A domain that publishes it must not publish any other MX record. It suits parked domains and domains that only serve a website.Can an MX record point to a CNAME or an IP address?
How many MX records should a domain have?
What happens when two MX records have the same priority?
How long does an MX record change take to work?
Why does the provider row show a security company instead of my mailbox host?
Does a valid MX record mean an email address exists?
Why does the lookup return NXDOMAIN or SERVFAIL?
NXDOMAIN means the name does not exist in DNS: check the spelling, or whether the domain has expired. SERVFAIL means the resolver could not get a usable answer, for example because the domain's name servers are unreachable or its DNSSEC signatures fail validation. Senders treat SERVFAIL as temporary: they queue the message, retry, and bounce it if the problem outlasts their retry window.Can I look up MX records for many domains at once?
Can I paste an email address or a URL instead of a domain?
xn--, before the query is sent. MX records belong to an exact name, so www.example.com and example.com can return different results.What is the difference between an MX record and an A record?
Why does a domain that receives mail show no MX records?
www. If the name is right, the domain relies on the implicit MX rule and receives mail on its A or AAAA address. A record created minutes ago can also hide behind a cached negative answer: resolvers keep "no record" answers for a time set by the zone's SOA record (RFC 2308).Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.