Saturday, May 25, 2024
HomeUNIX softwareBIND and DNSDNS/BIND resource record: CNAME, canonical names, host aliases

DNS/BIND resource record: CNAME, canonical names, host aliases

A single host may have multiple personalities: web server (www), mail server (mail, mx), dns server (ns), ftp server (ftp). Rather than assign each of these names an address (A) record pointing to the same IP address, all of which would need to be changed if the IP address changed, one name can be associated with an address record and the remaining names can be aliases for that name. The CNAME record simplifies DNS management, and who doesn’t want that?

Given the following address record: IN A

To add host aliases ftp and www pointing to chef, use the following resource records: IN CNAME IN CNAME

Within the same domain name which is the same domain associated with the zone file, these can be shortened to:

chef IN A
ftp IN CNAME chef
www IN CNAME chef

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.


Please enter your comment!
Please enter your name here

Most Popular


Recent Comments

error: Content is protected !!