DNSVerdict

MX Lookup

See the MX records of any domain in priority order with IP addresses, and catch CNAME targets, unresolvable hosts and null MX. Free, runs in your browser.

Updated 2026-10-20

Your query is sent only to the resolver shown; this site keeps no logs.

Result

What this checks

DNSVerdict's MX lookup lists the mail exchangers a domain publishes, sorted by priority, and resolves each host to its IPv4 and IPv6 addresses. It warns when an MX target is a CNAME or does not resolve, and recognises a null MX ("0 .") that refuses all mail. The lookup uses DNS-over-HTTPS from your browser and never connects to a mail server.

How to read the result. Each row is one MX record: a preference number and a host name. Senders try the lowest number first and move to a higher number only if that host cannot be reached; hosts with the same number are tried in random order, which spreads the load (RFC 5321 §5.1). The IP column shows the A and AAAA records of that host, and an empty or red cell means mail to that host cannot be delivered. The TTL column is how long resolvers may cache the MX record.

Rules applied. An MX target must be a host name with address records, not an IP address and not an alias: RFC 2181 §10.3 says the target must not be a CNAME, and the tool flags any MX host whose address lookup returns a CNAME, even though some resolvers follow it. If a domain has no MX record at all, senders fall back to its A or AAAA record and treat the domain itself as the mail host (RFC 5321 §5.1). A domain that wants no mail can publish one MX record with preference 0 and the root dot as host, a null MX (RFC 7505 §3), so senders fail at once instead of retrying for days.

The same check in a terminal. dig example.com MX +short prints the records, and dig mx1.example.net A +short with dig mx1.example.net AAAA +short check each host. On Windows, nslookup -type=MX example.com does the first step. A healthy answer looks like 10 mx1.example.net. and 20 mx2.example.net., each host resolving to at least one address; a null MX prints 0 . on its own. This tool does not open an SMTP connection, so a host that resolves can still refuse mail on port 25.

Common mistakes. Typing an IP address as the MX target; pointing the MX at a CNAME such as mail.example.com that aliases to a provider, when the provider's own host name belongs there; leaving the old provider's MX records beside the new ones after a migration, so some mail still goes to the old system; forgetting the trailing dot in zone-file syntax, which turns mx.example.net into mx.example.net.example.com; and giving the backup host the lower number. How to set up MX records shows the right layout. Once mail flows, check authentication with the SPF checker and the DMARC checker.

If it fails

FAQ

Is a lower or higher MX priority tried first?

The lower number is tried first. An MX record with preference 10 is used before one with preference 20, and the higher number acts as a backup that senders contact only when the lower-numbered host cannot be reached. When two records share the same number, senders pick between them at random to spread the load (RFC 5321 §5.1).

Can an MX record point to an IP address?

No. The MX target must be a host name that has an A or AAAA record (RFC 5321 §5.1, RFC 1035 §3.3.9). An IP address in the target field is read as a name, fails to resolve, and mail is not delivered. Put the IP in an A record for a host name such as mail.example.com, then point the MX at that name.

What is a null MX record?

A null MX is a single MX record with preference 0 and the root dot as its target ("0 ."). It tells senders that the domain accepts no email, so they fail immediately instead of retrying (RFC 7505 §3). Publish it on parked domains, web-only domains and domains that only send mail from no-reply addresses.

Why does the tool note that a domain has only one MX host?

One MX record works. With a single host, mail waits in the sender's queue whenever that host is down, and senders normally retry for several days (RFC 5321 §4.5.4.1) before they return a bounce. A second host at a higher number adds failover. Providers that document one host, such as smtp.google.com for Google Workspace, run redundancy behind that name, so the note can be ignored there.

Guides

DNS record types explained: A, MX, TXT, CNAME and moreHow to get your IP off an email blacklistMX record points to a CNAME: why it breaks and the fixMX host does not resolve: causes and how to fix itNull MX (RFC 7505): publish it for domains with no mailReverse DNS (PTR) for mail servers: how to set itHow to set up MX records (priorities, null MX, migration)Set up SPF, DKIM and DMARC for Google WorkspaceSet up SPF, DKIM and DMARC for Microsoft 365Set up SPF, DKIM and DMARC for Zoho MailSPF “too many DNS lookups”: why it happens and how to fix it

Related tools

DNS LookupSPF Record CheckerDMARC Record CheckerEmail Deliverability ScoreIP & Email Blacklist Check (DNSBL Lookup)Domain Blacklist Check (RHSBL & URIBL Lookup)TXT Record Lookup