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
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.