CNAME Record - DNAME Record

A DNAME record or Delegation Name record is defined by RFC 2672. A DNAME record creates an alias for one or more subdomains of a domain. In contrast, the CNAME record creates an alias only of a single name (and not its subdomains). Like the CNAME record, the DNS lookup will continue by retrying the lookup with the new name. If a DNS resolver sends a query without EDNS, or with EDNS version 0, then a name server synthesizes a CNAME record to simulate the semantics of the DNAME record.

For example, if there is a DNS zone as follows:

foo.example.com. DNAME bar.example.com. bar.example.com. A 192.0.2.23 xyzzy.bar.example.com. A 192.0.2.24 *.bar.example.com. A 192.0.2.25

An A record lookup for foo.example.com will fail because a DNAME is not a CNAME.

However, a look up for xyzzy.foo.example.com will be DNAME mapped and return the A record for xyzzy.bar.example.com which is 192.0.2.24; if the DNAME record had been a CNAME record, this request would have failed.

Lastly, a request for bar.foo.example.com would be DNAME mapped and return 192.0.2.25.

Read more about this topic:  CNAME Record

Famous quotes containing the word record:

    We have what I would call educational genocide. I’m concerned about learning totally, but I’m immersed in the disastrous record of how many black kids are going into science. They are very few and far between. I’ve said that when I see more black students in the laboratories than I see on the football field, I’ll be happy.
    Jewel Plummer Cobb (b. 1924)