{"id":3254,"date":"2024-07-30T08:52:21","date_gmt":"2024-07-30T06:52:21","guid":{"rendered":"https:\/\/mijn.host\/blog\/what-is-a-cname\/"},"modified":"2026-07-23T16:28:02","modified_gmt":"2026-07-23T14:28:02","slug":"what-is-a-cname","status":"publish","type":"post","link":"https:\/\/my.host\/blog\/what-is-a-cname\/","title":{"rendered":"What is a CNAME?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A CNAME, also known as a \u201cCanonical Name record\u201d is a type of <a href=\"https:\/\/my.host\/blog\/wat-is-dns\/\">DNS <\/a>(Domain Name System) record used to assign a name to a domain name. Within a so-called \u201cDNS zone\u201d of a specific IP address, there are multiple names present that contain A records.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A CNAME record points a specific domain name to another domain name. An A record, on the other hand, points to an IP address. The A record and CNAME record are connected. This connection lies in the fact that the hostname to which the CNAME record points is translated to the correct IP address via an A record.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CNAMEs are often used to point different subdomains to the same main site without having to manage the IP addresses individually.<\/p>\n\n\n\n<h2 id=\"how-is-the-cname-record-used\" class=\"wp-block-heading\">How is the CNAME record used?<\/h2>\n\n\n\n<h3 id=\"www-to-main-domain\" class=\"wp-block-heading\"><strong>www to main domain:<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Suppose your main domain is <strong>your-domain.nl<\/strong>, and you want <strong>www.your-domain.nl<\/strong> to also point to this site. You can set a CNAME record so that <strong>www.your-domain.nl<\/strong> points to <strong>your-domain.nl<\/strong>.<\/li>\n\n\n\n<li>Subdomains to main domain:\n<ul class=\"wp-block-list\">\n<li>If you have subdomains like blog.your-domain.nl or shop.your-domain.nl, you can use a CNAME record to point those subdomains to your main domain.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 id=\"example-of-a-cname-record\" class=\"wp-block-heading\"><strong>Example of a CNAME record:<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-base-background-color has-background has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">Name<\/th><th class=\"has-text-align-left\" data-align=\"left\">Type<\/th><th class=\"has-text-align-left\" data-align=\"left\">Value<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-left\" data-align=\"left\">www<\/td><td class=\"has-text-align-left\" data-align=\"left\">CNAME&nbsp; &nbsp; &nbsp; &nbsp; <\/td><td class=\"has-text-align-left\" data-align=\"left\">your-domain.nl.<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">blog<\/td><td class=\"has-text-align-left\" data-align=\"left\">CNAME&nbsp; &nbsp; &nbsp; &nbsp; <\/td><td class=\"has-text-align-left\" data-align=\"left\">your-domain.nl.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><br>Limitations of CNAME records<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CNAME records are, as mentioned earlier, specifically aimed at certain tasks. Yet, there are several limitations to the CNAME record. For example, it cannot be used on the root domain. This is because it conflicts with other DNS records like MX records for email.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Complexity can also be an issue. Excessive use of CNAME records can make certain DNS configurations more complicated, making them harder to manage. This negates the essence of CNAME records, as they are primarily about simple, centralized management.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In short, a CNAME record is a valuable and flexible way to manage and redirect domain names, but it should be used carefully to prevent potential issues.<\/p>\n\n\n\n<div class=\"wp-block-group has-base-background-color has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-f4463924 wp-block-group-is-layout-constrained\" style=\"border-radius:8px;margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40);padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\">\n<div class=\"wp-block-columns is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-461897f4 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:15%\">\n<svg style=\"max-width:50px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0.04 0.04 16.24 16.12\">\n    <g clip-path=\"url(#clip0_474_4172)\">\n        <path d=\"M9.52521 16.151C13.2539 16.151 16.2766 13.1283 16.2766 9.39959C16.2766 5.6709 13.2539 2.64819 9.52521 2.64819C5.79651 2.64819 2.7738 5.6709 2.7738 9.39959C2.7738 13.1283 5.79651 16.151 9.52521 16.151Z\" fill=\"#CCEDFD\"\/>\n        <path d=\"M7.53644 14.2878C11.2651 14.2878 14.2878 11.2651 14.2878 7.53644C14.2878 3.80774 11.2651 0.785034 7.53644 0.785034C3.80774 0.785034 0.785034 3.80774 0.785034 7.53644C0.785034 11.2651 3.80774 14.2878 7.53644 14.2878Z\" stroke=\"#003F5D\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"\/>\n        <path d=\"M7.5365 14.2878C8.93549 14.2878 10.0696 11.2651 10.0696 7.53644C10.0696 3.80774 8.93549 0.785034 7.5365 0.785034C6.13752 0.785034 5.00342 3.80774 5.00342 7.53644C5.00342 11.2651 6.13752 14.2878 7.5365 14.2878Z\" stroke=\"#003F5D\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"\/>\n        <path d=\"M14.2983 7.5365H0.785034\" stroke=\"#003F5D\" stroke-width=\"1.5\" stroke-miterlimit=\"10\"\/>\n    <\/g>\n<\/svg>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-secondary-color has-text-color wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0\"><strong>Domeinnaam bestellen?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0\">Een goede naam zorgt voor een goede website.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mijn.host\/domeinnaam\/?utm_source=mijn.host&amp;utm_medium=blog&amp;utm_content=cta\" target=\"_blank\" rel=\"noreferrer noopener\">Bestel nu<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A CNAME, also known as a &#8216;Canonical Name record,&#8217; is a type of DNS (Domain Name System) record used to assign a label to a domain name. Within the so-called &#8216;DNS zone&#8217; of a certain IP address, there are multiple labels present containing A-records. A CNAME record directs a specific domain name to another [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1370,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"hide_cta_migrate_site":false,"hide_toc_block":false,"footnotes":""},"categories":[228],"tags":[272,276],"class_list":["post-3254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-tricks","tag-dns","tag-domain-name"],"lang":"en","translations":{"en":3254,"nl":1369},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/posts\/3254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/comments?post=3254"}],"version-history":[{"count":1,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/posts\/3254\/revisions"}],"predecessor-version":[{"id":3368,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/posts\/3254\/revisions\/3368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/media\/1370"}],"wp:attachment":[{"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/media?parent=3254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/categories?post=3254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/my.host\/blog\/wp-json\/wp\/v2\/tags?post=3254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}