The document summarizes the Domain Name System (DNS), which maps domain names to IP addresses. It describes how DNS evolved from a single host file to a hierarchical, decentralized system. DNS uses a tree-like structure with top-level domains like .edu or .com at the top. It assigns authoritative name servers to each domain to answer queries and cache previous responses to improve efficiency.
DNS translates human-friendly domain names to IP addresses, solving the limitations of host files with a hierarchical and distributed naming system.
DNS uses a hierarchical tree structure for domain names, allowing organized authority distribution and enabling scalable namespace management.
Domain names form an inverted tree structure in DNS with nodes defined by labels, ensuring uniqueness and hierarchical navigation.
Each node in the DNS represents a unique Fully Qualified Domain Name (FQDN) or Partially Qualified Domain Name (PQDN), essential for host identification.
Top-level domains are classified into organizational, geographical, and reverse domains, with over 200 types available for internet organization.
Primary and secondary name servers manage DNS records, while resolvers facilitate application access to domain information and reverse lookups.
Steps in DNS resolution include requests from users to resolvers, authority checks by servers, and result caching to minimize traffic.
NEED OF DNS
Toidentify an entity, the Internet uses the IP address,
which uniquely identifies the connection of a host to the
Internet. However, people prefer to use names instead of
addresses. Therefore, we need a system that can map a
name to an address or an address to a name.
3.
HISTORY OF DNS
When the Internet was small, mapping was done using a
host file. The host file had only two columns: one for the
name and one for the address. Every host could store the
host file on its disk and update it periodically from a
master host file. When a program or user wanted to map
a name to an address, the host consulted the host file and
found the mapping.
Today, however, it is impossible to have one single host
file relate every address to a name and vice versa. The
host file would be too large to store in every host.
4.
In addition,it would be impossible to update all the host
files in the world every time there is a change.
One solution would be to store the entire host file in a
single computer and allow access to this centralized
information to every computer that needs a mapping. But
this would create huge amount of traffic on the Internet.
5.
INTRODUCTION
Another solution,the one used today, is to divide this
huge information into smaller parts and store each part
on a different computer. In this method, the host that
needs mapping can contact the closest computer holding
the needed information. This method is used by the
Domain Name System (DNS).
6.
Design principle ofDNS
The naming system on which DNS is based is a hierarchical and logical tree
structure called the domain namespace.
An organization obtains authority for parts of the name space, and can add
additional layers of the hierarchy
In practice, allocation of the domain names generally follows the allocation of IP
address, e.g.,
All hosts with network prefix 128.143/16 have domain name suffix
virginia.edu
All hosts on network 128.143.136/24 are in the Computer Science
Department of the University of Virginia
7.
NAME SPACE
Aname space that maps each address to a unique name
can be organized in two ways:
a. FLAT NAME SPACE
In this, a name is assigned to an address. A name in
this space is a sequence without structure.
Disadvantage: Cannot be used in large systems like
Internet because it must be centrally controlled to
avoid ambiguity and duplication.
8.
b. HIERARCHIAL NAMESPACE
• Each name is made of several parts.
• The first part can define the nature of organization, the
second part can define the name, the third part can define
departments and so on.
• The authority to assign and control the name spaces can be
decentralized.
9.
DOMAIN NAME SPACE
Tohave a hierarchical name space, Domain Name Space
was designed. In this design, the names are defined in an
inverted-tree structure with the root at the top. The tree
can have only 128 levels: level 0 (root) to level 127. Each
level of the tree defines a hierarchical level.
10.
The DNS NameSpace
A portionof the Internetdomain name space.
11.
LABEL: Eachnode in a tree has a label, which is a string
with a maximum of 63 characters. The root label is a null
string. DNS requires that children of a node have different
labels, which guarantees the uniqueness of the domain
names.
DOMAIN NAME: Each node in the tree has a domain
name. A full domain name is a sequence of labels
separated by dots(.). The domain names are always read
from the node upto the root.
12.
Domain name system
Each node in the DNS tree represents
a DNS name
Each branch below a node is a DNS
domain.
DNS domain can contain hosts or
other domains (subdomains)
Example:
DNS domains are
., edu, virginia.edu, cs.virginia.edu
virginia.edu
cs.virginia.eduwww.virginia.edu
neon.cs.virginia.edu
edu
.
13.
FULLY QUALIFIEDDOMAIN NAME (FQDN):
Every node in the DNS domain tree can be identified by a unique
Fully Qualified Domain Name (FQDN). The FQDN gives the
position in the DNS tree.
In this, the label is terminated by a null string.
It is a domain name that contains the full name of the host.
It contains all labels, from the most specific to the most general,
that uniquely define the host.
PARTIALLY QUALIFIED DOMAIN NAME (PQDN)
In this, the label is not terminated by a null string.
A PQDN starts with a node but does not reach the root.
It is used when the name to be resolved belongs to the same site
as the client.
14.
Top-level domains
Threetypes of top-level domains:
Organizational: 3-character code indicates the function of the
organization
Used primarily within the US
Examples: gov, mil, edu, org, com, net
Geographical: 2-character country or region code
Examples: us, va, jp, de
Reverse domains: A special domain (in-addr.arpa) used for IP
address-to-name mapping
There are more than 200 top-level domains.
15.
Organizational top-level domains
comCommercial organizations
edu Educational institutions
gov Government institutions
int International organizations
mil U.S. military institutions
net Networking organizations
org Non-profit organizations
16.
Primary and SecondaryName
Servers For each zone, there must be a primary name server and a secondary
name server
The primary server (master server) maintains a zone file which has
information about the zone. Updates are made to the primary server
The secondary server copies data stored at the primary server.
Adding a host:
When a new host is added (“gold.cs.virginia.edu”) to a zone, the
administrator adds the IP information on the host (IP address and name) to
a configuration file on the primary server
17.
Resolver and nameserver
1. An application program on a host
accesses the domain system through
a DNS client, called the resolver
2. Resolver contacts DNS server, called
name server
3. DNS server returns IP address to
resolver which passes the IP address
to application
Reverse lookups are also possible,
i.e., find the hostname given an IP
address
HTTP Resolver
Hostname (neon.tcpip-lab.edu)
IP address (128.143.71.21)
Name
server
Hostname
(neon.tcpip-lab.edu)
IPaddress(128.143.71.21)
18.
Domain name resolution
1.User program issues a request for
the IP address of a hostname
2. Local resolver formulates a DNS
query to the name server of the host
3. Name server checks if it is
authorized to answer the query.
a) If yes, it responds.
b) Otherwise, it will query other
name servers, starting at the
root tree
4. When the name server has the
answer it sends it to the resolver.
HTTP Resolver
Hostname (neon.tcpip-lab.edu)
IP address (128.143.71.21)
Name
server
Hostname
(neon.tcpip-lab.edu)
IPaddress(128.143.71.21)
19.
Caching
To reduceDNS traffic, name servers
caches information on domain name/IP
address mappings
When an entry for a query is in the cache,
the server does not contact other servers
Note: If an entry is sent from a cache,
the reply from the server is marked as
“unauthoritative”