Domain IP Lookup

MX Lookup: Where Does a Domain's Email Go?

Email to a domain bouncing, vanishing, or landing at the wrong provider? Start with its MX records. They name the servers that accept mail for the domain and the order senders try them. Look one up below and you'll also see the IP addresses behind each mail server.

Try:

Reading the results on this page

Each MX record becomes one row. The badge holds the preference number and the text beside it is the mail server's host name. Rows are sorted with the lowest number first, and servers with the same number are sorted alphabetically, so the top row is the first one senders try. Under each host you'll see the public IP addresses it resolves to, taken from its A and AAAA records. The page resolves at most ten hosts and lists at most six addresses for each.

  • A host with no addresses under it has no public A or AAAA record, has only private addresses (which this page withholds), or its lookup failed. Run it again, then query the host name on its own. If it still has nothing, senders can't deliver to it.
  • No MX rows for a name that exists means mail for it falls back to the name's own address record, unless the domain publishes a null MX to refuse mail.
  • An NXDOMAIN error means the name itself isn't in DNS. Check the spelling and whether the registration has lapsed, then look at the domain's nameservers with the Name Server Lookup.
  • A timeout or SERVFAIL points at the domain's nameservers rather than at mail. Fix those first.
  • MX rows show no TTL here. dig and Resolve-DnsName print it if you need it.

How MX priority works

Every MX record has a name and a number, and the number is the whole trick.

  • The lowest number is tried first. A server at priority 10 gets mail before one at 20.
  • Servers with the same number share the load, and senders pick between them.
  • Higher numbers are backups, used only when the preferred servers don't answer.
  • The number means nothing by itself. Only the order matters, so 1 and 5 behave exactly like 10 and 20.

Which email provider is this domain using?

The MX host names give the provider away. These are the usual patterns:

MX host looks likeUsually means
aspmx.l.google.com, smtp.google.comGoogle Workspace (Gmail for business)
yourdomain-com.mail.protection.outlook.comMicrosoft 365
mx.zoho.com, mx2.zoho.comZoho Mail
mail.protonmail.chProton Mail
in1-smtp.messagingengine.comFastmail
route1.mx.cloudflare.netCloudflare Email Routing
mx1.emailsrvr.comRackspace Email

Use exactly the records your provider gives you. Mixing servers from two providers splits your mail between them.

Six MX mistakes that break email

  • No MX record at all. Senders fall back to the domain's A or AAAA record and usually fail. A domain that shouldn't receive mail can publish a null MX (priority 0, target a single dot) to say so clearly.
  • An MX pointing at a CNAME. The mail standards require a real host name with address records, and some servers reject mail when it's an alias.
  • An MX pointing at an IP address. It has to be a host name.
  • An MX host with no A or AAAA record, so senders have no address to connect to.
  • Old records left behind after a move, quietly sending a share of mail to the previous provider.
  • Every record at the same priority when you meant to have a backup.

The same lookup on the command line

These are documentation values, not a live result: example.com and example.net are reserved for examples. The three records show a common layout, with two servers at preference 10 that share the load and one fallback at 20.

$ dig +short MX example.com
20 backup.example.net.
10 mx2.example.com.
10 mx1.example.com.

$ nslookup -type=mx example.com
example.com     mail exchanger = 10 mx1.example.com.
example.com     mail exchanger = 10 mx2.example.com.
example.com     mail exchanger = 20 backup.example.net.

PS> Resolve-DnsName -Name example.com -Type MX
Name          Type  TTL   Section  NameExchange        Preference
----          ----  ---   -------  ------------        ----------
example.com   MX    3600  Answer   mx1.example.com     10
example.com   MX    3600  Answer   mx2.example.com     10
example.com   MX    3600  Answer   backup.example.net  20

dig prints the records in whatever order the server sent them, and DNS servers may rotate equal records between answers, so read the numbers rather than the line positions. This page sorts them for you. On Windows the nslookup lines read MX preference = 10, mail exchanger = mx1.example.com instead.

To ask one specific resolver, add it to the command: dig MX example.com @1.1.1.1, nslookup -type=mx example.com 1.1.1.1, or Resolve-DnsName example.com -Type MX -Server 1.1.1.1. This page has no server picker, so use the command line when you need to compare resolvers.

Mail still fails but the MX records look right

MX records only say where to deliver. Most delivery problems start after that point, so match what you see to the likely cause.

What you seeWhat it usually meansNext step
A bounce says the domain or host was not foundThe sender couldn't find the domain (NXDOMAIN) or a usable mail hostCheck the spelling of the address, look the domain up here, and confirm the registration hasn't expired
Mail is delayed and the sender reports a connection timeoutThe MX host exists but doesn't answer on port 25, or a firewall blocks itCheck the host's addresses on this page, then test port 25 from a server, since many home networks and some cloud networks block outbound port 25
Some senders deliver to the old providerOld MX records are still published, or caches still hold themCompare the rows here with the new provider's list, delete leftovers, and wait out the old TTL
Mail arrives but is rejected or lands in spamRouting works. Authentication or reputation is the problemCheck SPF, DKIM and DMARC with the checkers instead of MX
A bounce says the mailbox doesn't existThe mail reached the right server, so the MX is fineCreate or fix the mailbox in your email provider's admin console

Changing MX records safely

  • Write down the current rows from this page first. They are your rollback.
  • If your DNS host lets you set it, lower the TTL on the MX records a day ahead, using the plan on the DNS TTL Lookup page.
  • Replace the old records with the new provider's complete set in one edit. A leftover server at the preferred priority keeps receiving its share of mail.
  • Send a test message from an account at a different provider and confirm it arrives.
  • Keep the old mailboxes reachable for a few days. Senders retry mail they couldn't deliver, and RFC 5321 advises giving up no sooner than four to five days, so a message sent just before the switch can still turn up at the old server.

What an MX lookup can't prove

This page asks public recursive resolvers, so you see what their caches hold. After a change that can trail the real zone by up to the old TTL. To read the zone itself, ask one of its authoritative servers, for example dig +short MX example.com @ns1.example.net, taking the server name from the Name Server Lookup.

Nothing here opens an SMTP connection. A clean MX list doesn't show that port 25 is open, that TLS works, that the server accepts mail for the domain or that a mailbox exists. Networks with split DNS can give their own users different MX answers than the internet gets, so a lookup from inside a company may not match this page. And MX records belong to one exact name: mail to user@mail.example.com uses the records of mail.example.com, not those of example.com.

Frequently asked questions

Guides