Web Site

Domain-name-system.org


» Domain Name System » Topics begins with C » CNAME resource record


Page modified: Friday, June 23, 2006 20:29:01

With a CNAME resource record (CNAME for close. canonical name) is defined to an existing DNS name a pseudonym. Left in resource the record (RR) stands the pseudonym and on the right of the original name or in the DNS terminology: the canonical name. To a canonical name as many as desired Aliase can be defined.

Structure

Alias NameTTL indicates, like for a long time this RR in a Cache valid its being allowed Inc. name original name

In the following example is put on to the canonical name org nam an alias:

       org nam 1285 IN A 172.27.100.200 ali nam 1285 IN CNAME org nam 

more complex cases

To a canonical name several Aliase can be put on:

       org nam 1285 IN A 172.27.100.200 ali1-nam 1285 IN CNAME org nam ali2-nam 1285 IN CNAME org nam 

It is also permissible to define an alias on an existing alias to thus concatenate Aliase:

       org nam 1285 IN A 172.27.100.200 ali nam 1285 IN CNAME org nam bli nam 1285 IN CNAME ali nam 

It is also possible to define an alias to a canonical name from another Domain. Example:

       ali nam 1285 IN CNAME neu-nam.example.net. 

Is illegal to define an alias for a further RR-type of same name exists. The name server would not know in this case, how it should behave. In this example a A-RR and a CNAME RR exist for the name ali nam both:

       ali nam 1285 IN A 192.168.1.2 ali nam 1285 IN CNAME org nam 

Alias dissolution

If a name server receives a DNS Request, for which a CNAME RR exists, then dissolves it this. In the highest example the name server recognizes the fact that behind ali nam the canonical name org nam it hides itself and dissolves these, i.e. he determines the associated IP address 172.27.100.200.

With the answer to a DNS Request apart from the IP address also the canonical name will hand over. The resolver can recognize in such a way that its original inquiry had referred to a pseudonym.

Example

Nslookup the following answer would supply:

       C:\ >nslookup ali-nam.example.com name: org-nam.example.com ADDRESS: 172.27.100.200 Aliases: ali-nam.example.com 

It can naturally happen that the name server cannot dissolve a canonical name. In this case it omits the IP address with the answer simply, and hands over only the canonical names. The resolver can try then even to dissolve this name.

Note: A PTR-RR should point never to an alias, but in principle to a canonical name. Most name servers accept however also PTR RRs on Aliase.

Correct example (org nam is a canonical name):

       200.100.23.127.in addr.arpa. IN PTR org-nam.example.com. 

Inkorrektes example (ali nam is an alias):

       200.100.23.127.in addr.arpa. IN PTR ali-nam.example.com. 

Articles in category "CNAME resource record"

We found here 2 articles.

C

» CNAME resource record
» Cybersquatting

Related Websites

We found here 3 related websites.

  • Add a CNAME resource record to a zone
    Specifies the name of the zone where this CNAME resource record will be added. ... CNAME. Required. Specifies the resource record type of the record that ...

  • Add an alias (CNAME) resource record to a zone
    Specifies the name of the zone where this CNAME resource record will be added. ... CNAME. Required. Specifies the resource record type of the record you are ...

  • DNS Resource Records
    DNS resource record RR types. ... SINK [Eastlake] OPT 41 OPT [RFC2671] APL 42 APL [RFC3123] SSHFP 44 SSH Key Fingerprint [RFC-ietf-secsh-dns-05.txt] RRSIG ...

Page cached: Wednesday, July 5, 2006 14:15:59
Valid XHTML 1.0!  Valid CSS!

Page copy protected against web site content infringement by Copyscape