{"id":467,"date":"2024-11-05T06:12:05","date_gmt":"2024-11-05T06:12:05","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/11\/05\/10085192-cname-vs-alias-records-at-hostinger\/"},"modified":"2026-10-29T14:40:39","modified_gmt":"2026-10-29T14:40:39","slug":"10085192-cname-vs-alias-records-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10085192-cname-vs-alias-records-at-hostinger\/","title":{"rendered":"CNAME vs ALIAS records at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">CNAME and ALIAS are two different types of DNS records with similar purposes. Both records allow you to point one domain to another, directing traffic to the target domain\u2019s IP address.<\/p>\n<h2 id=\"h-the-difference-between-cname-and-alias\">The difference between CNAME and ALIAS<\/h2>\n<p class=\"no-margin\">The main difference is the following:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\">A <a data-click-id=\"hgr-post-content-link-cname-record\" href=\"\/support\/4738777-how-to-manage-cname-records-at-hostinger\/\"><b>CNAME record <\/b><\/a>can be used to map a domain (e.g., <b><code>www<\/code><\/b><code>.example.com<\/code>) to another domain (e.g., <code>example.net<\/code>). It <b>can\u2019t be used at the root domain level<\/b> (<code>example.com<\/code> or <code>@<\/code>) due to DNS restrictions.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">An <a data-click-id=\"hgr-post-content-link-alias-record\" href=\"\/support\/10067986-how-to-manage-alias-records-at-hostinger\/\"><b>ALIAS record<\/b><\/a> works similarly to a CNAME but <b>can be used at the root domain level<\/b> (<code>example.com<\/code> or <code>@<\/code>), redirecting traffic to another domain without those CNAME restrictions.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"h-add-an-alias-record\">Add an ALIAS record<\/h2>\n<p class=\"no-margin\">The format for adding the ALIAS record on Hostinger dashboard is as follows:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\">DNS record type: <b>CNAME<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Name: <b>domain.tld<\/b> or <b>@ <\/b>(domain.tld = @)<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Target: the address to direct the traffic to (it can be a sub\/domain name, but not a URL)<\/p>\n<\/li>\n<\/ul>\n<p class=\"no-margin\">For example, adding a CNAME record of Hostinger AI Builder manual mode on Hostinger dashboard looks like this:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\">DNS record type: <b>CNAME<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Name: <b>@ <\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Target: connect.hostinger.com<\/p>\n<\/li>\n<\/ul>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/11\/804d5b84-b3d0-4773-98b9-efeb90b3fa2e.jpg\/public\" alt=\"Hostinger DNS records form with CNAME selected and target connect.hostinger.com entered\" data-media-id=\"2265\" \/><\/div>\n<p class=\"no-margin\">Once the CNAME record is saved, it will appear as ALIAS (because a CNAME can\u2019t be used with root (@) domains):<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/11\/9922c90a-bcc8-4ddc-b403-5b8130e4c83c.jpg\/public\" alt=\"Hostinger DNS record list with ALIAS @ row highlighted\" data-media-id=\"2267\" \/><\/div>\n<h2 id=\"h-verify-the-alias-record\">Verify the ALIAS record<\/h2>\n<p class=\"no-margin\">ALIAS records resolve to the <b>IP address<\/b> of the target domain. In the example above, the ALIAS record would resolve to the IP address of <code>connect.hostinger.com<\/code>.<\/p>\n<p class=\"no-margin\">You can use online tools such as <a data-click-id=\"hgr-post-content-link-dns-checker\" class=\"intercom-content-link\" href=\"http:\/\/dnschecker.org\/\" target=\"_blank\" rel=\"noopener\">DNS Checker<\/a> to verify it by checking the A record for your main domain. You need to check the A record because it resolves as an IP address:<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/11\/78d5b01b-bcfb-43b4-95f2-d96719062ac9.jpg\/public\" alt=\"DNS checker results showing A record lookups for domain.tld across multiple locations\" data-media-id=\"2268\" \/><\/div>\n<p class=\"no-margin\">The IP address that resolves when checking the main domain\u2019s A record will also match the IP address of the target (connect.hostinger.com):<\/p>\n<div class=\"intercom-container\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/11\/07dfd2f3-fe9d-4fea-bb65-69bb4ddb54eb.jpg\/public\" alt=\"DNSChecker DNS check for connect.hostinger.com A record with results listed across locations\" data-media-id=\"2269\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn about the difference between CNAME and ALIAS DNS records<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[182],"tags":[],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-general-information-dns"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10085192-cname-vs-alias-records-at-hostinger","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":6,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":22469,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/467\/revisions\/22469"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}