MX lookup icon

MX Record lookup

Use This Tool To Lookup, And Validate Your DNS Records.

Google

Without DMARC, hackers and other malicious users can impersonate messages, making them appear to come from your organization or domain. Turning off DMARC puts your users and your contacts at risk for spam, spoofing, and phishing.

Microsoft

Microsoft recommends using SPF, DKIM and DMARC together to strengthen email authentication and protection against spoofing. DMARC helps receiving mail systems evaluate messages that fail domain-aligned authentication, according to the published policy. Microsoft Learn guidance

MX guide

What is a MX record?

MX records specify which mail servers receive incoming email for a domain. Each record includes a priority number and a mail-server hostname; lower numeric values are preferred.

What is a MX record?

A domain may publish multiple MX records for redundancy and delivery routing. The listed hostnames should resolve to usable A or AAAA records, and the receiving mail service must actually be configured for the domain.

MX controls inbound routing, not which services may send outbound email. SPF, DKIM and DMARC address sender authentication separately. A null MX (0 .) deliberately signals that the domain does not accept mail.

MX affects inbound deliverability. It does not validate SPF, DKIM or DMARC for outgoing mail; use those checkers separately.

How to check MX

Use the tool above to check a hostname. For a manual check, query the same DNS name and record type with dig or nslookup.

  1. 1

    Query the DNS record

    Run the free lookup above or enter the query in a terminal.

    $ dig MX example.com +short
  2. 2

    Inspect the returned value

    Check the preference numbers and target hostnames. A smaller priority number is tried before a larger one; equal priorities may be load-shared.

    $ nslookup -type=MX example.com
  3. 3

    Compare against the expected configuration

    Use your DNS host or service provider’s published values as the source of truth. Changes can take time to propagate through DNS caches.

MX record example

Hostexample.com
example.com. 3600 IN MX 10 mail.example.net.

Example priority 10 routes incoming mail to a named mail exchanger; use the values from your actual mail service.

How to read your MX result

Interpret the response carefully:

Result What it means & what to do
No answer returnedIf no MX record is present, SMTP has a legacy fallback to the domain’s address records, but most hosted mail providers require the specific MX entries they publish.
Unexpected or conflicting valueMail delivery can fail if MX hosts are mistyped, point to an address literal instead of a hostname, lack an address record, or belong to the wrong provider.
Verify published configurationPublish the precise MX hostname and priority from your mail provider, remove superseded MX records, and test delivery after DNS caches expire.

Frequently asked questions

How do I look up MX records?

Enter the hostname in the lookup tool, or run dig MX example.com +short in a terminal. Query the specific host used by your DNS or service provider.

Is a MX record required?

If no MX record is present, SMTP has a legacy fallback to the domain’s address records, but most hosted mail providers require the specific MX entries they publish.

What should I check if MX looks wrong?

Publish the precise MX hostname and priority from your mail provider, remove superseded MX records, and test delivery after DNS caches expire.

What does MX affect?

MX affects inbound deliverability. It does not validate SPF, DKIM or DMARC for outgoing mail; use those checkers separately.

Technical reference: RFC 5321.

Reviewed by the Skysnag Security Team. Last updated .