{"id":474,"date":"2024-08-30T05:01:05","date_gmt":"2024-08-30T05:01:05","guid":{"rendered":"https:\/\/www.trichywebhosting.com\/tutorials\/?p=474"},"modified":"2024-08-30T05:10:59","modified_gmt":"2024-08-30T05:10:59","slug":"what-is-cname-record","status":"publish","type":"post","link":"https:\/\/www.trichywebhosting.com\/tutorials\/what-is-cname-record\/","title":{"rendered":"What is CName record and how does it work"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"what-is-c-name-record\">What is CName record <\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.trichywebhosting.com\/tutorials\/wp-content\/uploads\/2024\/08\/CNAME-Record-Guida-1024x576-1.webp\" alt=\"What is CName record \" class=\"wp-image-480\" style=\"width:597px;height:auto\" srcset=\"https:\/\/www.trichywebhosting.com\/tutorials\/wp-content\/uploads\/2024\/08\/CNAME-Record-Guida-1024x576-1.webp 1024w, https:\/\/www.trichywebhosting.com\/tutorials\/wp-content\/uploads\/2024\/08\/CNAME-Record-Guida-1024x576-1-300x169.webp 300w, https:\/\/www.trichywebhosting.com\/tutorials\/wp-content\/uploads\/2024\/08\/CNAME-Record-Guida-1024x576-1-768x432.webp 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">A <strong>CNAME record<\/strong> is like a forwarding address for websites. Imagine you have a website at <code>example.com<\/code>, and you also want people to reach the same website by typing <code>www.example.com<\/code>. Instead of creating a separate setup for <code>www.example.com<\/code>, you use a CNAME record to tell the internet, &#8220;If someone asks for <code>www.example.com<\/code>, just send them to <code>example.com<\/code>.&#8221;<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#what-is-c-name-record\">What is CName record<\/a><\/li><li><a href=\"#how-it-works\">How It Works<\/a><\/li><li><a href=\"#simple-example\">Simple Example<\/a><\/li><li><a href=\"#key-takeaways\">Key Takeaways<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-it-works\">How It Works<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Creating the Shortcut<\/strong>:\n<ul class=\"wp-block-list\">\n<li>You set up a CNAME record to create an alias or shortcut. In this case, <code>www.example.com<\/code> becomes an alias for <code>example.com<\/code>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>When Someone Visits the Alias<\/strong>:\n<ul class=\"wp-block-list\">\n<li>When someone types <code>www.example.com<\/code> into their browser, the <a href=\"https:\/\/www.trichywebhosting.com\/\" data-type=\"link\" data-id=\"https:\/\/www.trichywebhosting.com\/\">CNAME<\/a> record automatically redirects them to <code>example.com<\/code>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Resolving the Final Destination<\/strong>:\n<ul class=\"wp-block-list\">\n<li>The internet then looks up <code>example.com<\/code> to find the actual location (IP address) of your <a href=\"https:\/\/www.squarebrothers.com\/reseller-hosting-india\/\" rel=\"noopener\">website<\/a> and takes the visitor there.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"simple-example\">Simple Example<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you own <code>example.com<\/code> and want people to also find your site using <code>shop.example.com<\/code>, you can create a CNAME record for <code>shop.example.com<\/code> that points to <code>example.com<\/code>. Now, anyone who types <code>shop.example.com<\/code> will end up at <code>example.com<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"key-takeaways\">Key Takeaways<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Alias<\/strong>: A CNAME record is like a nickname for your domain.<\/li>\n\n\n\n<li><strong>Redirection<\/strong>: It automatically redirects one domain name to another.<\/li>\n\n\n\n<li><strong>Efficiency<\/strong>: It\u2019s useful for managing multiple domains that lead to the same place.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This makes it easier to manage your website and ensures that all the different ways people might type your website address lead them to the right place.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is CName record A CNAME record is like a forwarding address for websites. Imagine you have a website at example.com, and you also want people to reach the same website by typing www.example.com. Instead of creating a separate setup for www.example.com, you use a CNAME record to tell the internet, &#8220;If someone asks for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[42],"tags":[],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-how-cname-records-work-2"],"_links":{"self":[{"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/comments?post=474"}],"version-history":[{"count":7,"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":483,"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/posts\/474\/revisions\/483"}],"wp:attachment":[{"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/media?parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/categories?post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trichywebhosting.com\/tutorials\/wp-json\/wp\/v2\/tags?post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}