DNS (Domain Name System)
DNS (Domain Name System)
SYSTEM)
• Human beings can be identified by aadhar, driving license number… but easier to identify by their
name
• All hosts connected to network identified by IP address, difficult to remember hence hostname.
Example: hkbk wifi
• DNS converts hostname to IP address
The services provided by DNS:
The DNS is
-A distributed database implemented in a
hierarchy of DNS servers, and
-An application-layer protocol that
allows hosts to query the distributed
database.
Few other important services:
Host aliasing: A host with a complicated hostname can have one or more alias names. Example: relay1.west-
coast.enterprise.com may have two aliases such as enterprise.com and www.enterprise.com. In this case, the hostname
relay1.westcoast. enterprise.com is said to be a canonical hostname.
Mail server aliasing: For example, if Arun has an account with Hotmail, Arun's e-mail address might be as simple as
[email protected]. However, the hostname of the Hotmail mail server is more complicated and much less mnemonic
than simply hotmail.com For example, the canonical hostname might be something like relay1.west-coast.hotmail.com
Load distribution: DNS is also used to perform load distribution among replicated servers, such as replicated Web
servers. Busy sites, such as facebook.com, are replicated over multiple servers, with each server running on a different
end system and each having a different IP address. For replicated Web servers, a set of IP addresses is thus associated with
one canonical hostname. The DNS database contains this set of IP addresses. When clients make a DNS query for a name
mapped to a set of addresses, the server responds with the entire set of IP addresses, but rotates the ordering of the
addresses within each reply.
OVERVIEW OF HOW DNS WORKS
To translate a hostname to an IP address, the application will invoke the client side of DNS, specifying the
hostname that needs to be translated.
DNS in the user’s host then takes over, sending a query message into the network.
All DNS query and reply messages are sent within UDP datagrams to port 53. After a delay, ranging from
milliseconds to seconds, DNS in the user’s host receives a DNS reply message that provides the desired
mapping. This mapping is then passed to the invoking application.
If this is a centralized design i.e. if there is only one huge DNS server it would be simpler than having a
number of servers in different locations, but there are major flaws in this design:
• A single point of failure
• Traffic volume
• Distant centralized database.
• Maintenance
A DISTRIBUTED, HIERARCHICAL DATABASE