Skip to content Use Monity from Claude, ChatGPT or Codex: set up monitors and ask what changed, from a chat. Use Monity from Claude, ChatGPT or Codex Connect yours
Free tools MX Lookup

MX Record Lookup: find a domain’s mail servers

An MX lookup shows the servers that accept email for a domain, in the order senders try them. Enter a domain to see its MX records from four public resolvers, with priorities, TTLs and any record that breaks delivery.

Free No signup

How it works

  1. Enter the email domain

    Use the part after the @ in the address, such as example.com.

  2. Read the mail servers in order

    Records are sorted the way senders use them: the lowest priority number first, with the lowest TTL any resolver gave.

  3. Check the notes

    A missing MX, a null MX, an IP address in place of a host name, and resolvers that disagree are flagged.

Monity’s free MX lookup asks Cloudflare, Google Public DNS, DNS4EU and CIRA Canadian Shield for a domain’s MX records at the same moment. You see each mail server once, in the order senders try them, with the lowest TTL any resolver gave and whether all four agree.

How to read MX records

  • Priority: lower numbers are tried first. Equal numbers share the load.
  • Mail server: the host that accepts the mail. It needs its own A or AAAA record.
  • TTL: how many seconds a resolver may still keep the record cached.
  • Resolvers: “4 of 4” means every resolver that answered returned that server. Fewer means the others still hold an older set.

On 24 Nov 2026, gmail.com returned five MX records, priorities 5, 10, 20, 30 and 40. Mail goes to the priority 5 server and falls back down the list. example.com returned one record, 0 .: a null MX, which says the domain accepts no email at all.

What the notes mean

NoteWhat it meansRule
No MX recordsSenders try the domain’s A or AAAA address instead. Mail bounces if nothing there accepts it.RFC 5321, 5.1
Null MXThe domain takes no email. Mail to it bounces at once.RFC 7505, 3
Null MX beside other MX recordsAn error: a null MX must be the only one.RFC 7505, 3
An IP address as the mail serverSenders read it as a name, and the lookup fails.RFC 1035, 3.3.9
One mail serverFine, but while it is down, mail waits in senders’ queues.RFC 5321, 4.5.4.1
Resolvers disagreeA recent change is still cached at some resolvers.TTL

After you change mail provider

  1. A day before, lower the TTL of your MX records, to 300 seconds for example, so the switch spreads quickly.
  2. Replace the MX records with the ones your new provider gives you, priorities included.
  3. Run this lookup until every resolver returns the new set. Then wait out the old TTL before you close the old mailbox, because some senders cached the old servers.
  4. Send a test message from an outside address, and check the domain’s SPF and DMARC TXT records with the DNS propagation checker.

What this lookup doesn’t check

It reads the MX records only. It doesn’t connect to the mail servers, so it can’t tell whether they accept mail, and it doesn’t follow each server’s name to its address. A mail server whose name is an alias (a CNAME) breaks RFC 2181 but isn’t caught here. Answers are kept for 30 seconds to limit repeat queries.

Watch your MX records with Monity

A changed or deleted MX record stops mail without an error on your side: senders’ messages bounce or wait in their queues. In uptime monitoring, a DNS monitor checks a domain’s MX records on a schedule and alerts you when a mail server you expect is missing (monitor types). The NS lookup shows which DNS provider holds the records.

Monity’s new uptime monitor form with five kinds: Website, Keyword, Port, DNS and Heartbeat
Choose DNS when you add an uptime monitor to watch MX, A, AAAA, CNAME, NS or TXT records.

FAQ

Common questions

What is an MX record?

An MX (mail exchanger) record names a server that accepts email for a domain, with a priority number. A domain can have several. Sending servers look them up to know where to deliver mail for addresses at that domain.

What does the MX priority number mean?

Lower numbers are tried first. When a server does not answer, senders try the next. Servers with the same number share the load: RFC 5321 tells senders to pick among them at random.

What happens if a domain has no MX record?

Senders then try the domain’s own A or AAAA address as its mail server, the “implicit MX” in RFC 5321. If nothing there accepts mail, messages bounce. A domain that wants no mail at all can publish a null MX, a single record of priority 0 pointing at “.” (RFC 7505).

Can an MX record point to an IP address or a CNAME?

No. The value of an MX record is a host name (RFC 1035), and RFC 2181 says it must not be an alias: the name must have its own A or AAAA records. Senders read an IP address there as a name, which fails.

How do I check MX records from the command line?

On Windows, macOS or Linux: nslookup -type=mx example.com. On macOS or Linux: dig MX example.com +short. In Windows PowerShell: Resolve-DnsName -Name example.com -Type MX.

Can Monity alert me when my MX records change?

Yes. A DNS monitor in Monity checks a domain’s MX records on a schedule and alerts you when a mail server you expect is missing, as often as every 5 minutes on the free plan. Alerts go to email, Slack, Microsoft Teams, Discord, Telegram, Google Sheets, webhooks or the phone app.

What are Gmail’s and Google Workspace’s MX records?

For a Google Workspace domain, Google’s current setup is one MX record: priority 1, smtp.google.com. Domains set up before 2023 may still use older values that start with aspmx, and Google says no change is needed if mail works (Google Workspace Admin Help, read 24 Nov 2026). gmail.com itself publishes gmail-smtp-in.l.google.com at priority 5, with alt1 to alt4 as backups.

Powered by Monity

Keep mail arriving.
Watch your MX records.

Monity checks your MX records from its own servers and alerts you when a mail server you expect is missing.

  • Free 7-day trial
  • No credit card
  • 3 monitors free, forever
Kamil, Alex and Martyna A person replies within two working days

Have a question?

Pricing, security or scoping: pick one and your message goes to a person on the team.