An often-used analogy to explain the Domain Name
System is that it serves as the phone book for the Internet by
translating human-friendly computer hostnames into IP addresses. For
example, the domain name www.example.com translates to the addresses
192.0.43.10 (IPv4) and 2001:500:88:200::10 (IPv6). Unlike a phone book, the DNS
can be quickly updated, allowing a service's location on the network to change
without affecting the end users, who continue to use the same host name. Users
take advantage of this when they use meaningful Uniform Resource Locators (URLs)
and e-mail addresses without having to know how the computer actually
locates the services.
The Domain Name System distributes the
responsibility of assigning domain names and mapping those names to IPaddresses by designating authoritative name servers for each domain.
Authoritative name servers are assigned to be responsible for their particular
domains, and in turn can assign other authoritative name servers for their
sub-domains. This mechanism has made the DNS distributed and fault tolerant and
has helped avoid the need for a single central register to be continually consulted
and updated. Additionally, the responsibility for maintaining and updating the
master record for the domains is spread among many domain name registrars,
who compete for the end-user's (the domain-owner's) business. Domains can be
moved from registrar to registrar at any time.
The Domain Name System also specifies the technical
functionality of this database service. It defines the DNS protocol, a detailed
specification of the data structures and data communication exchanges used in
DNS, as part of the Internet Protocol Suite.
The Internet maintains two principal name spaces,
the domain name hierarchy and the Internet Protocol (IP) address
spaces. The Domain Name System maintains the domain name hierarchy and
provides translation services between it and the address spaces. Internet name
servers and a communication protocol implement the Domain Name
System. A DNS name server is a server that stores the DNS records for a
domain name, such as address (A or AAAA) records, name server (NS) records, and
mail exchanger (MX) records (see also list of DNS record types); a DNS
name server responds with answers to queries against its database.
Domain name syntax
The definitive descriptions of the rules for
forming domain names appear in RFC 1035, RFC 1123, and RFC 2181.
A domain name consists of one or more parts, technically called labels,
that are conventionally concatenated, and delimited by dots, such asexample.com.
The right-most label conveys the top-level
domain; for example, the domain name www.example.com belongs to the
top-level domain com. The hierarchy of domains descends from right to
left; each label to the left specifies a subdivision, or subdomain of the
domain to the right. For example: the label example specifies a
subdomain of the comdomain, and www is a sub domain of example.com.
This tree of subdivisions may have up to 127 levels.
Each label may contain up to 63 characters. The
full domain name may not exceed the length of 253 characters in its textual
representation. In the internal binary representation of the DNS the
maximum length requires 255 octets of storage, since it also stores the length
of the name. In practice, some domain registries may have
shorter limits.
DNS names may technically consist of any character
representable in an octet. However, the allowed formulation of domain names in
the DNS root zone, and most other sub domains, uses a preferred format and
character set. The characters allowed in a label are a subset of the ASCII character
set, and includes the characters a through z, A through Z,
digits 0 through 9, and the hyphen. This rule is known as the LDH
rule (letters, digits, hyphen). Domain names are interpreted in
case-independent manner. Labels may not start or end with a hyphen. There
is an additional rule that essentially requires that top-level domain names not
be all-numeric.
A hostname is a domain name that has at
least one IP address associated. For example, the domain names www.example.com and example.com are
also hostnames, whereas the com domain is not.
No comments:
Post a Comment