SlideShare a Scribd company logo
Prakhar Rastogi ( 16/ICS/038 )
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.
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.
 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.
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).
Design principle of DNS
 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
NAME SPACE
 A name 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.
b. HIERARCHIAL NAME SPACE
• 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.
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.
The DNS Name Space
A portionof the Internetdomain name space.
 LABEL: Each node 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.
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
.
 FULLY QUALIFIED DOMAIN 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.
Top-level domains
 Three types 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.
Organizational top-level domains
com Commercial organizations
edu Educational institutions
gov Government institutions
int International organizations
mil U.S. military institutions
net Networking organizations
org Non-profit organizations
Primary and Secondary Name
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
Resolver and name server
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)
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)
Caching
 To reduce DNS 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”
DNS ( Domain Name System)

More Related Content

What's hot

Dns
DnsDns
Domain name system (dns)
Domain name system (dns)Domain name system (dns)
Domain name system (dns)
Atikur Rahman
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
Mahavir Vataliya
 
Dns presentation
Dns presentationDns presentation
Dns presentation
Anurag Pandey
 
Domain name system
Domain name systemDomain name system
Domain name systemDiwaker Pant
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
Peter R. Egli
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
Aashima Wadhwa
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
Gurkamal Rakhra
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)
Dhingani Harshil
 
Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptwebhostingguy
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
Tan Huynh Cong
 
Domain name system presentation
Domain name system presentationDomain name system presentation
Domain name system presentation
Anchit Dhingra
 
Dns server
Dns serverDns server
Dns server
Subrata Kumer Paul
 
DNS(Domain Name System)
DNS(Domain Name System)DNS(Domain Name System)
DNS(Domain Name System)
Vishal Mittal
 
Dns(Domain name system)
Dns(Domain name system)Dns(Domain name system)
Dns(Domain name system)
Fâhém Ähmêd
 
Mac addresses(media access control)
Mac addresses(media access control)Mac addresses(media access control)
Mac addresses(media access control)Ismail Mukiibi
 

What's hot (20)

Dns
DnsDns
Dns
 
Domain name system (dns)
Domain name system (dns)Domain name system (dns)
Domain name system (dns)
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Dns presentation
Dns presentationDns presentation
Dns presentation
 
Domain name system
Domain name systemDomain name system
Domain name system
 
DNS Presentation
DNS PresentationDNS Presentation
DNS Presentation
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)
 
Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.ppt
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Domain name system presentation
Domain name system presentationDomain name system presentation
Domain name system presentation
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Dns 2
Dns 2Dns 2
Dns 2
 
Dns server
Dns serverDns server
Dns server
 
DNS(Domain Name System)
DNS(Domain Name System)DNS(Domain Name System)
DNS(Domain Name System)
 
Dns(Domain name system)
Dns(Domain name system)Dns(Domain name system)
Dns(Domain name system)
 
Mac addresses(media access control)
Mac addresses(media access control)Mac addresses(media access control)
Mac addresses(media access control)
 
DHCP
DHCPDHCP
DHCP
 

Similar to DNS ( Domain Name System)

The Application Layer
The Application LayerThe Application Layer
The Application Layer
MSharmilaDeviITDEPT
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
Owaîs Járå
 
CSE dns ppt.pptx
CSE dns ppt.pptxCSE dns ppt.pptx
CSE dns ppt.pptx
Pandajangal
 
Dns
DnsDns
DNS AND DDNS
DNS AND DDNSDNS AND DDNS
DNS AND DDNS
Virendra thakur
 
Domain Name System ppt
Domain Name System pptDomain Name System ppt
Linux basics andng hosti
Linux basics andng hostiLinux basics andng hosti
Linux basics andng hosti
Patruni Chidananda Sastry
 
Internet Domains
Internet DomainsInternet Domains
Internet Domains
adil raja
 
Computer Networks - DNS
Computer Networks - DNSComputer Networks - DNS
Computer Networks - DNS
DHIVYADEVAKI
 
Domain name system
Domain name systemDomain name system
Domain name systemRahul Baghla
 
Dns
DnsDns
DNS.pptx
DNS.pptxDNS.pptx
DNS.pptx
EidTahir
 
Presentation
PresentationPresentation
PresentationKen Wong
 
Domain name server
Domain name serverDomain name server
Domain name serverMobile88
 

Similar to DNS ( Domain Name System) (20)

Dns And Snmp
Dns And SnmpDns And Snmp
Dns And Snmp
 
The Application Layer
The Application LayerThe Application Layer
The Application Layer
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
CSE dns ppt.pptx
CSE dns ppt.pptxCSE dns ppt.pptx
CSE dns ppt.pptx
 
Dns
DnsDns
Dns
 
DNS AND DDNS
DNS AND DDNSDNS AND DDNS
DNS AND DDNS
 
Dns1111111111
Dns1111111111Dns1111111111
Dns1111111111
 
Domain Name System ppt
Domain Name System pptDomain Name System ppt
Domain Name System ppt
 
Ch20 system administration
Ch20 system administration Ch20 system administration
Ch20 system administration
 
Linux basics andng hosti
Linux basics andng hostiLinux basics andng hosti
Linux basics andng hosti
 
Internet Domains
Internet DomainsInternet Domains
Internet Domains
 
Computer Networks - DNS
Computer Networks - DNSComputer Networks - DNS
Computer Networks - DNS
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Dns
DnsDns
Dns
 
Dns
DnsDns
Dns
 
DNS.pptx
DNS.pptxDNS.pptx
DNS.pptx
 
Dns
DnsDns
Dns
 
Presentation
PresentationPresentation
Presentation
 
Presentation
PresentationPresentation
Presentation
 
Domain name server
Domain name serverDomain name server
Domain name server
 

Recently uploaded

Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 

Recently uploaded (20)

Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 

DNS ( Domain Name System)

  • 1. Prakhar Rastogi ( 16/ICS/038 )
  • 2. 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 of DNS  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  A name 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 NAME SPACE • 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 Name Space A portionof the Internetdomain name space.
  • 11.  LABEL: Each node 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 QUALIFIED DOMAIN 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  Three types 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 com Commercial 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 Secondary Name 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 name server 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 reduce DNS 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”