MX Lookup

Use this free tool to retrieve the MX records of any domain.

Retrieve more DNS record types

Create your account and perform your first 500 DNS lookup queries covering more records for free.

Start DNS Lookup API Trial
50 Billion+Domains and subdomains
116 Billion+DNS records
52,000+Satisfied customers
15+Years of data crawling

WhoisXML API Current DNS Product Line

Gain access to other types of DNS records. Get deep and accurate DNS data from our market-leading Internet infrastructure intelligence repositories.

  • DNS Database Download

    DNS Database Download

    Access a leading repository of historical DNS data, featuring the highest number of unique FQDNs across diverse DNS record types.

    Explore Database
  • DNS Lookup API

    DNS Lookup API

    Integrate our DNS Lookup API into existing systems and workflows to add essential context like IP addresses and MX, NS, and TXT records.

    Explore API
  • DNS Lookup

    DNS Lookup

    Instantly view a domain's DNS configuration—including IP address and MX, NS, and TXT records—using our intuitive web tool.

    Explore Lookup
  • DNS Chronicle API

    DNS Chronicle API

    Retrieve historical A/AAAA records for any FQDN with a forward search or list associated FQDNs for an IP with a reverse search using our API.

    Explore API
  • DNS Chronicle Lookup

    DNS Chronicle Lookup

    Find all A/AAAA records historically linked to an FQDN or discover FQDNs that resolved to an IP address using our web tool.

    Explore Lookup

What can I use the MX lookup tool for?

  • Troubleshooting email delivery issues

    MX lookups help verify where mail is routed on the DNS and spot obvious misconfigurations (e.g., missing or misspelled records), often resulting in undelivered emails.

  • Checking for redundancy

    Performing an MX lookup lets you see your MX records and their priority values to confirm you have appropriate redundancy and ensure delivery continues if a server is down or overloaded.

  • Verifying a new email provider

    When migrating to a new email service, an MX lookup tool allows you to verify that newly configured MX records are live on the DNS and visible to public resolvers — so mail can be routed to the right service.

DNS Lookup API | WhoisXML API

Get 500 free API credits. No credit card required.

Get started

Frequently Asked Questions

What is a DNS MX record?

An MX record or mail exchange record, is a type of DNS record that specifies which mail servers are responsible for accepting email messages for a domain. They are essential for email delivery, as they direct incoming emails to the correct servers depending on the email service provider (e.g., Google Workspace, Microsoft 365, Zoho Mail, etc.). A domain can have multiple MX records, each with a different “priority” value.

Why do you need an MX record?

An MX record is required so the sending email server knows where to deliver a message for your domain.

Can a domain have more than one MX record?

Yes. Having multiple mail exchange records is recommended for redundancy and reliability. By configuring more than one mail server with different priority values, you establish a fallback system. If the primary mail server (the one with the lowest priority number) is offline due to maintenance, an outage, a hardware failure, or any other reason, the sending server will automatically attempt to deliver the email to the next available server on the list.

This setup prevents emails from getting lost and ensures your business can continue receiving important communications without interruption. Additionally, multiple MX records can be configured with the same priority value to distribute incoming email traffic across several servers (i.e., load balancing).

How does an MX record work?

When an email is sent, the sender’s mail server doesn’t know where to deliver it, so it queries the DNS for the recipient’s domain name (e.g., gmail.com) to find its MX record. The authoritative DNS server for that domain responds with a list of designated mail servers, each accompanied by a numerical priority value.

The sending mail server then attempts to connect to the recipient's mail server with the lowest priority number first (actually the highest priority value). If the server is unavailable, it systematically tries the next lowest-priority server until a connection is established. This system of multiple records with priorities ensures that email can still be delivered even if one mail server is down.

What are DNS MX lookups used for?

Checking a domain's MX record helps detect misconfigurations that could prevent users from receiving emails. An MX lookup tool is primarily used for diagnosing and troubleshooting email delivery issues, as it allows you to check a domain's DNS records to see which mail servers are designated to receive emails and whether they are configured correctly.

For instance, you might want to look up mail exchange records and use an MX lookup tool when emails are not being delivered, since a missing or incorrect MX record is a common cause of delivery failure. If you or your users are not receiving emails for a specific domain, the first step is to check your MX records to see if they are pointing to the correct email server.

Another instance where an MX lookup tool is needed is when you migrate your email service, such as from an on-premises server to Google Workspace or Microsoft 365. You need to update your MX records and use an MX record lookup tool to verify that the new records have been propagated and are correctly configured.

Who controls my MX record?

The domain owner has legal and administrative control over MX records. They have the power to decide who provides their DNS services and, therefore, who manages their MX records.

However, the DNS service provider is the entity that actually “controls” the records in a technical sense. This is often the same company as the domain registrar, but it can also be a separate service, such as Cloudflare or Amazon Route 53. The DNS provider's control panel lets owners log in to add, edit, or delete MX records. The records are stored on the DNS provider's name servers, which are the authoritative sources of information for that domain on the Internet.

How long does it take for a new MX record to propagate?

The time it takes for a new mail exchange record to propagate can vary. The fastest time can be 15 minutes to an hour, but it can also take as long as 24-48 hours. The exact time depends on your DNS record's time to live (TTL) value and the speed at which global DNS servers refresh their DNS caches. Even your local computer may have a DNS cache that affects MX record propagation. Even after the record has propagated globally, you may still see the old record until your local cache is cleared.

How can I look up my MX and other DNS records?

You can use this free MX lookup tool or use DNS Lookup API to retrieve your domain's MX and other DNS records, such as TXT, CNAME, PTR, and A records. Simply type in the domain name and click the Lookup button. If you only want to look up a specific record type, you can use these tools for free:

Trusted by
the smartest
companies

You may be interested

Domains & Subdomains Discovery API
Domains & Subdomains Discovery API

Find domains and subdomains related by specific terms in their hostnames.

Learn more
Reverse NS
Reverse NS

Find all domains that use the same name server.

Learn more
Domain Registration Streaming
Domain Registration Streaming

Get data feeds of new registered domains along with their WHOIS data generated in real time.

Learn more
Domain Availability
Domain Availability

The most accurate domain availability checker offered on the market.

Learn more
IP Netblocks
IP Netblocks

Find out which IP range the particular IP belongs to.

Learn more
Real-time SSL Certificates Streaming
Real-time SSL Certificates Streaming

Get data feeds of SSL certificates along with their well parsed fields in real time. Accurate. Up-to-date.

Learn more
Reverse IP
Reverse IP

Find relations like ownership between hostnames and IPs.

Learn more
Brand Alert
Brand Alert

Monitor exact matches, variations and common misspellings of your brand name & trademarks.

Learn more
Registrant Alert
Registrant Alert

Find out which domains were added or dropped by registrants, with given search criteria.

Learn more
Newly Created Websites Data Feed
Newly Created Websites Data Feed

Get insights for the new business registered on the web.

Learn more
SSL Certificates API
SSL Certificates API

Check a domain’s SSL certificate chain via API calls.

Learn more
Reverse WHOIS
Reverse WHOIS

Find connections between various domains, individuals and organizations.

Learn more
Subdomains Lookup
Subdomains Lookup

Discover subdomains related to the target domain name.

Learn more
Threat Intelligence Data Feeds
Threat Intelligence Data Feeds

Get the most relevant data to be ahead of emerging security threats.

Learn more
IP Geolocation
IP Geolocation

Find out the exact physical location of any IP address, email or domain name.

Learn more
MAC Address API
MAC Address API

Get vendor information, detect virtual machines, manufacturer, location, read the information encoded in the MAC address.

Learn more
Newly Registered Domains
Newly Registered Domains

Keep track of the best business opportunities online.

Learn more
Threat Intelligence API
Threat Intelligence API

Easily identify malicious resources and retrieve their threat information.

Learn more
Reverse MX
Reverse MX

Reveal all the domains that use the same mail server.

Learn more
WHOIS Database Download
WHOIS Database Download

We provide complete and relevant domain WHOIS data which can be customized and easily integrated as per your business needs.

Learn more
DNS Lookup Services
DNS Lookup Services

Identify who is hosting a particular domain name or website.

Learn more
Typosquatting Data Feed
Typosquatting Data Feed

Easily detect all typosquatting domain names as soon as they are registered each day.

Learn more
Email Verification
Email Verification

Ensure the validity and quality of any email address.

Learn more
SSL Certificates Database
SSL Certificates Database

Get the most comprehensive database of SSL (Secure Sockets Layer) Certificates.

Learn more
Screenshot Service
Screenshot Service

Instantly get a screenshot of any web page.

Learn more
Domain Reputation API
Domain Reputation API

Assess the domain's or IP addresses reputation and risk profile with a simple score based on a comprehensive...

Learn more
WHOIS Search
WHOIS Search

Get well-parsed and normalized WHOIS information for any domain name, IP address or email.

Learn more
Website Categorization
Website Categorization

Define website category of the given domain.

Learn more
Domain Research Suite
Domain Research Suite

Enhance your domain research toolkit by our enterprise-grade web-based solution that helps you in searching...

Learn more
Reverse DNS
Reverse DNS

Give the list of domain names tied to the specified DNS records via API calls with outputs in JSON and XML.

Learn more
MAC Address Vendor Database
MAC Address Vendor Database

Get the most comprehensive database of registered MAC address blocks, also referred to as OUIs (Organizationally Unique Identifiers).

Learn more