Skip to content

Marina Mele's site

Reflections on family, values, and personal growth

Menu
  • Home
  • About
Menu

Understand the DNS, the DNS zone and the Canonical Name or CNAME

Posted on June 26, 2014September 26, 2014 by Marina Mele

Did you come across the terms CNAME or DNS zone when managing your web domains? Do you know what do they mean?

In this post you’ll learn about these terms and why they are used. This way, you will be more confident when performing domain operations or maintenances.

Domain Name System or DNS

The Domain Name System (DNS) is like the phone book of the Internet: basically, it associates domain names with the numerical IP address, which are needed to locate the different computer services and devices.

You can use tools like whois to find the IP address of a web page. For example, the domain example.com translates into the IP 93.184.216.119. This means that when a user types example.com in his browser, the DNS resolver indicates the browser to go to that IP address to find the contents of that domain.

The current Wikipedia definition is that the DNS it’s a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network (learn more).

DNS zone

The Domain Name System is hierarchically separated into pieces in order to be managed more easily. Each of these pieces is called a DNS zone, and represents a boundary of administrative responsibilities and authority, and are managed by certain entities.

These DNS zones may consist of a single domain, or of many domains and subdomains. In some cases, even a single subdomain constitutes a DNS zone. This way, all the DNS settings or records of the domains and subdomains are ordered in the DNS zone file, inside this zone.

A-record

An A-record is an entry in your DNS zone file that maps each domain (or subdomain) name to the corresponding IP address. This way, two subdomains of the same domain can point to different IP addresses.

For example, let’s analyze a possible line of your DNS zone file:

example.com A 128.0.2.40

This record is of type A and causes that example.com resolves into the IP address 128.0.4.80.

Canonical Name or CNAME record

The canonical Name or CNAME is a type of resource record in the DNS. It’s an entry in your DNS zone file that specifies that a domain name uses the IP address of another domain (named canonical domain).

If you have two different subdomains, like blog.example.com and www.example.com, you can use CNAMEs to point to the A record example.com, which in turn points to the IP address.

dns table

In this table, the Name is an alias for the Value, and the Value is the Canonical Name (or real name). For example, www.example.com is an alias for the CNAME example.com.

This way, if you have to change the IP-address you only have to change it in one place, i.e. in the A record.

A few remarks about the CNAME:

  • It’s also possible that a CNAME record points to another CNAME record (although it’s not recommended and may cause loops).
  • CNAME records must always point to another domain name, never an IP-address.
  • The canonical name that a CNAME records points to can be anywhere in the DNS (local or in a different DNS zone).
  • When a DNS resolver finds a CNAME record while looking for a regular resource record, it will restart the query using Canonical name instead.

That’s it!! I hope you have a better understanding about the CNAME and the DNS now! 🙂

Don’t forget to share and +1, please! 🙂

Marina Melé
Marina Mele

Marina Mele has experience in artificial intelligence implementation and has led tech teams for over a decade. On her personal blog (marinamele.com), she writes about personal growth, family values, AI, and other topics she’s passionate about. Marina also publishes a weekly AI newsletter featuring the latest advancements and innovations in the field (marinamele.substack.com)

Leave a Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Personal Growth and Development
  • Artificial Intelligence
  • Mindful Parenting and Family Life
  • Productivity and Time Management
  • Mindfulness and Wellness
  • Values and Life Lessons
  • Posts en català
  • Other things to learn

Recent Posts

  • Understanding Frustration in Children
  • What is ChatGPT and how it compares to Bard and Claude
  • BlueSky Social – A Sneak Peek at the Future of Social Media
  • The Incredible Journey of AI Image Generation
  • AI and Fundamental Rights: How the AI Act Aims to Protect Individuals

RSS

  • Entries RSS
Follow @marina_mele
  • Cookie Policy
  • Privacy Policy
©2025 Marina Mele's site | Built using WordPress and Responsive Blogily theme by Superb
This website uses cookies to improve your experience. If you keep navigating through this website, we'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT