Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · SEO and webmaster

MX lookup

Type a domain to see which mail servers receive its email, in the order senders try them, with the IP addresses of each. Missing records and null MX are explained.

  • Free
  • No sign-up

By Maaz Zindani · Updated

A domain, a web address or an email address. Only the domain part is used.

Pressing the button sends the domain, then the name of each mail server found for it, to Google Public DNS, which answers the lookups. Cloudflare's DNS service is asked instead if Google cannot be reached. Before the press, nothing is sent.

Result

Sample: a recorded lookup of mozilla.org from 20 Nov 2026. Press the button for a live result.

4 mail servers foundFirst choice: aspmx.l.google.com

  • 4 MX records
  • Best preference: 1
  • IPv4 and IPv6
  • TTL 60 s
Mail servers, in the order senders try them
PreferenceMail serverIPv4IPv6
1aspmx.l.google.com142.251.127.262a00:1450:4001:c21::1a
5alt1.aspmx.l.google.com142.250.147.262a00:1450:4025:c01::1b
5alt2.aspmx.l.google.com172.253.152.262607:f8b0:400e:c20::1a
10aspmx3.googlemail.com172.253.152.272607:f8b0:400e:c20::1a
What to know
  • Good All 4 mail servers resolve to at least one address.

How to use the MX Lookup

  1. Type a domain, a web address or an email address into Domain to look up. Only the domain part is used.
  2. Press Look up MX records and wait a second or two.
  3. Read the headline and the table: the lowest preference number is tried first.
  4. Check What to know for aliases, missing addresses or a null MX, and use Copy result to keep the text.

What is an MX record and what does an MX lookup show?

An MX record names a server that accepts email for a domain. MX stands for mail exchanger. When someone writes to you@example.org, their mail server asks DNS for the MX records of example.org and sends the message to the server named there. RFC 5321, which defines how mail is sent between servers, describes this step in its section on locating the target host.

An MX lookup runs that same question and shows the answer. Each record has two parts: a preference number and the name of a mail server. This tool then asks DNS for the IPv4 and IPv6 addresses of each named server, because a sender needs an address, not just a name. The result is a table you can read at a glance, with problems listed under it.

The most common reason to run one is a change of mail provider. After you move, the provider gives you new server names and preference numbers to publish. Look the domain up again and compare: the table should show exactly the names you were given, and no old server should remain with a better (lower) preference than the new ones, or mail keeps flowing to the old place. It is also a quick check when mail to a domain bounces, because a typo in an MX name shows up at once as a server with no address.

The lookup tells you where mail for a domain is meant to go. It does not tell you whether the server is running, whether it accepts a particular sender, or whether a message will be delivered. It reads DNS and nothing else. For the other email records of the same domain, use the SPF record checker.

What does the MX preference number mean?

The preference number sets the order. RFC 5321 says lower numbers are preferred, so a sender tries the lowest first and moves up only if that server fails. Equal numbers are different: the standard says a sender must pick among them in random order, which spreads incoming mail across the servers. The sample in this page is a recorded lookup of mozilla.org with 4 records, and 2 of them share preference 5.

The number has no meaning outside the comparison. A record with preference 10 is not "ten times" anything, and the gaps do not matter. People often use 10, 20 and 30 so that a new server can be slotted in between later.

MX records of mozilla.org (recorded 20 November 2026), as the tool lists them
PreferenceMail serverIPv4 addressesIPv6 addresses
1aspmx.l.google.com11
5alt1.aspmx.l.google.com11
5alt2.aspmx.l.google.com11
10aspmx3.googlemail.com11

A domain with one MX record has no spare. If that server is down, senders hold the message and retry for a while. Several servers, ideally in different places, give a sender somewhere else to go.

What if a domain has no MX record or a null MX?

Without any MX record, RFC 5321 tells senders to treat the domain itself as the mail server, using its A or AAAA address with preference 0. The standard calls this an implicit MX. It works only when that machine really accepts mail, which is why a missing MX record is shown as a warning, not as an error. Once any MX record exists, senders must not fall back to the address record, so a wrong MX can cut a domain off even when its website works.

A null MX is the opposite: a deliberate no. RFC 7505 defines it as one MX record with preference 0 and a single dot as the server name. It tells senders that the domain accepts no email, so they get a failure straight away and do not queue and retry. The same RFC says a domain with a null MX must not publish any other MX record, and the tool flags a mix of the two.

A domain that does not exist at all, the NXDOMAIN answer, is reported on its own. There is nothing to look up and nothing to deliver to.

Why does the lookup warn about an alias or a missing address?

RFC 5321 says the name in an MX record must lead to at least one address record, A or AAAA. A name with no address is useless, and a name that does not exist at all is worse. The tool reports both.

An MX target that is a CNAME, which is an alias for another name, is a gray area. The standard does not cover it, and some mail systems refuse it. The tool shows the alias, follows it to the addresses, and recommends pointing the MX at a name that holds addresses directly. The table shows what the tool prints for the common cases.

What the tool says first, case by case
CaseFinding
One MX record, with an addressThere is only one mail server. If it is down, senders keep the message and retry; there is no second server to take it.
No MX record, but the domain has an addressexample.org has no MX record. RFC 5321 tells senders to treat the domain's own address as an implicit MX with preference 0, so mail goes to 192.0.2.7. That works only if that machine runs a mail server. Publish an MX record to be explicit.
Null MX (0 and a dot)example.org publishes a null MX (preference 0 and a single dot). RFC 7505 defines it as a clear statement that the domain accepts no email, so senders get a failure straight away instead of retrying.
MX target is an aliasmail.example.net is an alias (CNAME) for real.example.net. RFC 5321 does not cover an MX that points at an alias, and some senders refuse it. Point the MX at a name that has address records itself.
MX target has no addressmail.example.net has no A or AAAA record. RFC 5321 says an MX target must resolve to at least one address.

The tool looks at the first ten MX hosts. A domain with more than that is rare, and the rest are counted and named in the notes.

What does this tool send over the network?

The domain you typed goes to Google Public DNS as an MX question, and then each mail server name found goes there as an A question and an AAAA question. All of it happens after you press the button, and none of it before. When Google cannot be reached, Cloudflare's resolver receives the questions instead. The page has no account, sends no other field, and keeps no record of what you looked up.

Both services remember answers for as long as the record's time to live allows, so a change you made a few minutes ago can still show the old value for a while.

Use it with

Questions

How do I find the MX records of a domain?

Enter the domain and press Look up MX records. The tool lists every mail server with its preference number and addresses.

What does a lower MX preference number mean?

It means the server is tried first. RFC 5321 says senders use the lowest preference first and pick at random among equal ones.

What happens when a domain has no MX record?

Senders use the domain's own A or AAAA address as an implicit MX with preference 0. It works only if that machine accepts mail.

What is a null MX?

A single MX record with preference 0 and a dot as the server name. RFC 7505 defines it as a statement that the domain accepts no email.

Can an MX record point to an IP address?

No. An MX record holds a server name, and that name then needs its own A or AAAA record. The tool looks those addresses up for you.

Does the MX lookup send my data anywhere?

It sends the domain, and then the mail server names found, to Google Public DNS (Cloudflare if Google is down) once you press the button.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.