DNS
DNS
By vikas jagtap
1
Domain Network Services (DNS)
4
Fig. – The Domain Name System (Tree structure)
The DNS name space function in the same way :
administrators are assigned domain names and are then
responsible for specifying host names to systems within
that domain.
The result is that every computer on the Internet is
uniquely identifiable by a DNS, name that consists of
host name plus the names of all its parent domains,
stretching up to the root of the DNS tree, separated by
periods.
Each of the names between the periods can be up to 63
characters long, with a total length of 255 characters for
a complete DNS name.
Domain and host names are not case sensitive, and can
take any value except the null value. 5
The naming scheme used in the Internet is called the Domain
Name System (DNS).
Each computer name consists of a sequence of alpha-
numeric segments separated by periods. For example, a
computer in the computer science department at Pune
University has the domain name : -
comp1.cs.pune.edu
The left-most segment if a name(comp1) is the name of an
individual computer. Other segment in a domain name
identify the group that owns the name. For example, the
segment pune gives the name of the university. 6
The domain name system does not specify an exact
number of segments in each name nor does it specify
what those segments represent.
The domain name system does specify values for the
most significant segment, which is called a top-level
domain (TLD).
Following table lists the top-level domains of the DNS :
Domain Name Assigned to
11
Domain Name begins with WWW –
Although a domain name denotes a computer, many
organizations assign domain names that reflect the service
the computer provides.
For example – If Foobar corporation provides the FTP
service, it can choose a computer to run the service, and
assign the domain name:
ftp.foobar.com
Similarly a compute that runs a Web server, can be
assigned the name:
www.foobar.com
The computer’s domain name does not need to contain 12
www.
DNS servers are basically database servers that store
information about the hosts and subdomain for which they
are responsible in resource records (RPs). When you run
your own DNS server, you create a resource record for each
host name that you want to be accessible by the rest of the
network.
There are several different types of resource records used by
DNS servers, the most important of which are as follows:
PTR –
Provides an address-to-name mapping. This is the
functional opposite of an A record, used for reverse
lookups only. 14
Dynamic Host Configuration Protocol (DHCP) is
designed to handle automated address assignment.
DHCP allows a computer to obtain an IP address quickly and
dynamically. To use DHCP’s dynamic address allocation
mechanism, a manager must configure a DHCP server by
supplying a set of IP addresses.]
Whenever a new computer connects to the network, the new
computer contacts the server & request an address. The server
chooses one of the address the manager specified, and
allocates that address to the computer.
15
DHCP allows 3 types of address assignment –
1) Manual Configuration –
In this configuration a manager can configure a
specific address for a specific computer.
2) Automatic Configuration –
In this configuration a manager allows a DHCP server
to assign a permanent address when a computer first
attaches to the network.
3) Dynamic Configuration –
In this configuration a server “loans” an address to a
computer for a limited time.
16
DHCP uses the identify of the client to decide how to
proceed. When a client contacts a DHCP server, the
client sends an identifier, usually the client’s hardware
address.
The server uses the client’s identifier and the network to
which the client has connected to determine how to
assign the client & IP address.
Thus, a manager has complete control over how address
are assigned.
17
When you type a URL containing a DNS name (such as
www.microsoft.com ) into the browser’s address field and
press the ENTER key, if you look quickly at the status bar
in the lower-left corner, you’ll see a message that says
“Finding Site: www.microsoft.com.” In a few seconds,
you’ll then see a message that says “Connecting to,”
followed by an IP address. It is during this interval between
the Finding Site message and the Connecting to message
that the DNS name resolution process occurs.
From the client’s perspective, the procedure that occurs
during these few seconds consists of the application sending
a query message to its destination DNS server that contains 18
the name
If you connect to the Internet, you use a DNS server each time
you enter a server name or URL into a Web browser or other
application to resolve the name of the system you specified
into an IP address.
When a standalone computer connects to an Internet service
provider (ISP), the ISP’s server usually supplies the addresses
of the DNS servers that the system will use.
TCP/IP communications are based solely on IP addresses.
Before one system can communicate with another, it must
know its IP address. Often, the user supplies a friendly name
(such as DNS name) for a desired server to a client
application. The application must then resolve that server
name into an IP address before it can transmit a message to it.
If the name resolution mechanism fails to function, no
communication with the server is possible. 19