{"id":17010,"date":"2025-07-17T07:02:48","date_gmt":"2025-07-17T06:02:48","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=17010"},"modified":"2025-07-17T07:02:48","modified_gmt":"2025-07-17T06:02:48","slug":"cname-vs-alias-records","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/","title":{"rendered":"CNAME vs ALIAS Records: Key Differences Explained"},"content":{"rendered":"\n<p>Knowing the difference between a CNAME and an ALIAS record will save you time during the configuration phase of your DNS records. It helps you avoid potential problems with domain resolution and downtime. Even though there is a high resemblance between these records, they differ greatly in their use cases and behavior.<\/p>\n\n\n\n<p>In this article, we will cover strategies that will help you differentiate between CNAME and ALIAS records, where and how to use them correctly, and what mistakes to be on the lookout for.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a CNAME Record?&nbsp;&nbsp;<\/h2>\n\n\n\n<p>A CNAME (Canonical Name) record points one domain or subdomain to another. Instead of directing to an IP, a CNAME record directs to a hostname.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Best For:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Used for Subdomains such as www or blog.<\/li>\n\n\n\n<li>Used for redirecting multiple domains to a single destination.<\/li>\n\n\n\n<li>Used for dynamic services such as CDNs.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Instance:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>www.example.com \u2192 example.net<\/li>\n\n\n\n<li>This means that for anyone accessing www.example.com, their DNS queries will be resolved via example.net.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Key Limitations:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You cannot use CNAMEs on root domains (like example.com).<\/li>\n\n\n\n<li>You can have only one CNAME per subdomain.<\/li>\n\n\n\n<li>CNAMEs must not coexist with other types of records, like MX or A for the same hostname.<\/li>\n<\/ul>\n\n\n\n<p><strong>Related Read: \u276f <\/strong><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/add-delete-cname-records-cpanel-whm\/\"><strong>How to Add and Delete CNAME Records in cPanel and WHM?<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is an ALIAS Record?<\/h2>\n\n\n\n<p>Root domain pointing is what ALIAS records are designed to enable. Like CNAMEs, they also point domains to other domains. However, ALIAS records only work at the root domain level.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Best For:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pointing the apex\/root domain (e.g., example.com) to another domain<\/li>\n\n\n\n<li>Compatibility with providers requiring IP-based responses<\/li>\n\n\n\n<li>DNS providers that support \u201cflattening\u201d techniques<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Instance:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cexample.com\u201d points to \u201cexample.net.\u201d<\/li>\n\n\n\n<li>With ALIAS, IP resolution is possible for users; however, a different hostname can be behind the scenes.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Key Advantage:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>More than one DNS record can be created with ALIAS records, and that enhances their flexibility greatly. For example, MX records can still be included, which is an advantage over CNAMEs.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Adding an ALIAS Record in MilesWeb\u2019s mPanel<\/h2>\n\n\n\n<p>In MilesWeb\u2019s mPanel, adding what functions as an ALIAS record is done using the CNAME format\u2014but with behavior adapted for apex\/root domains.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to Set It Up:<\/h3>\n\n\n\n<p>When adding the ALIAS-like record for your root domain:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNS Record Type: CNAME<\/li>\n\n\n\n<li>Name: @ (represents your root domain, e.g., yourdomain.com)<\/li>\n\n\n\n<li>Target: The destination domain name (e.g., connect.yourservice.com)<\/li>\n\n\n\n<li>(Note: It should not be a full URL\u2014only a domain name is valid.)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Example Configuration (MilesWeb mPanel):<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNS Record Type: CNAME<\/li>\n\n\n\n<li>Name: @<\/li>\n\n\n\n<li>Target: connect.mileswebapp.com<\/li>\n<\/ul>\n\n\n\n<p>Once saved, the record may display as ALIAS in the interface to indicate that it\u2019s serving root-level redirection while resolving to the target&#8217;s IP address behind the scenes<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use ALIAS if you want your root domain to point to a third-party service.<\/li>\n\n\n\n<li>For subdomains www, app, and blog, use CNAME.<\/li>\n\n\n\n<li>Avoid using both records for the same hostname.<\/li>\n\n\n\n<li>We recommend that you don\u2019t mix CNAME with A, MX, or TXT records on the same subdomain.<\/li>\n\n\n\n<li>Check TTL settings closely so DNS propagation works as you intended.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to Confirm Your DNS Setup?<\/h2>\n\n\n\n<p>After setting up your CNAME or ALIAS records, confirming that everything resolves correctly is essential. You can check propagation using online tools like DNS Checker.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Steps to Verify:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Visit <a href=\"https:\/\/tools.milesweb.com\/dns-watch\/\">DNS Checker<\/a>.<\/li>\n\n\n\n<li>Type your full primary domain (ex., yourdomain.com).<\/li>\n\n\n\n<li>Choose A Record from the dropdown list.<\/li>\n\n\n\n<li>Hit the Search button.<\/li>\n<\/ul>\n\n\n\n<p>If configured properly, the tool will return an IP address that should be associated with your domain, and it&#8217;s supposed to be the same as the address you are pointing to, like your hosting provider or server.&nbsp;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Pro Tip:<\/em><\/strong> If the IP does not match or if there are delays in getting responses from different regions, your changes could still be propagating, or there might be a misconfiguration.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Knowing the difference between a CNAME and an ALIAS record will save you time during the configuration phase of your DNS records. It helps you avoid potential problems with domain resolution and downtime. Even though there is a high resemblance between these records, they differ greatly in their use cases and behavior. In this article, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-17010","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CNAME vs ALIAS Records: Key Differences Explained<\/title>\n<meta name=\"description\" content=\"CNAME vs ALIAS \u2013 Find out when and how to use each DNS record, including configuration tips and best practices from MilesWeb.\" \/>\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.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CNAME vs ALIAS Records: Key Differences Explained\" \/>\n<meta property=\"og:description\" content=\"CNAME vs ALIAS \u2013 Find out when and how to use each DNS record, including configuration tips and best practices from MilesWeb.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-17T06:02:48+00:00\" \/>\n<meta name=\"author\" content=\"Ujwala\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ujwala\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/\",\"name\":\"CNAME vs ALIAS Records: Key Differences Explained\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2025-07-17T06:02:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\"},\"description\":\"CNAME vs ALIAS \u2013 Find out when and how to use each DNS record, including configuration tips and best practices from MilesWeb.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CNAME vs ALIAS Records: Key Differences Explained\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\",\"name\":\"Ujwala\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"caption\":\"Ujwala\"},\"description\":\"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CNAME vs ALIAS Records: Key Differences Explained","description":"CNAME vs ALIAS \u2013 Find out when and how to use each DNS record, including configuration tips and best practices from MilesWeb.","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.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/","og_locale":"en_GB","og_type":"article","og_title":"CNAME vs ALIAS Records: Key Differences Explained","og_description":"CNAME vs ALIAS \u2013 Find out when and how to use each DNS record, including configuration tips and best practices from MilesWeb.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2025-07-17T06:02:48+00:00","author":"Ujwala","twitter_misc":{"Written by":"Ujwala","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/","name":"CNAME vs ALIAS Records: Key Differences Explained","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2025-07-17T06:02:48+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8"},"description":"CNAME vs ALIAS \u2013 Find out when and how to use each DNS record, including configuration tips and best practices from MilesWeb.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cname-vs-alias-records\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"CNAME vs ALIAS Records: Key Differences Explained"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8","name":"Ujwala","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","caption":"Ujwala"},"description":"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/"}]}},"views":0,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/17010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=17010"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/17010\/revisions"}],"predecessor-version":[{"id":17011,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/17010\/revisions\/17011"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=17010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=17010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=17010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}