encyclopegia.org

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).[src] 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.[src] 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.[src] 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 .[src] records must always point to another domain name, never directly to an IP address.[src]

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).[src] 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.[src] 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.[src] 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 .[src] records must always point to another domain name, never directly to an IP address.[src] $ORIGIN example.com.[src] […] bar.example.com.[src] 3600 IN CNAME foo.example.com.[src] foo.example.com.[src] 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 .[src] bar.example.com.[src] 3600 IN CNAME foo.example.com.[src] This confusion is specifically mentioned in RFC 2181, "Clarifications to the DNS Specification".[src] The left-hand label is an alias for the right-hand side (the RDATA portion), which is (or should be) a canonical name.[src] In other words, consider the record shown at right.[src] This may be read as saying that is an alias for the canonical name .[src] A client will request and the answer will be .[src] records that point to other records should be avoided due to their lack of efficiency, but are not an error.[src] It is possible, then, to create unresolvable loops with records, as in: $ORIGIN example.com.[src] […] foo.example.com.[src] 3600 IN CNAME bar.example.com.[src] bar.example.com.[src] 3600 IN CNAME foo.example.com.[src] 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.[src] and records must never point to a alias.[src] So, for example, a zone must not contain constructs such as: $ORIGIN example.com.[src] @ 3600 IN SOA ns1.example.com.[src] hostmaster@example.com ( zone-admin.example.com.[src] […] ) @ 2400 IN MX 0 foo.example.com.[src] foo.example.com.[src] 3600 IN CNAME host.example.com.[src] host.example.com.[src] 3600 IN A 192.0.2.1 Domains that are used in the Simple Mail Transfer Protocol and commands may not have a record.[src] In practice this may work, but can have different behavior with different mail servers, and can have undesired effects.[src] $ORIGIN example.com.[src] […] foo.example.com.[src] 1200 IN DNAME bar.example.com.[src] bar.example.com.[src] 3600 IN A 192.0.2.23 xyzzy.bar.example.com.[src] 3600 IN A 192.0.2.24 .bar.example.com.[src] 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.[src] 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.[src] Lastly, a request for would be mapped and return .[src]

48 sentences · 48 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"CNAME record." encyclopegia.org, 2026, https://encyclopegia.org/wiki/cname-record. Accessed 29 November 2026.

Chicago

"CNAME record." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/cname-record.

APA

encyclopegia.org. (2026). CNAME record. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/cname-record

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

record label

stub · references available

women's shot put world record progression

stub · references available

Men's javelin world record progression

stub · references available

Japan Record Awards

stub · references available

record chart

stub · references available

Off-the-Record Messaging

stub · references available

Record

stub · references available

Record Collection

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1363112694 · 0.5 · snapshot enwiki-001363112694

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.