DistributedNetworks DistributedNetworks


Domain Name Service  «Prev  Next»
Lesson 2 DNS namespace
Objective Describe the Organization of the DNS Namespace.

Organization of the DNS Namespace

DNS is an example of a distributed, hierarchical database. Thus, the information in the DNS database is spread out among many different machines across the Internet. The purpose of this database is to manage the relationship between the DNS namespace (the collection of possible names for machines) and IP addresses. The namespace for DNS is organized into a tree, or hierarchical structure, of domains[1] and subdomains.[2]

The namespace for DNS is organized into a tree consisting of 1)Root Domain, 2)Top Level, 3)Second Level, 4) Subdomain and 5) Machines

Domain Name Hierarchy

Domain names are the most common method used for accessing websites or any other host on the Internet. Each domain name is made up of a number of elements (called "labels") separated by a dot, (for example: www.ooportal.com).
The domain name system works in a hierarchical model, with the right most elements classed as the "Top Level Domain" or TLD, followed by the second element, which is classed as the "Second Level Domain". This structure continues from right to left with each element being classed as a subdomain of the element to its right.

In addition to the structure above, any element may be classed as a hostname when it is associated with one or more IP addresses, and provided it meets the following basic rules as stated in the DoD Host Table Specification as well as RFC1123:
  1. A hostname must be a text string consisting of only the letters A through Z (upper or lower case), digits 0 through 9, the minus sign (-), and the period (.)
  2. A hostname cannot contain any spaces
  3. The first character must be an alphabetic character or a digit
  4. The last character cannot be a minus sign or a period
  5. The recommended length for a hostname is up to 24 characters

A DNS entity's name is specified by giving its position in this tree of domains and subdomains, with each subdomain name separated from the next by a period (.). The root domain, which is the root of the entire tree of domains, is named “.” (dot). For example, a machine named www.acmecorp.com belongs to the domain .acmecorp.com, which in turn is a subdomain of the .com domain, which in turn is a subdomain of the root domain (represented by a period).

Fully Qualified Domain Names

The (FQDN) Fully Qualified Domain Name of a DNS entity is the full path from the root of the DNS tree to that entity. Because an FQDN always specifies the full path to the entity, it must always end with a period. For example, the FQDN for the machine www.acmecorp.com would be
www.acmecorp.com.

This terminating period plays the same role in the DNS naming scheme that the leading slash (/) marker plays when specifying the absolute path name of a file in the UNIX filesystem. The difference is that a path name moves from general to specific as we read from left to right, and an FQDN moves from specific to general as we read from left to right. Thus the marker for the root of the tree occurs at the left in a path name, and at the right in an FQDN.

[1] domain: A domain is a distinct piece of the DNS namespace that is managed by a single administrative entity. A domain consists of a root domain, a top-level domain, a second-level domain, and a series of subdomains.
[2] Subdomain: A subdomain is any domain under the authority of another domain. For example, a top-level domain is a subdomain of the root domain, a second-level domain is a subdomain of a top-level domain, and so on.