MX Lookup

See which servers receive email for a domain and the order in which senders try them. The lowest MX priority number comes first.

If you enter an email address, only the domain after the @ sign is used for the lookup.

Which Domain Receives the Mail?

For an address such as billing@example.com, the mail domain is example.com. You can enter the address or the domain. An address ending in @sales.example.com uses the MX records for sales.example.com. Adding www or mail changes the name you are looking up. If you paste a website URL instead, the lookup uses the hostname and ignores the path.

An MX record names a mail exchange, the host designated to receive incoming mail. The mail server often has a different domain name because a separate provider handles the mail. For example, employees can use addresses ending in @example.com even when the MX records point to servers at example.net.

How to Read the Priority Numbers

Read the results from the smallest number up. For example, if mx1.example.net has priority 10 and mx2.example.net has priority 20, sending servers normally try mx1 first. If delivery there fails temporarily, a sender can try mx2. The numbers set the order within this domain. They do not measure speed or reliability.

Two servers can share a priority. Both are eligible at that step, regardless of which name appears first on the screen. If your provider lists two names at priority 10, both names belong in your configuration. A matching number on its own cannot tell you whether you entered the right host.

Checking a Mail Provider Change

Compare each returned hostname and priority with the values supplied by the new mail provider. Check whether an old server still has a lower priority number than the new one. Senders could still try the old service first even though the new provider already appears in the results.

The IPv4 and IPv6 addresses beneath a server come from separate address records. A mail server may publish only one address family. If an address lookup fails, the MX hostname and priority can still be valid. The time to live (TTL), shown in seconds, tells you how long a resolver can cache that MX answer. The server’s address records have their own TTLs. After a change, another resolver may still have the old answer in its cache.

When the Lookup Finds No Mail Server

A null MX record has priority 0 and a single dot as its target. The domain is explicitly telling senders that it does not accept email. A priority of 0 next to an ordinary hostname has a different meaning and can be perfectly valid.

A domain without an MX record can still receive mail if a sending server can use an address record for that domain. If DNS reports that the name does not exist, check the spelling of the recipient domain. A temporary lookup failure leaves the mail configuration unknown, so run the query again before changing a record.

MX Lookup (FAQ)