GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

CNAME record

A CNAME record (for Canonical NAME) is a type of resource record in the Domain Name System (DNS) that maps one domain name (the alias) to another (the canonical name). This can prove convenient when running multiple services (like an FTP server and a web server, each running on different ports) from a single IP address. One can, for example, use records to point and to the DNS entry for , which in turn has an A record which points to the IP address. Then, if the IP address ever changes, one only has to record the change in one place within the network: in the DNS record for . records must always point to another domain name, never directly to an IP address. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

A CNAME record (for Canonical NAME) is a type of resource record in the Domain Name System (DNS) that maps one domain name (the alias) to another (the canonical name). This can prove convenient when running multiple services (like an FTP server and a web server, each running on different ports) from a single IP address. One can, for example, use records to point and to the DNS entry for , which in turn has an A record which points to the IP address. Then, if the IP address ever changes, one only has to record the change in one place within the network: in the DNS record for . records must always point to another domain name, never directly to an IP address. $ORIGIN example.com. […] bar.example.com. 3600 IN CNAME foo.example.com. foo.example.com. 3600 IN A 192.0.2.23 Consider the DNS zone shown at right: when an record lookup for is carried out, the resolver will see a record and restart the lookup for , eventually returning . bar.example.com. 3600 IN CNAME foo.example.com. This confusion is specifically mentioned in RFC 2181, "Clarifications to the DNS Specification". The left-hand label is an alias for the right-hand side (the RDATA portion), which is (or should be) a canonical name. In other words, consider the record shown at right. This may be read as saying that is an alias for the canonical name . A client will request and the answer will be . records that point to other records should be avoided due to their lack of efficiency, but are not an error. It is possible, then, to create unresolvable loops with records, as in: $ORIGIN example.com. […] foo.example.com. 3600 IN CNAME bar.example.com. bar.example.com. 3600 IN CNAME foo.example.com. RFC 1034 also makes the presence of an record at the zone apex an additional requirement, presenting yet another barrier to placing a record appearing at the zone apex. and records must never point to a alias. So, for example, a zone must not contain constructs such as: $ORIGIN example.com. @ 3600 IN SOA ns1.example.com. hostmaster@example.com ( zone-admin.example.com. […] ) @ 2400 IN MX 0 foo.example.com. foo.example.com. 3600 IN CNAME host.example.com. host.example.com. 3600 IN A 192.0.2.1 Domains that are used in the Simple Mail Transfer Protocol and commands may not have a record. In practice this may work, but can have different behavior with different mail servers, and can have undesired effects. $ORIGIN example.com. […] foo.example.com. 1200 IN DNAME bar.example.com. bar.example.com. 3600 IN A 192.0.2.23 xyzzy.bar.example.com. 3600 IN A 192.0.2.24 .bar.example.com. 3600 IN A 192.0.2.25 For example, if there is a DNS zone as seen at right, an record lookup for will return no data because a is not a , and there is no record defined for the host. However, a lookup for will be mapped and return the record for , which is ; if the record had been a record, this request would have returned name not found. Lastly, a request for would be mapped and return .

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"CNAME record". 1783472914. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1363112694

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·