Free tool

MX record lookup

List a domain's mail servers in priority order, resolve each one to its addresses, spot broken MX records and see which mail provider runs them.

Last updated 2026-11-11 · Verified 2026-11-11 by the Sendly team

How a receiving server checks mail that claims to be from your domainFive steps from top to bottom. 1, connection: the sender finds the receiving server from MX records and the receiver can check the sending IP against blocklists. 2, the message carries a Return-Path, a DKIM signature and a From address. 3a, SPF checks the sending server against the Return-Path domain's record; 3b, DKIM verifies the signature with the key at the selector. 4, DMARC asks whether a domain that passed aligns with From, and its policy decides the rest. 5, an aligned pass is treated as your mail and can show a BIMI logo; without one, p=none delivers, p=quarantine sends to spam, p=reject refuses.1 · CONNECTIONA sender finds the receiving server from therecipient domain's MX records, and the receivercan check the sending IP against blocklists.2 · YOUR MESSAGEReturn-Path: bounce@mail.example.comDKIM-Signature: d=example.com; s=s1From: you@example.com3A · SPFIs the sending serverlisted in the record ofmail.example.com(the Return-Path)?3B · DKIMDoes the signatureverify with the key ats1._domainkeyunder example.com?4 · DMARCDoes a domain that passed SPF or DKIM matchthe From: domain? When neither does, the policy_dmarc.example.com decides what happens.5 · ALIGNED PASSTreated as your mail;a BIMI logo can showif the policy enforces.5 · NO ALIGNED PASSp=none deliveredp=quarantine to spamp=reject refused
MX records are step 1 for anyone mailing this domain: they name the servers that accept its mail, lowest priority number first.

Script the lookup

Point a monitor or a deploy check at the same lookup over HTTP; it needs no account or key, and CORS is open. OpenAPI description.

curl "https://sendly.now/api/tools/mx-lookup?domain=example.com"

# Markdown instead of JSON:
curl -H "Accept: text/markdown" "https://sendly.now/api/tools/mx-lookup?domain=example.com"

Problems this lookup catches

  • No MX records, so mail to the domain falls back to its web server or is lost.
  • An MX that names an IP address instead of a hostname.
  • A mail server whose name does not resolve, or resolves to a private address.
  • A null MX (MX 0 .), which declares that the domain receives no mail.

What the result means

The servers are listed in the order senders try them: the lowest number first, equal numbers sharing the load, higher numbers only when the preferred ones do not answer. The provider name comes from the hostname, so Google, Microsoft 365, Zoho and the large hosts are recognised and a server you run yourself is simply named. A server that does not resolve is the common failure after a provider move: the old MX was left in place and now points at nothing, so a share of inbound mail, including replies and bounces to what you send, bounces back. An MX that names a CNAME or an IP address works with some receivers and not others; publish the mail server's own A record name instead.

Questions people ask

What happens if a domain has no MX record?
Senders fall back to the domain's own address record, which is rarely a mail server, so mail to the domain (including replies and bounces) is usually lost. A domain that should never receive mail can say so with a null MX (MX 0 .).
What does the MX priority number mean?
Lower is tried first. Servers with equal priority share the load, and higher numbers are fallbacks used when the preferred ones do not answer.
How do I look up MX records from the command line?
Run nslookup -type=mx example.com on Windows, or dig MX example.com +short on macOS and Linux. Each answer is a priority and a mail server name; this lookup also resolves each server and names the provider.
Do MX records affect sending?
Not directly: they say where mail to the domain is delivered. They matter to senders because replies and bounces go there, and because some receivers check that a sending domain can receive mail at all.

Seeing a server or a listing here that your provider does not? Tell support@sendly.now which domain or address you checked, and we will compare notes. Background on mail routing is in the documentation.

Analytics cookies? Privacy