{"id":1978,"date":"2020-11-24T09:13:01","date_gmt":"2020-11-24T09:13:01","guid":{"rendered":"https:\/\/www.domainnamesanity.com\/blog\/?p=1978"},"modified":"2020-11-24T09:20:50","modified_gmt":"2020-11-24T09:20:50","slug":"cname-vs-a-record","status":"publish","type":"post","link":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/","title":{"rendered":"CNAME vs A Record"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1978\" class=\"elementor elementor-1978\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-230899b0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"230899b0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7ff48571\" data-id=\"7ff48571\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-48deb20 elementor-widget elementor-widget-text-editor\" data-id=\"48deb20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"breadcrumbs-bar\"><nav class=\"blog-breadcrumbs\">\n<ul>\n \t<li><a href=\"https:\/\/www.domainnamesanity.com\/\">HOME<\/a><\/li>\n \t<li class=\"bc-2nd\"><a href=\"https:\/\/www.domainnamesanity.com\/blog\/\">BLOG<\/a><\/li>\n<\/ul>\n<\/nav><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1c29e94 elementor-widget elementor-widget-theme-post-title elementor-page-title elementor-widget-heading\" data-id=\"1c29e94\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"theme-post-title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">CNAME vs A Record<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d6ac49d elementor-widget elementor-widget-post-info\" data-id=\"d6ac49d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"post-info.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul class=\"elementor-inline-items elementor-icon-list-items elementor-post-info\">\n\t\t\t\t\t<li class=\"elementor-icon-list-item elementor-repeater-item-d9c2fd9 elementor-inline-item\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text elementor-post-info__item elementor-post-info__item--type-custom\">\n\t\t\t\t\t\t\t\t\t\tBy Douglas Moore\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t<li class=\"elementor-icon-list-item elementor-repeater-item-6a0ea6c elementor-inline-item\" itemprop=\"datePublished\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-icon-list-text elementor-post-info__item elementor-post-info__item--type-date\">\n\t\t\t\t\t\t\t<span class=\"elementor-post-info__item-prefix\">Last Updated On<\/span>\n\t\t\t\t\t\t\t\t\t\tNovember 24, 2020\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t<\/ul>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8f51764 elementor-widget elementor-widget-theme-post-featured-image elementor-widget-image\" data-id=\"8f51764\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"theme-post-featured-image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"2560\" height=\"1920\" src=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg\" class=\"attachment-full size-full wp-image-1983\" alt=\"\" srcset=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg 2560w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-300x225.jpg 300w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-1024x768.jpg 1024w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-768x576.jpg 768w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-1536x1152.jpg 1536w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-2048x1536.jpg 2048w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-43ea192 toc-top elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"43ea192\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-85705ab\" data-id=\"85705ab\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9f76f1c elementor-widget elementor-widget-text-editor\" data-id=\"9f76f1c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-197d5d2 elementor-widget elementor-widget-text-editor\" data-id=\"197d5d2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The DNS records which live on your domain\u2019s authoritative server are key to the proper functioning of your domain and website. They hold the information that dictates how your domain will handle various requests, which IP addresses are associated with it, and so on. There are many DNS record types, and they vary from being absolutely essential, to simply being quite useful.<\/p><p>Two of the most commonly used DNS records are <b>A records<\/b> and <b>CNAME records<\/b>. In a way, A records fall into the category of essential DNS records. A records basically create the link between a website\u2019s IP address (the server where a site\u2019s content is stored) and its domain name (how users access the website through their browsers). CNAME records, on the other hand, aren\u2019t absolutely necessary in theory, but are necessary in practice &#8211; if you want your website to be widely accessible, that is. CNAME records create a connection between subdomains or domain aliases and the main IP address for that, whether it&#8217;s on your domain or another domain.<\/p><p>Let\u2019s take a closer look at what each of these DNS records is and what their functions are, so as to better understand what the difference between a CNAME and an A record is.<\/p><h2>What Is an A Record?<\/h2><p>The Domain Name System was created in order to allow users to access websites through their browsers by entering the site\u2019s domain names rather than their IP addresses. Imagine how difficult it would be to keep track of all the websites\u2019 IP addresses. For instance, to visit <b>example.com<\/b> all you have to do is type that domain name into your browser\u2019s search bar. If the DNS wasn\u2019t instituted, you\u2019d need to type out its IP address, or <b>93.184.216.34<\/b>. So rather than having to keep a long list of all website\u2019s IP addresses, we just get to type in their domain names.<\/p><p>The <a href=\"https:\/\/www.domainnamesanity.com\/blog\/what-is-an-a-record\/\">DNS A record<\/a> serves exactly this basic purpose of the DNS. It contains information about which IP address is associated with a given domain. That\u2019s why the \u201cA\u201d in \u201cA record\u201d stands for \u201caddress.\u201d So in the example we gave above, the zone files, or DNS records, concerning the website <b>example.com<\/b>, have an A record which specifies that <b>example.com<\/b> lives on the <b>93.184.216.34<\/b> IP address. Without an A record, a website wouldn\u2019t be reachable through its domain name.<\/p><p>So, when a user types out a certain domain into their browser\u2019s address bar, the appropriate server returns the IP address for that domain which is found in its zone files, allowing the user to access the website.<\/p><p>Keep in mind that A records only work with IPv4 addresses, and not IPv6 addresses (you\u2019d use an AAAA record for those).<\/p><h2>What Is A CNAME Record?<\/h2><p>A <a href=\"https:\/\/www.domainnamesanity.com\/blog\/what-is-a-cname-record\/\">CNAME record<\/a> is a DNS record that provides an association for alias domains and subdomains to the main, parent domain. The \u201cC\u201d stands for \u201ccanonical,\u201d as this DNS record connects subdomains to the canonical name-domain or the records delivered for another DNS hostname.<\/p><p>Let\u2019s look at how this looks. When you set up an A record for <b>example.com<\/b> you associate it with the <b>93.184.216.34<\/b> IP address. However, that <i>doesn\u2019t<\/i> include domain aliases, such as <b>www.example.com.<\/b> That\u2019s right, even adding a <b>www<\/b> before the domain name won\u2019t lead you to the correct website <i>unless<\/i> a CNAME record exists to provide instructions that those two domains are to result in the same page.<\/p><p>Keep in mind, however, that a CNAME record creates a connection between a subdomain and a parent domain also, which means that it doesn\u2019t always <i>result<\/i> in the same page popping up. For instance, when you have subdomains for a website, such as <b>blog.example.com<\/b> or <b>mail.example.com<\/b>, you still need to create CNAME records that link these subdomains to the parent domain.\u00a0<\/p><p>Of course, this doesn\u2019t mean that when users try to access a subdomain of that domain they end up on the <b>home <\/b>page, i.e. the same page as the parent domain. Rather, users are directed to the appropriate files for that subdomain, such as the <b>blog<\/b> page or the <b>mail<\/b> page rather than the <b>home <\/b>page.<\/p><p>CNAME records are quite useful when webmasters change the IP address of their website. Rather than having to change A records for each subdomain, they only have to change the A record for the parent website. Which brings us to&#8230;<\/p><h2>What Is the Difference Between a DNS A Record and A DNS CNAME Record?<\/h2><p>To better clarify the difference between DNS A records and CNAME records, let\u2019s look at an example of how both would work for the same website.<\/p><table><tbody><tr><td><p><b>Hostname\/Domain\/Subdomain<\/b><\/p><\/td><td><p><b>DNS Record Type<\/b><\/p><\/td><td><p><b>Destination<\/b><\/p><\/td><\/tr><tr><td><p>example.com<\/p><\/td><td><p>A record<\/p><\/td><td><p>93.184.216.34<\/p><\/td><\/tr><tr><td><p>www.example.com<\/p><\/td><td><p>CNAME record<\/p><\/td><td><p>example.com<\/p><\/td><\/tr><tr><td><p>mail.example.com<\/p><\/td><td><p>CNAME record<\/p><\/td><td><p>example.com<\/p><\/td><\/tr><tr><td><p>shop.example.com<\/p><\/td><td><p>CNAME record<\/p><\/td><td><p>shops.myshopify.com<\/p><\/td><\/tr><\/tbody><\/table><p>As you can see, an A record only serves to associate the parent domain (hostname) with the appropriate IP address. CNAME records, on the other hand, link domain aliases (www) and subdomains (mail) to the parent domain which is specified in the A record. The shop subdomain points to Shopify&#8217;s servers, so they can manage which A record (IP address) the online store is hosted on. So while A records connect websites to IP addresses, CNAME records connect subdomains and aliases to the another domain record, <b>not<\/b> its IP address.\u00a0<\/p><p>It, therefore, follows that you can\u2019t create CNAME records for the parent (main) domain name, but only A records. <\/p><p>Keep in mind that you should also strive to target all your CNAME records to the parent domain rather than other aliases that are in turn associated with the main domain. This creates an unnecessary additional step in the DNS lookup process, which can cost visitors time and result in needless complications.\u00a0<\/p><p>For instance, avoid this configuration:<\/p><table><tbody><tr><td><p><b>Hostname\/Domain\/Subdomain<\/b><\/p><\/td><td><p><b>DNS Record Type<\/b><\/p><\/td><td><p><b>Destination<\/b><\/p><\/td><\/tr><tr><td><p>www.example.com<\/p><\/td><td><p>CNAME record<\/p><\/td><td><p>example.com<\/p><\/td><\/tr><tr><td><p>mail.example.com<\/p><\/td><td><p>CNAME record<\/p><\/td><td><p>www.example.com<\/p><\/td><\/tr><\/tbody><\/table><p>Here, <b>mail.example.com<\/b> is linked to <b>www.example.com<\/b>, which is in turn linked to the parent domain, <b>example.com<\/b>. Instead of this, use the configuration we presented above, where all subdomains have CNAME records pertaining to the parent domain (<b>example.com<\/b>).<\/p><h2>A Few Words Before You Go\u2026<\/h2><p>Hopefully, our guide has been useful in helping you understand the difference between a CNAME record and an A record in DNS. Both these DNS records types are quite useful, but only A records are absolutely necessary.\u00a0<\/p><p>However, it\u2019s quite likely that your website won\u2019t function successfully without CNAME records, as well. Even if your website consists of a single page, you\u2019ll at least need to create a CNAME record for <b>www<\/b> targeting the parent domain.<\/p><p>Additionally, A records connect the parent domain to its IP address, while CNAME records connect domain aliases and subdomains to the parent domain. It\u2019s through the A record of the parent domain that users can access the site\u2019s content. CNAME records can\u2019t be used for creating direct associations with IP addresses.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-02d9db7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"02d9db7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e3db840\" data-id=\"e3db840\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-60a6169 article-end elementor-widget elementor-widget-spacer\" data-id=\"60a6169\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-565995e elementor-widget elementor-widget-heading\" data-id=\"565995e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">View Related Articles<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-21bb133 elementor-widget elementor-widget-spacer\" data-id=\"21bb133\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-404e6d4 elementor-posts__hover-none elementor-grid-3 elementor-grid-tablet-2 elementor-grid-mobile-1 elementor-posts--thumbnail-top elementor-card-shadow-yes elementor-widget elementor-widget-posts\" data-id=\"404e6d4\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;cards_masonry&quot;:&quot;yes&quot;,&quot;cards_columns&quot;:&quot;3&quot;,&quot;cards_columns_tablet&quot;:&quot;2&quot;,&quot;cards_columns_mobile&quot;:&quot;1&quot;,&quot;cards_row_gap&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:35,&quot;sizes&quot;:[]}}\" data-widget_type=\"posts.cards\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-posts-container elementor-posts elementor-posts--skin-cards elementor-grid\">\n\t\t\t\t<article class=\"elementor-post elementor-grid-item post-2545 post type-post status-publish format-standard has-post-thumbnail hentry category-fixing-errors\">\n\t\t\t<div class=\"elementor-post__card\">\n\t\t\t\t<a class=\"elementor-post__thumbnail__link\" href=\"https:\/\/www.domainnamesanity.com\/blog\/why-are-my-emails-going-to-spam\/\" >\n\t\t\t<div class=\"elementor-post__thumbnail\"><img decoding=\"async\" width=\"640\" height=\"640\" src=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-1024x1024.jpg\" class=\"attachment-large size-large wp-image-2546\" alt=\"\" srcset=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-1024x1024.jpg 1024w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-300x300.jpg 300w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-150x150.jpg 150w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-768x768.jpg 768w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-1536x1536.jpg 1536w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/spam-email-2048x2048.jpg 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/div>\n\t\t<\/a>\n\t\t\t\t<div class=\"elementor-post__text\">\n\t\t\t\t<h6 class=\"elementor-post__title\">\n\t\t\t<a href=\"https:\/\/www.domainnamesanity.com\/blog\/why-are-my-emails-going-to-spam\/\" >\n\t\t\t\tWhy Are My Emails Going to Spam?\t\t\t<\/a>\n\t\t<\/h6>\n\t\t\t\t<div class=\"elementor-post__excerpt\">\n\t\t\t<p>There is no experience more frustrating than having your emails end up in the spam folder of your recipients rather than their inboxes. If you\u2019ve found that your emails are going to spam instead of your subscribers\u2019 inboxes, keep reading to find out why.<\/p>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/article>\n\t\t\t\t<article class=\"elementor-post elementor-grid-item post-2525 post type-post status-publish format-standard has-post-thumbnail hentry category-fixing-errors\">\n\t\t\t<div class=\"elementor-post__card\">\n\t\t\t\t<a class=\"elementor-post__thumbnail__link\" href=\"https:\/\/www.domainnamesanity.com\/blog\/how-to-become-tech-savvy\/\" >\n\t\t\t<div class=\"elementor-post__thumbnail\"><img decoding=\"async\" width=\"640\" height=\"518\" src=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/tech-savvy-person-1024x828.jpg\" class=\"attachment-large size-large wp-image-2523\" alt=\"\" srcset=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/tech-savvy-person-1024x828.jpg 1024w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/tech-savvy-person-300x243.jpg 300w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/tech-savvy-person-768x621.jpg 768w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/tech-savvy-person-1536x1243.jpg 1536w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2023\/07\/tech-savvy-person-2048x1657.jpg 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/div>\n\t\t<\/a>\n\t\t\t\t<div class=\"elementor-post__text\">\n\t\t\t\t<h6 class=\"elementor-post__title\">\n\t\t\t<a href=\"https:\/\/www.domainnamesanity.com\/blog\/how-to-become-tech-savvy\/\" >\n\t\t\t\tHow to Become Tech Savvy\t\t\t<\/a>\n\t\t<\/h6>\n\t\t\t\t<div class=\"elementor-post__excerpt\">\n\t\t\t<p>In a world where technology shapes our society and everyday life, knowing how to operate a computer and other common tech gadgets becomes a survival skill. <\/p>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/article>\n\t\t\t\t<article class=\"elementor-post elementor-grid-item post-2412 post type-post status-publish format-standard has-post-thumbnail hentry category-fixing-errors\">\n\t\t\t<div class=\"elementor-post__card\">\n\t\t\t\t<a class=\"elementor-post__thumbnail__link\" href=\"https:\/\/www.domainnamesanity.com\/blog\/what-two-protocols-are-used-to-deliver-mail-messages\/\" >\n\t\t\t<div class=\"elementor-post__thumbnail\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/07\/catch-all-email-1024x768.jpg\" class=\"attachment-large size-large wp-image-1827\" alt=\"\" srcset=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/07\/catch-all-email-1024x768.jpg 1024w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/07\/catch-all-email-300x225.jpg 300w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/07\/catch-all-email-768x576.jpg 768w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/07\/catch-all-email-1536x1152.jpg 1536w, https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/07\/catch-all-email-2048x1536.jpg 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/div>\n\t\t<\/a>\n\t\t\t\t<div class=\"elementor-post__text\">\n\t\t\t\t<h6 class=\"elementor-post__title\">\n\t\t\t<a href=\"https:\/\/www.domainnamesanity.com\/blog\/what-two-protocols-are-used-to-deliver-mail-messages\/\" >\n\t\t\t\tWhat two protocols are used to deliver mail messages?\t\t\t<\/a>\n\t\t<\/h6>\n\t\t\t\t<div class=\"elementor-post__excerpt\">\n\t\t\t<p>Emailing today is such an easy task. Compose, hit send, and your message travels across oceans and borders to reach its recipient. It is such an easy task that people\u2019s attention starts to drown in their full inboxes, which are also littered by spammers, phishers and other members of the not-so-nice population of netizens.<\/p>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/article>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0b4fddc elementor-widget elementor-widget-spacer\" data-id=\"0b4fddc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>There are many DNS record types, and they vary from being absolutely essential, to simply being quite useful. Two of the most commonly used DNS records are A records and CNAME records. Let\u2019s take a closer look at what each of these DNS records is and what their functions are, so as to better understand what the difference between a CNAME and an A record is.<\/p>\n","protected":false},"author":1,"featured_media":1983,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domain-names"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CNAME vs A Record - Domain Name Sanity Blog<\/title>\n<meta name=\"description\" content=\"Find out what CNAME and A records are in DNS, when to use each DNS record, and how they differ from one another.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CNAME vs A Record - Domain Name Sanity Blog\" \/>\n<meta property=\"og:description\" content=\"Find out what CNAME and A records are in DNS, when to use each DNS record, and how they differ from one another.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/\" \/>\n<meta property=\"og:site_name\" content=\"Domain Name Sanity Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-24T09:13:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-11-24T09:20:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1920\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Domain Name Sanity\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Domain Name Sanity\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/\"},\"author\":{\"name\":\"Domain Name Sanity\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/#\\\/schema\\\/person\\\/9b0b37ae15e106ba4e72a5ec2db0cf4e\"},\"headline\":\"CNAME vs A Record\",\"datePublished\":\"2020-11-24T09:13:01+00:00\",\"dateModified\":\"2020-11-24T09:20:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/\"},\"wordCount\":1213,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/cname-vs-a-scaled.jpg\",\"articleSection\":[\"Domain Names\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/\",\"url\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/\",\"name\":\"CNAME vs A Record - Domain Name Sanity Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/cname-vs-a-scaled.jpg\",\"datePublished\":\"2020-11-24T09:13:01+00:00\",\"dateModified\":\"2020-11-24T09:20:50+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/#\\\/schema\\\/person\\\/9b0b37ae15e106ba4e72a5ec2db0cf4e\"},\"description\":\"Find out what CNAME and A records are in DNS, when to use each DNS record, and how they differ from one another.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/cname-vs-a-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/cname-vs-a-scaled.jpg\",\"width\":2560,\"height\":1920},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/cname-vs-a-record\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CNAME vs A Record\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/\",\"name\":\"Domain Name Sanity Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.domainnamesanity.com\\\/blog\\\/#\\\/schema\\\/person\\\/9b0b37ae15e106ba4e72a5ec2db0cf4e\",\"name\":\"Domain Name Sanity\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/76585e5a8b8873461b624adb0a20fe0785967f5389e70b6a3bbf5de67bb45209?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/76585e5a8b8873461b624adb0a20fe0785967f5389e70b6a3bbf5de67bb45209?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/76585e5a8b8873461b624adb0a20fe0785967f5389e70b6a3bbf5de67bb45209?s=96&d=retro&r=g\",\"caption\":\"Domain Name Sanity\"},\"sameAs\":[\"https:\\\/\\\/www.domainnamesanity.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CNAME vs A Record - Domain Name Sanity Blog","description":"Find out what CNAME and A records are in DNS, when to use each DNS record, and how they differ from one another.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/","og_locale":"en_US","og_type":"article","og_title":"CNAME vs A Record - Domain Name Sanity Blog","og_description":"Find out what CNAME and A records are in DNS, when to use each DNS record, and how they differ from one another.","og_url":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/","og_site_name":"Domain Name Sanity Blog","article_published_time":"2020-11-24T09:13:01+00:00","article_modified_time":"2020-11-24T09:20:50+00:00","og_image":[{"width":2560,"height":1920,"url":"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg","type":"image\/jpeg"}],"author":"Domain Name Sanity","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Domain Name Sanity","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#article","isPartOf":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/"},"author":{"name":"Domain Name Sanity","@id":"https:\/\/www.domainnamesanity.com\/blog\/#\/schema\/person\/9b0b37ae15e106ba4e72a5ec2db0cf4e"},"headline":"CNAME vs A Record","datePublished":"2020-11-24T09:13:01+00:00","dateModified":"2020-11-24T09:20:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/"},"wordCount":1213,"commentCount":0,"image":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#primaryimage"},"thumbnailUrl":"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg","articleSection":["Domain Names"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/","url":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/","name":"CNAME vs A Record - Domain Name Sanity Blog","isPartOf":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#primaryimage"},"image":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#primaryimage"},"thumbnailUrl":"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg","datePublished":"2020-11-24T09:13:01+00:00","dateModified":"2020-11-24T09:20:50+00:00","author":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/#\/schema\/person\/9b0b37ae15e106ba4e72a5ec2db0cf4e"},"description":"Find out what CNAME and A records are in DNS, when to use each DNS record, and how they differ from one another.","breadcrumb":{"@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#primaryimage","url":"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg","contentUrl":"https:\/\/www.domainnamesanity.com\/blog\/wp-content\/uploads\/2020\/11\/cname-vs-a-scaled.jpg","width":2560,"height":1920},{"@type":"BreadcrumbList","@id":"https:\/\/www.domainnamesanity.com\/blog\/cname-vs-a-record\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.domainnamesanity.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CNAME vs A Record"}]},{"@type":"WebSite","@id":"https:\/\/www.domainnamesanity.com\/blog\/#website","url":"https:\/\/www.domainnamesanity.com\/blog\/","name":"Domain Name Sanity Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.domainnamesanity.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.domainnamesanity.com\/blog\/#\/schema\/person\/9b0b37ae15e106ba4e72a5ec2db0cf4e","name":"Domain Name Sanity","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/76585e5a8b8873461b624adb0a20fe0785967f5389e70b6a3bbf5de67bb45209?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/76585e5a8b8873461b624adb0a20fe0785967f5389e70b6a3bbf5de67bb45209?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/76585e5a8b8873461b624adb0a20fe0785967f5389e70b6a3bbf5de67bb45209?s=96&d=retro&r=g","caption":"Domain Name Sanity"},"sameAs":["https:\/\/www.domainnamesanity.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/posts\/1978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/comments?post=1978"}],"version-history":[{"count":5,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/posts\/1978\/revisions"}],"predecessor-version":[{"id":1987,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/posts\/1978\/revisions\/1987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/media\/1983"}],"wp:attachment":[{"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/media?parent=1978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/categories?post=1978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.domainnamesanity.com\/blog\/wp-json\/wp\/v2\/tags?post=1978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}