MX Record Lookup

Look up MX records for any domain to verify email routing, check mail server priority, and diagnose inbound email delivery failures. Free online MX record checker.

Why Look Up MX Records?

  • Diagnose inbound email failures: When email sent to your domain bounces or disappears, the first diagnostic step is querying MX records. Missing MX records mean no mail server accepts inbound email; incorrect hostnames cause delivery failures that are impossible to diagnose from the sender's side.
  • Verify mail provider migrations: After switching from one email provider to another (e.g., G Suite to Microsoft 365, or Zoho to Fastmail), MX records must be updated to point to the new provider's mail servers. An MX lookup confirms the migration is complete before announcing the changeover.
  • Understand MX priority and failover: Multiple MX records with different priority values create a failover chain โ€” lower numbers are tried first. An MX lookup reveals whether your backup mail servers are correctly configured and whether priority ordering matches your provider's requirements.
  • Validate email service configuration: Email service providers give you specific MX records to add during setup โ€” an MX lookup confirms the correct records are published and resolving before you complete onboarding or activate sending features.
  • Check if a domain accepts email: Not all domains accept email โ€” some domains have no MX records (they only host websites) or explicitly reject email with null MX records (RFC 7505). An MX lookup determines whether a domain is configured to receive email at all.

How to Check MX Records for a Domain

  1. Enter the domain name: Use the root domain (example.com) โ€” MX records are almost always published at the apex domain, not on subdomains. Do not include "mail." or "www." prefixes unless you have a specific reason to query a subdomain's MX records.
  2. Select MX as the record type: Choose MX from the record type dropdown โ€” this returns all mail exchanger records for the domain with their priority values and target hostnames.
  3. Read priority values: Lower numbers = higher priority. MX 10 is tried before MX 20. If your primary provider specifies priority 1 and backup specifies priority 5, verify the lookup reflects this order exactly.
  4. Verify target hostnames resolve: Each MX record's target hostname must itself resolve to an IP (A or AAAA record). An MX record pointing to a non-resolving hostname silently drops email โ€” look up the hostname separately to confirm it resolves.
  5. Cross-check SPF records: After verifying MX records, query TXT records to confirm your SPF record includes all the mail servers listed in your MX records โ€” inconsistencies cause outbound email spam failures.

Real-World Use Case

A company migrates from Google Workspace to Microsoft 365 over a weekend. Monday morning, 30% of inbound emails are missing. An MX record lookup reveals the domain still has both the old Google MX records (aspmx.l.google.com at priority 1) and the new Microsoft records (company-com.mail.protection.outlook.com at priority 10) โ€” during migration, no one deleted the old Google records. Mail from some senders is delivered to Google (where no mailboxes exist), others to Microsoft. The fix is to remove the Google MX records entirely; the MX lookup makes the double-routing problem immediately visible without any server log access.

Best Practices for MX Record Management

  • Use exactly the MX records your provider specifies: Email providers publish exact MX hostnames and priority values in their documentation โ€” copy them exactly, including trailing dots if your DNS editor uses zone file syntax.
  • Remove old MX records completely during provider migrations: Leaving old MX records alongside new ones causes split-routing โ€” some email goes to the old provider, some to the new. Remove old records before or simultaneously with adding new ones.
  • Ensure MX targets are hostnames, not IPs: MX records must point to hostnames, not IP addresses โ€” DNS standards prohibit using an IP directly in an MX record. If you accidentally add an IP, mail delivery will fail with a "invalid MX" error.
  • Verify backup MX servers actually accept your mail: A backup MX at priority 20 only helps if that server can actually deliver to your mailboxes โ€” test it by lowering its priority temporarily or by sending test email when your primary server is down.
  • Monitor MX records with regular checks: DNS records can be accidentally deleted during DNS provider migrations or zone imports โ€” schedule periodic MX record checks to catch misconfigurations before users report missing email.

Performance & Limits

  • Returns all MX records: Domains with multiple MX records (primary + backup mail servers) display all entries with their priority values and target hostnames.
  • Live authoritative results: Queries live public resolvers via DNS-over-HTTPS โ€” results reflect current authoritative data, not cached stale records.
  • Response time: MX record lookups typically return within 200-500ms โ€” fast enough for rapid diagnostic iteration during active email outages.
  • No command-line tools required: Works from any browser without dig, nslookup, or terminal access โ€” useful for support teams and non-technical administrators.
  • Any domain supported: Look up MX records for any domain on the public internet, including competitor domains to understand their mail infrastructure.

Common MX Record Mistakes to Avoid

  • Adding MX records for subdomains when they belong at the root: MX records for email@company.com go on company.com, not mail.company.com โ€” adding them to the wrong hostname means email delivered to your domain is never routed to these servers.
  • Setting the same priority for all MX records: Multiple MX records with identical priority numbers cause random load balancing, not predictable failover โ€” assign distinct priority values to establish a clear preference order.
  • Forgetting to update SPF after adding MX records: If your new mail server's IP isn't in your SPF record, outbound email from that server will fail SPF checks and land in spam โ€” always update SPF when adding or changing MX records.
  • Confusing MX lookup with testing deliverability: A valid MX record means a mail server is configured to accept connections โ€” it doesn't mean email will be delivered successfully. SMTP authentication, SPF, DKIM, and DMARC all affect final deliverability independently.

Privacy & Security

  • Encrypted DNS queries: Uses DNS-over-HTTPS to protect lookup privacy from network-level interception.
  • Public record data only: MX records are publicly accessible โ€” any resolver on the internet can retrieve them. This tool queries the same public data.
  • No logging: Domains queried are not stored or shared beyond the current browser session.
  • No account required: Check MX records without registration or personal information.

Frequently Asked Questions

What do MX record priority numbers mean?

MX priority values determine which mail server is tried first when delivering email to your domain. Lower numbers = higher preference: a mail server with priority 10 is always tried before one with priority 20. If the priority-10 server is unavailable, the sending server automatically tries the next-lowest priority server. Most email providers specify a single priority value โ€” Google Workspace uses priority 1, and Microsoft 365 uses priority 0. When you have multiple MX records, ensure the priorities match exactly what your provider specifies, as some providers require specific values for proper routing.

How long does it take for new MX records to propagate?

MX record propagation time equals the TTL (Time To Live) of the record, which tells resolvers how long to cache the value. Common MX TTLs are 3600 seconds (1 hour) to 86400 seconds (24 hours). If your old MX records had a 24-hour TTL, resolvers that cached them will keep delivering to the old server for up to 24 hours after you make the change. To speed up future migrations, lower your MX record TTL to 300 seconds (5 minutes) at least 48 hours before the planned migration date โ€” then restore normal TTLs after the new records are confirmed working.

Why does my domain show no MX records?

A domain with no MX records means one of: (1) the domain is not configured to receive email โ€” many domains host only websites; (2) MX records were accidentally deleted during a DNS migration or zone import; (3) the domain uses an implicit MX fallback โ€” per RFC 5321, if no MX records exist, senders try the A record of the domain as a mail server, though this is unreliable and not recommended; or (4) the domain has a null MX record (". 0 .") per RFC 7505, explicitly signaling that no email should be delivered to this domain. If you expect email to work but see no MX records, they need to be added through your DNS provider.

Can I use an IP address in an MX record?

No โ€” MX records must point to hostnames, not IP addresses. RFC 2181 explicitly prohibits using IP literals in MX records. If you enter an IP address as an MX target, most DNS providers will reject it, and those that don't will cause mail delivery failures because the receiving SMTP server can't validate the hostname. If your mail server only has an IP and no hostname, you need to create an A record for a hostname (e.g., mail.example.com โ†’ the IP) and then use that hostname in your MX record. This also ensures your PTR (reverse DNS) record can match the hostname for anti-spam checks.