IT Learning | Server | CNAME

Everything might be not exactly correct in this article but it’s very useful for beginners to understand IT terms. If you want to learn IT but you don’t have any experience to work in the IT industry, I wish it helps you to understand IT and you like to study IT more.

Let’s start our 3 minutes lesson for beginners!!

What is CNAME?

  • CNAME is also called Alias.
  • CNAME Record is a nickname for Domain names.
  • CNAME is the one of information used in a zone file.

1. CNAME is a nickname in DNS world

A CNAME record is a content in the job handbook for the Authoritative name server. If you don’t know an Authoritative name server, please check the following article.

IT Learning | Server | Authoritative name server | Japan Teams

CNAME shows a nickname for Domain names.

2. There are two DNS roles

There are two DNS servers. One is an Authoritative name server. Another is called Caching DNS Serve. Laptops usually ask Mr Caching DNS server the first question. If Mr Caching DNS server can’t answer the question, he will ask Ms Authoritative name server.

Mr Caching DNS needs to learn a lot of information from other DNS.

And Ms Authoritative name server checks her job handbook called “Zone file” when she received the question from Mr Caching DNS server. If you don’t know the Zone file, please read the following article.

IT Learning | Server | Zone file | Japan Teams

Ms Authoritative DNS server checks the Zone file.

There are much information in her zone file. And one of that information is the “CNAME record” which shows a nickname for domain names. For example, if there is a DNS zone as follows:

How to write CNAME
The style of CNAME record is
“NAME(Domain Name) IN CNAME ALIAS NAME(NICKNAME)”.

When there is “CNAME” after “IN” in the zone file, that’s a CNAME record. “big.meat.com” is a nickname for “yummy.meat.com”. So the IP address for the two of them is the same because they have different names but they are the same. The following explanation is more technical. I’ll explain A record soon in another article.

When an A record lookup for big.meat.com is carried out, the resolver will see a CNAME record and restart the checking at yummy.meat.com and will then return 192.168.0.1.

If you need more detailed information about “CNAME record”, I recommend the following articles.

What’s a CNAME record? – DNSimple Help

CNAME record – Wikipedia

DNS CNAME records are specified in RFC 1034 and clarified in Section 10 of RFC 2181. CNAME records are handled specially in the domain name system, and have several restrictions on their use. When a DNS resolver encounters a CNAME record while looking for a regular resource record, it will restart the query using the canonical name instead of the original name. (If the resolver is specifically told to look for CNAME records, the canonical name (right-hand side) is returned, rather than restarting the query.) The canonical name that a CNAME record points to can be anywhere in the DNS, whether local or on a remote server in a different DNS zone.

CNAME record – Wikipedia

3. Related information

Related articles:

IT Learning | Server | Authoritative name server | Japan Teams

IT Learning | Server | Zone file | Japan Teams

IT Learning | Network | DNS | Japan Teams

IT Learning | Security | Malware | Japan Teams

fin


Essential Classnotes Intro to DNS & Active Directory Study Notes, Review Questions and Classroom Discussion Topics 2013


Follow me!

  • X

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA