MX Lookup | WhoisXML API

MX Lookup

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

Want to do more complete lookups?

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

Start DNS Lookup API Trial
500 亿+域名和子域名
1160 亿+DNS记录
52,000+满意客户
15 年+数据抓取经验

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数据库下载

    DNS数据库下载

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

    Explore Database
  • DNS查询API

    DNS查询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查询

    DNS查询

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

    Explore Lookup
  • DNS 大事记 API

    DNS 大事记 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 大事记查询

    DNS 大事记查询

    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
DNS查询API | WhoisXML API

免费获取 500 个 API 点数。无需使用信用卡

点击开始

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.

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.

Why is an MX record lookup important?

Checking a domain’s MX record is essential because an MX record enables reliable email delivery. It helps detect and prevent misconfigurations that could prevent users from receiving emails.

Who controls my MX record?

The domain owner has control over MX records, but they are managed through interfaces provided by the DNS hosting service provider.

How can I check the other DNS records of a domain?

You may use DNS Lookup API or our lookup tool, which returns TXT, NS, and other DNS record types. If you only want to look up a specific record type, you can use these tools for free: