{"id":21874,"date":"2026-05-06T22:10:47","date_gmt":"2026-05-06T19:10:47","guid":{"rendered":"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/"},"modified":"2026-11-15T23:05:05","modified_gmt":"2026-11-15T20:05:05","slug":"what-is-an-mx-record","status":"publish","type":"post","link":"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/","title":{"rendered":"What Is an MX Record and How to Check It? A, CNAME and MX DNS Records"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_90 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#A_CNAME_and_MX_Records_Compared\" >A, CNAME and MX Records Compared<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#How_Does_an_MX_Record_Work_The_Priority_Value\" >How Does an MX Record Work? The Priority Value<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#How_to_Look_Up_an_MX_Record\" >How to Look Up an MX Record<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#How_to_Add_or_Change_an_MX_Record\" >How to Add or Change an MX Record<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#Common_MX_Record_Mistakes\" >Common MX Record Mistakes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#Frequently_Asked_Questions\" >Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#Can_email_arrive_without_an_MX_record\" >Can email arrive without an MX record?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#Can_the_website_be_in_one_place_and_email_in_another\" >Can the website be in one place and email in another?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/sunucun.com.tr\/blog\/what-is-an-mx-record\/#Should_I_use_an_A_record_or_a_CNAME\" >Should I use an A record or a CNAME?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\">An <strong>MX record (Mail Exchanger)<\/strong> is a DNS record that specifies <strong>which mail server should receive emails sent to a domain<\/strong>. When someone sends an email to <code>info@yourdomain.com<\/code>, the sending server first looks up the MX records of yourdomain.com and delivers the email to the server listed there. If there is no MX record, or it is wrong, emails do not reach you. An <strong>A record<\/strong> points a domain to an IP address, and a <strong>CNAME record<\/strong> points one domain name to another.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"A_CNAME_and_MX_Records_Compared\"><\/span>A, CNAME and MX Records Compared<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th>Record<\/th><th>What it does<\/th><th>Example<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><strong>A<\/strong><\/td><td>Links a domain name to an IPv4 address (<strong>AAAA<\/strong> for IPv6)<\/td><td><code>yourdomain.com \u2192 203.0.113.10<\/code><\/td><\/tr>\n<tr><td><strong>CNAME<\/strong><\/td><td>Points one name to another name (an alias)<\/td><td><code>www.yourdomain.com \u2192 yourdomain.com<\/code><\/td><\/tr>\n<tr><td><strong>MX<\/strong><\/td><td>Specifies the mail server that receives email, and its priority<\/td><td><code>yourdomain.com MX 10 mail.yourdomain.com<\/code><\/td><\/tr>\n<tr><td><strong>TXT<\/strong><\/td><td>Text information; SPF, DKIM and DMARC for email authentication<\/td><td><code>v=spf1 ... ~all<\/code><\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Does_an_MX_Record_Work_The_Priority_Value\"><\/span>How Does an MX Record Work? The Priority Value<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each MX record has a <strong>priority (preference)<\/strong> number and a <strong>mail server name<\/strong>. The sending server tries the server with the <strong>lowest number<\/strong> first; if it cannot reach it, it moves on to the next one. Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yourdomain.com.  MX  10  mx1.mail-provider.com.\nyourdomain.com.  MX  20  mx2.mail-provider.com.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here, emails go to mx1 first; if mx1 does not respond, they go to mx2. If several records have the same priority, the load is shared between them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Look_Up_an_MX_Record\"><\/span>How to Look Up an MX Record<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"snc-table-wrap\"><table>\n<thead><tr><th>Method<\/th><th>Command \/ step<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><strong>Windows<\/strong><\/td><td>In Command Prompt: <code>nslookup -type=mx yourdomain.com<\/code><\/td><\/tr>\n<tr><td><strong>macOS \/ Linux<\/strong><\/td><td>In the terminal: <code>dig mx yourdomain.com +short<\/code> or <code>host -t mx yourdomain.com<\/code><\/td><\/tr>\n<tr><td><strong>Asking a specific DNS server<\/strong><\/td><td><code>nslookup -type=mx yourdomain.com 8.8.8.8<\/code> or <code>dig @1.1.1.1 mx yourdomain.com<\/code> (to see whether a change has propagated)<\/td><\/tr>\n<tr><td><strong>Online tool<\/strong><\/td><td>In tools such as Google Admin Toolbox Dig (toolbox.googleapps.com), type the domain and choose MX<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Each line of the output shows the priority and the server name. If no MX record is returned, no server has been set up to receive email for the domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Add_or_Change_an_MX_Record\"><\/span>How to Add or Change an MX Record<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Find out where your domain&#8217;s DNS is managed (the registrar&#8217;s panel, the <a href=\"https:\/\/sunucun.com.tr\/hosting\/\" data-internallinksmanager029f6b8e52c=\"126\" title=\"Web bar\u0131nd\u0131rma paketlerini inceleyin\">hosting<\/a> panel or a DNS service such as Cloudflare). The record is changed wherever the nameservers point.<\/li>\n<li>In <strong>cPanel<\/strong>: Email &gt; <strong>Email Routing<\/strong> and <strong>Zone Editor<\/strong> &gt; the domain &gt; Add MX Record. For details, see our article on <a href=\"https:\/\/sunucun.com.tr\/blog\/configuring-dns-settings-in-cpanel-a-comprehensive-guide\/\">cPanel DNS settings<\/a>.<\/li>\n<li>Enter the MX values and priorities given by your mail provider (for example Google Workspace, Microsoft 365 or your hosting&#8217;s own mail server) exactly; delete old MX records you no longer use.<\/li>\n<li>Also add SPF (TXT), DKIM and DMARC records according to the provider&#8217;s instructions; otherwise the emails you send may end up in spam.<\/li>\n<li>How long the change takes to propagate depends on the record&#8217;s <strong>TTL<\/strong>; it can take from a few minutes to a few hours. Check with the commands above during this time. If your own computer keeps showing the old record, flush your DNS cache.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_MX_Record_Mistakes\"><\/span>Common MX Record Mistakes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Putting an IP address in the MX record:<\/strong> An MX record must point to a server name (for example mail.yourdomain.com), not an IP; that name must have its own A\/AAAA record.<\/li>\n<li><strong>Pointing MX to a CNAME:<\/strong> According to DNS standards, the name an MX record points to must not be a CNAME; use a name that has an A\/AAAA record directly.<\/li>\n<li><strong>Leaving the old provider&#8217;s MX:<\/strong> If old records remain when you move to a new provider, some emails go to the old server.<\/li>\n<li><strong>Editing the record in the wrong place:<\/strong> If the nameservers point to Cloudflare, changes made in the registrar&#8217;s panel have no effect.<\/li>\n<li><strong>Putting a CNAME on the root domain:<\/strong> A CNAME cannot be used for yourdomain.com (the root); it conflicts with other records at the root such as MX.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For how DNS works in general, see our articles <a href=\"https:\/\/sunucun.com.tr\/blog\/what-is-dns-public-dns-servers\/\">what is DNS<\/a>, <a href=\"https:\/\/sunucun.com.tr\/blog\/how-to-create-email-on-cpanel\/\">creating email in cPanel<\/a> and, for mail client connection problems, <a href=\"https:\/\/sunucun.com.tr\/blog\/connect-to-imap-error\/\">cannot connect to the IMAP server<\/a>. To use business email with your domain, take a look at our <a href=\"https:\/\/sunucun.com.tr\/en\/hosting\/\">hosting plans<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_email_arrive_without_an_MX_record\"><\/span>Can email arrive without an MX record?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If there is no MX record, the standards allow the sending server to try delivering to the domain&#8217;s A\/AAAA record, but this is not reliable and in most cases the email does not arrive. Every domain that receives email should have a correct MX record.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Can_the_website_be_in_one_place_and_email_in_another\"><\/span>Can the website be in one place and email in another?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. The A record points to the server where the website is, and the MX record points to the email provider; the two are independent of each other.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Should_I_use_an_A_record_or_a_CNAME\"><\/span>Should I use an A record or a CNAME?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you know the server&#8217;s static IP address, use an A record. If a service gives you a name instead of an IP (for example a CDN or a site builder), use a CNAME for the subdomain.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>An MX record (Mail Exchanger) is a DNS record that specifies which mail server should receive emails sent to a domain. When someone sends an email to info@yourdomain.com, the sending server first looks up the MX records of yourdomain.com and delivers the email to the server listed there. If there is no MX record, or&hellip;<\/p>\n","protected":false},"author":1,"featured_media":21118,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1523],"tags":[],"class_list":["post-21874","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network"],"_links":{"self":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/21874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/comments?post=21874"}],"version-history":[{"count":0,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/posts\/21874\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media\/21118"}],"wp:attachment":[{"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/media?parent=21874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/categories?post=21874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucun.com.tr\/blog\/wp-json\/wp\/v2\/tags?post=21874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}