SlideShare une entreprise Scribd logo
1  sur  26
Domain Name Service
(DNS)
•10/24/15 •1
Outline
• What is DNS?
• What services does it provide?
• How does it operate?
• Message format
• Types of messages
•10/24/15 •2
What is DNS?
• DNS is a host name to IP address translation
service
• DNS is
– a distributed database implemented in a hierarchy
of name servers
– an application level protocol for message
exchange between clients and servers
•10/24/15 •3
Why DNS?
• It is easier to remember a host name than it is to
remember an IP address.
• An name has more meaning to a user than a 4 byte
number.
• Applications such as FTP, HTTP, email, etc., all
require the user to input a destination.
• The user generally enters a host name.
• The application takes the host name supplied by the
user and forwards it to DNS for translation to an IP
address.
•10/24/15 •4
DNS Services
• Besides the address translation service, DNS
also provides the following services:
– Host aliasing: a host with a complicated name can
have one or more aliases that are simpler to
remember,e.g., relay1.west-coast.media.com ->
media.com. The longer name is the canonical
hostname, the shorter the alias hostname.
•10/24/15 •5
DNS Services (cont’d)
– Mail server aliasing: same as above, aliases can
exist for long canonical host names.
– Load Balancing: a set of servers can have one
name mapped onto several machines. DNS
provides the full list of names to the end user’s
application which generally takes the first one in
the list. DNS rotates the names on the list.
•10/24/15 •6
How does it work?
• DNS works by exchanging messages between
client and server machines.
• A client application will pass the destination
host name to the DNS process (in Unix
referred to as the gethostbyname() routine) to
get the IP address.
• The application then sits and waits for the
response to return.
•10/24/15 •7
DNS
Why not centralize DNS?
• single point of failure
• traffic volume
• distant centralized database
• maintenance
doesn’t scale!
•10/24/15
•8
Distributed, Hierarchical Database
Client wants IP for www.amazon.com; 1st
approx:
• client queries a root server to find com DNS server
• client queries com DNS server to get amazon.com DNS server
• client queries amazon.com DNS server to get IP address for
www.amazon.com
•10/24/15
•9
Root DNS Servers
com DNS servers org DNS servers edu DNS servers
poly.edu
DNS servers
umass.edu
DNS servers
yahoo.com
DNS servers
amazon.com
DNS servers
pbs.org
DNS servers
DNS: Root name servers
• contacted by local name server that can not resolve name
• root name server:
– contacts authoritative name server if name mapping not known
– gets mapping
– returns mapping to local name server
•10/24/15
•10
• 13 root
name servers
worldwideb USC-ISI Marina del Rey, CA
l ICANN Los Angeles, CA
e NASA Mt View, CA
f Internet Software C. Palo Alto,
CA (and 36 other locations)
i Autonomica, Stockholm (plus
28 other locations)
k RIPE London (also 16 other locations)
m WIDE Tokyo (also Seoul,
Paris, SF)
a Verisign, Dulles, VA
c Cogent, Herndon, VA (also LA)
d U Maryland College Park, MD
g US DoD Vienna, VA
h ARL Aberdeen, MD
j Verisign, ( 21 locations)
TLD and Authoritative Servers
• Top-level domain (TLD) servers:
– responsible for com, org, net, edu, etc, and all top-level
country domains uk, fr, ca, jp.
– Network Solutions maintains servers for com TLD
– Educause for edu TLD
• Authoritative DNS servers:
– organization’s DNS servers, providing authoritative
hostname to IP mappings for organization’s servers
(e.g., Web, mail).
– can be maintained by organization or service provider
•10/24/15
•11
Local Name Server
• does not strictly belong to hierarchy
• each ISP (residential ISP, company, university)
has one.
– also called “default name server”
• when host makes DNS query, query is sent to
its local DNS server
– acts as proxy, forwards query into hierarchy
•10/24/15
•12
DNS Queries
• Recursive:
– The client machine sends a request to the local name
server, which, if it does not find the address in its
database, sends a request to the root name server, which,
in turn, will route the query to an intermediate or
authoritative name server. Note that the root name server
can contain some hostname to IP address mappings. The
intermediate name server always knows who the
authoritative name server is.
•10/24/15 •13
DNS Queries (cont’d)
• Iterative:
– The local server queries the root server. If address
not in its database, will have the name/address of
an intermediate or authoritative name server and
forward that information to the local name server
so that it can directly communicate with the
intermediate or authoritative name server. This is
to prevent the overloading of the root servers that
handle millions of requests.
•10/24/15 •14
DNS name resolution example
• Host at cis.poly.edu
wants IP address for
gaia.cs.umass.edu
•10/24/15
•15
requesting host
cis.poly.edu
gaia.cs.umass.edu
root DNS
server
local DNS server
dns.poly.edu
1
2
3
4
5
6
authoritative DNS server
dns.cs.umass.edu
7
8
TLD DNS
server
• iterated
query:
contacted server
replies with name
of server to
contact
“I don’t know
this name, but
ask this server”
DNS name resolution example
•10/24/15
•16
requesting host
cis.poly.edu
gaia.cs.umass.edu
root DNS
server
local DNS server
dns.poly.edu
1
2
45
6
authoritative DNS server
dns.cs.umass.edu
7
8
TLD DNS
server
3• recursive
query:
puts burden of
name resolution
on contacted name
server
heavy load?
DNS: caching and updating records
• once (any) name server learns mapping, it caches
mapping
– cache entries timeout (disappear) after some time
– TLD servers typically cached in local name servers
• Thus root name servers not often visited
• update/notify mechanisms under design by IETF
– RFC 2136
– http://www.ietf.org/html.charters/dnsind-charter.html
•10/24/15
•17
Operation of DNS
• DNS uses caching to increase the speed with
which it does the translation.
• The DNS data is stored in the database in the
form of resource records (RR). The RRs are
directly inserted in the DNS messages.
• The RRs are a 4 tuple that consist of: {name,
value, type, TTL}.
•10/24/15 •18
RRs
• TTL: time to live, used to indicate when an RR can be
removed from the DNS cache.
• Type =
– A - then NAME is a hostname and Value its IP address
– NS - then NAME is a domain name and Value is the IP
address of an authoritative name server
– CNAME - then NAME is an alias for a host and Value is the
canonical name for the host
– MX - then NAME is an alias for an email host and Value is
the the canonical name for the email server
•10/24/15 •19
DNS records
DNS: distributed db storing resource records (RR)
o Type=NS
o name is domain (eg.,
foo.com)
o value is hostname of
authoritative name
server for this
domain
•10/24/15
•20
RR format: (name, value, type, ttl)
o Type=A
o name is hostname
o value is IP
address
o Type=CNAME
o name is alias name for
some “canonical” (the
real) name, eg.,
www.ibm.com is really
servereast.backup2.ibm.co
m
o value is canonical name
o Type=MX
o value is name of
mailserver associated
with name
DNS protocol, messages
DNS protocol : query and reply messages, both with same message format
•10/24/15
•21
• msg header
identification: 16
bit # for query,
reply to query uses
same #
flags:
 query or reply
 recursion desired
 recursion
available
DNS protocol, messages
•10/24/15
•22
Name, type fields
for a query
RRs in response
to query
records for
authoritative
servers
additional
“helpful”
info that may be
used
Message Fields
• Identification - identifies a query and is copied
in the reply message to match it to the query
at the client side.
• Flags - one bit flag set to indicate whether the
message is a query or a reply. Another bit to
identify if reply is from an authoritative sender
or not. A third bit is used to indicate that
recursion method is desired.
•10/24/15 •23
Fields cont’d
• Questions - contains the name that is being queried
and the type, ie type A or MX.
• Answers - contains the RRs for the name(s) that were
requested
• Authority - contains records of authoritative servers
• Additional Info - e.g., if type of query is MX, then this
info can be a Type - A RR containing the IP address of
the canonical hostname
•10/24/15 •24
Inserting records into DNS
• example: new startup “Network Utopia”
• register name networkuptopia.com at DNS registrar (e.g.,
Network Solutions)
– provide names, IP addresses of authoritative name server (primary
and secondary)
– registrar inserts two RRs into com TLD server:
(networkutopia.com, dns1.networkutopia.com, NS)
(dns1.networkutopia.com, 212.212.212.1, A)
• create authoritative server Type A record for
www.networkuptopia.com; Type MX record for
networkutopia.com
•10/24/15
•25
Summary
• DNS provides a mechanism for maintaining
the user friendliness of the Internet by hiding
some of the operational details.
• DNS servers have to be created manually.
Recently an update protocol was introduced
that allows DNS to exchange data for
additions and deletions.
•10/24/15 •26

Contenu connexe

Tendances (20)

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)
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
 
DNS Record
DNS RecordDNS Record
DNS Record
 
Dns(Domain name system)
Dns(Domain name system)Dns(Domain name system)
Dns(Domain name system)
 
Dhcp
DhcpDhcp
Dhcp
 
Dns
DnsDns
Dns
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Domain name server
Domain name serverDomain name server
Domain name server
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
Presentation on dns
Presentation on dnsPresentation on dns
Presentation on dns
 
Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.ppt
 
Dynamic Domain Name System
Dynamic Domain Name SystemDynamic Domain Name System
Dynamic Domain Name System
 
Dns server
Dns serverDns server
Dns server
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Dns
DnsDns
Dns
 
DNS ( Domain Name System)
DNS ( Domain Name System)DNS ( Domain Name System)
DNS ( Domain Name System)
 
DHCP
DHCPDHCP
DHCP
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Dhcp presentation
Dhcp presentationDhcp presentation
Dhcp presentation
 

En vedette

Network protocol
Network protocolNetwork protocol
Network protocolSWAMY NAYAK
 
DNS – domain name system
DNS – domain name systemDNS – domain name system
DNS – domain name systemMariana Amorim
 
How to configure dns server(2)
How to configure dns server(2)How to configure dns server(2)
How to configure dns server(2)Amandeep Kaur
 
Presentation: the domain name system
Presentation: the domain name systemPresentation: the domain name system
Presentation: the domain name systemwebhostingguy
 
Web Technologies & CMS Market Share Trends
Web Technologies & CMS Market Share TrendsWeb Technologies & CMS Market Share Trends
Web Technologies & CMS Market Share TrendsInTriggerApp
 
DNS
DNSDNS
DNSUTEC
 
Domain name system presentation
Domain name system presentationDomain name system presentation
Domain name system presentationAnchit Dhingra
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configurationSanguine_Eva
 
Web technologies lesson 1
Web technologies   lesson 1Web technologies   lesson 1
Web technologies lesson 1nhepner
 
Best Practices for Monitoring DNS
Best Practices for Monitoring DNSBest Practices for Monitoring DNS
Best Practices for Monitoring DNSThousandEyes
 
Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.abhishek bhandare
 
NETWORK PROTOCOL
NETWORK PROTOCOLNETWORK PROTOCOL
NETWORK PROTOCOLKak Yong
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution processkannanragothaman
 

En vedette (18)

Dns detail understanding
Dns detail understandingDns detail understanding
Dns detail understanding
 
Network protocol
Network protocolNetwork protocol
Network protocol
 
25 DNS
25 DNS25 DNS
25 DNS
 
DNS – domain name system
DNS – domain name systemDNS – domain name system
DNS – domain name system
 
How to configure dns server(2)
How to configure dns server(2)How to configure dns server(2)
How to configure dns server(2)
 
Presentation: the domain name system
Presentation: the domain name systemPresentation: the domain name system
Presentation: the domain name system
 
Web Technologies & CMS Market Share Trends
Web Technologies & CMS Market Share TrendsWeb Technologies & CMS Market Share Trends
Web Technologies & CMS Market Share Trends
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
TCP/IP and DNS
TCP/IP and DNSTCP/IP and DNS
TCP/IP and DNS
 
DNS
DNSDNS
DNS
 
Domain name system presentation
Domain name system presentationDomain name system presentation
Domain name system presentation
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
 
Web technologies lesson 1
Web technologies   lesson 1Web technologies   lesson 1
Web technologies lesson 1
 
Best Practices for Monitoring DNS
Best Practices for Monitoring DNSBest Practices for Monitoring DNS
Best Practices for Monitoring DNS
 
Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.Basics about IP address, DNS and DHCP.
Basics about IP address, DNS and DHCP.
 
NETWORK PROTOCOL
NETWORK PROTOCOLNETWORK PROTOCOL
NETWORK PROTOCOL
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution process
 

Similaire à Dns

Computer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfComputer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfShanthalaKV
 
How DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An IntroductionHow DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An Introductionyasithbagya1
 
Domain Name System and Dynamic Host Configuration Protocol.pptx
Domain Name System and Dynamic Host Configuration Protocol.pptxDomain Name System and Dynamic Host Configuration Protocol.pptx
Domain Name System and Dynamic Host Configuration Protocol.pptxUsmanAhmed269749
 
DNS - Jaringan Komputer
DNS - Jaringan KomputerDNS - Jaringan Komputer
DNS - Jaringan KomputerImam Suharjo
 
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsDomain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsAsif Shahzad
 
Domain name system advanced power point presentation
Domain name system advanced power point presentationDomain name system advanced power point presentation
Domain name system advanced power point presentationrituchouhan1508
 
Secure shell (ssh)
Secure shell (ssh)Secure shell (ssh)
Secure shell (ssh)Ishucs
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server roleLuis Garay
 
CNIT 40: 2: DNS Protocol and Architecture
CNIT 40: 2: DNS Protocol and ArchitectureCNIT 40: 2: DNS Protocol and Architecture
CNIT 40: 2: DNS Protocol and ArchitectureSam Bowne
 
Domain Name System Explained
Domain Name System Explained Domain Name System Explained
Domain Name System Explained HTS Hosting
 
Deploying and configuring dns service
Deploying and configuring dns serviceDeploying and configuring dns service
Deploying and configuring dns servicelatoniasmith
 
10 - Domain Name System.ppt
10 - Domain Name System.ppt10 - Domain Name System.ppt
10 - Domain Name System.pptssuserf7cd2b
 

Similaire à Dns (20)

DNS
DNSDNS
DNS
 
Computer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfComputer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdf
 
How DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An IntroductionHow DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An Introduction
 
Common Network Services
Common Network ServicesCommon Network Services
Common Network Services
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Domain Name System and Dynamic Host Configuration Protocol.pptx
Domain Name System and Dynamic Host Configuration Protocol.pptxDomain Name System and Dynamic Host Configuration Protocol.pptx
Domain Name System and Dynamic Host Configuration Protocol.pptx
 
DNS - Jaringan Komputer
DNS - Jaringan KomputerDNS - Jaringan Komputer
DNS - Jaringan Komputer
 
Dn sonly
Dn sonlyDn sonly
Dn sonly
 
08Mapping.ppt
08Mapping.ppt08Mapping.ppt
08Mapping.ppt
 
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsDomain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
 
Lecture 5- url-dns
Lecture  5- url-dnsLecture  5- url-dns
Lecture 5- url-dns
 
Domain name system advanced power point presentation
Domain name system advanced power point presentationDomain name system advanced power point presentation
Domain name system advanced power point presentation
 
DNS_Presentation.pptx
DNS_Presentation.pptxDNS_Presentation.pptx
DNS_Presentation.pptx
 
Secure shell (ssh)
Secure shell (ssh)Secure shell (ssh)
Secure shell (ssh)
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server role
 
CNIT 40: 2: DNS Protocol and Architecture
CNIT 40: 2: DNS Protocol and ArchitectureCNIT 40: 2: DNS Protocol and Architecture
CNIT 40: 2: DNS Protocol and Architecture
 
Domain Name System Explained
Domain Name System Explained Domain Name System Explained
Domain Name System Explained
 
Deploying and configuring dns service
Deploying and configuring dns serviceDeploying and configuring dns service
Deploying and configuring dns service
 
Application Layer.pptx
Application Layer.pptxApplication Layer.pptx
Application Layer.pptx
 
10 - Domain Name System.ppt
10 - Domain Name System.ppt10 - Domain Name System.ppt
10 - Domain Name System.ppt
 

Plus de Sanoj Kumar

Internet of things
Internet of thingsInternet of things
Internet of thingsSanoj Kumar
 
Big data and Internet
Big data and InternetBig data and Internet
Big data and InternetSanoj Kumar
 
A New Security Model For Distributed System
A New Security Model For Distributed SystemA New Security Model For Distributed System
A New Security Model For Distributed SystemSanoj Kumar
 
A New Form of Dos attack in Cloud
A New Form of Dos attack in CloudA New Form of Dos attack in Cloud
A New Form of Dos attack in CloudSanoj Kumar
 
Inverted page tables basic
Inverted page tables basicInverted page tables basic
Inverted page tables basicSanoj Kumar
 
Hardware virtualization basic
Hardware virtualization basicHardware virtualization basic
Hardware virtualization basicSanoj Kumar
 
Dos attack basic
Dos attack basicDos attack basic
Dos attack basicSanoj Kumar
 
Steganography basic
Steganography basicSteganography basic
Steganography basicSanoj Kumar
 
Digital signatures
Digital signaturesDigital signatures
Digital signaturesSanoj Kumar
 

Plus de Sanoj Kumar (14)

Internet of things
Internet of thingsInternet of things
Internet of things
 
Jsp applet
Jsp appletJsp applet
Jsp applet
 
Corba
CorbaCorba
Corba
 
Big data and Internet
Big data and InternetBig data and Internet
Big data and Internet
 
Ajax
AjaxAjax
Ajax
 
A New Security Model For Distributed System
A New Security Model For Distributed SystemA New Security Model For Distributed System
A New Security Model For Distributed System
 
A New Form of Dos attack in Cloud
A New Form of Dos attack in CloudA New Form of Dos attack in Cloud
A New Form of Dos attack in Cloud
 
Biometrics
BiometricsBiometrics
Biometrics
 
IPC SOCKET
IPC SOCKETIPC SOCKET
IPC SOCKET
 
Inverted page tables basic
Inverted page tables basicInverted page tables basic
Inverted page tables basic
 
Hardware virtualization basic
Hardware virtualization basicHardware virtualization basic
Hardware virtualization basic
 
Dos attack basic
Dos attack basicDos attack basic
Dos attack basic
 
Steganography basic
Steganography basicSteganography basic
Steganography basic
 
Digital signatures
Digital signaturesDigital signatures
Digital signatures
 

Dernier

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfsmsksolar
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersMairaAshraf6
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stageAbc194748
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 

Dernier (20)

DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

Dns

  • 2. Outline • What is DNS? • What services does it provide? • How does it operate? • Message format • Types of messages •10/24/15 •2
  • 3. What is DNS? • DNS is a host name to IP address translation service • DNS is – a distributed database implemented in a hierarchy of name servers – an application level protocol for message exchange between clients and servers •10/24/15 •3
  • 4. Why DNS? • It is easier to remember a host name than it is to remember an IP address. • An name has more meaning to a user than a 4 byte number. • Applications such as FTP, HTTP, email, etc., all require the user to input a destination. • The user generally enters a host name. • The application takes the host name supplied by the user and forwards it to DNS for translation to an IP address. •10/24/15 •4
  • 5. DNS Services • Besides the address translation service, DNS also provides the following services: – Host aliasing: a host with a complicated name can have one or more aliases that are simpler to remember,e.g., relay1.west-coast.media.com -> media.com. The longer name is the canonical hostname, the shorter the alias hostname. •10/24/15 •5
  • 6. DNS Services (cont’d) – Mail server aliasing: same as above, aliases can exist for long canonical host names. – Load Balancing: a set of servers can have one name mapped onto several machines. DNS provides the full list of names to the end user’s application which generally takes the first one in the list. DNS rotates the names on the list. •10/24/15 •6
  • 7. How does it work? • DNS works by exchanging messages between client and server machines. • A client application will pass the destination host name to the DNS process (in Unix referred to as the gethostbyname() routine) to get the IP address. • The application then sits and waits for the response to return. •10/24/15 •7
  • 8. DNS Why not centralize DNS? • single point of failure • traffic volume • distant centralized database • maintenance doesn’t scale! •10/24/15 •8
  • 9. Distributed, Hierarchical Database Client wants IP for www.amazon.com; 1st approx: • client queries a root server to find com DNS server • client queries com DNS server to get amazon.com DNS server • client queries amazon.com DNS server to get IP address for www.amazon.com •10/24/15 •9 Root DNS Servers com DNS servers org DNS servers edu DNS servers poly.edu DNS servers umass.edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers
  • 10. DNS: Root name servers • contacted by local name server that can not resolve name • root name server: – contacts authoritative name server if name mapping not known – gets mapping – returns mapping to local name server •10/24/15 •10 • 13 root name servers worldwideb USC-ISI Marina del Rey, CA l ICANN Los Angeles, CA e NASA Mt View, CA f Internet Software C. Palo Alto, CA (and 36 other locations) i Autonomica, Stockholm (plus 28 other locations) k RIPE London (also 16 other locations) m WIDE Tokyo (also Seoul, Paris, SF) a Verisign, Dulles, VA c Cogent, Herndon, VA (also LA) d U Maryland College Park, MD g US DoD Vienna, VA h ARL Aberdeen, MD j Verisign, ( 21 locations)
  • 11. TLD and Authoritative Servers • Top-level domain (TLD) servers: – responsible for com, org, net, edu, etc, and all top-level country domains uk, fr, ca, jp. – Network Solutions maintains servers for com TLD – Educause for edu TLD • Authoritative DNS servers: – organization’s DNS servers, providing authoritative hostname to IP mappings for organization’s servers (e.g., Web, mail). – can be maintained by organization or service provider •10/24/15 •11
  • 12. Local Name Server • does not strictly belong to hierarchy • each ISP (residential ISP, company, university) has one. – also called “default name server” • when host makes DNS query, query is sent to its local DNS server – acts as proxy, forwards query into hierarchy •10/24/15 •12
  • 13. DNS Queries • Recursive: – The client machine sends a request to the local name server, which, if it does not find the address in its database, sends a request to the root name server, which, in turn, will route the query to an intermediate or authoritative name server. Note that the root name server can contain some hostname to IP address mappings. The intermediate name server always knows who the authoritative name server is. •10/24/15 •13
  • 14. DNS Queries (cont’d) • Iterative: – The local server queries the root server. If address not in its database, will have the name/address of an intermediate or authoritative name server and forward that information to the local name server so that it can directly communicate with the intermediate or authoritative name server. This is to prevent the overloading of the root servers that handle millions of requests. •10/24/15 •14
  • 15. DNS name resolution example • Host at cis.poly.edu wants IP address for gaia.cs.umass.edu •10/24/15 •15 requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu 1 2 3 4 5 6 authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server • iterated query: contacted server replies with name of server to contact “I don’t know this name, but ask this server”
  • 16. DNS name resolution example •10/24/15 •16 requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu 1 2 45 6 authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server 3• recursive query: puts burden of name resolution on contacted name server heavy load?
  • 17. DNS: caching and updating records • once (any) name server learns mapping, it caches mapping – cache entries timeout (disappear) after some time – TLD servers typically cached in local name servers • Thus root name servers not often visited • update/notify mechanisms under design by IETF – RFC 2136 – http://www.ietf.org/html.charters/dnsind-charter.html •10/24/15 •17
  • 18. Operation of DNS • DNS uses caching to increase the speed with which it does the translation. • The DNS data is stored in the database in the form of resource records (RR). The RRs are directly inserted in the DNS messages. • The RRs are a 4 tuple that consist of: {name, value, type, TTL}. •10/24/15 •18
  • 19. RRs • TTL: time to live, used to indicate when an RR can be removed from the DNS cache. • Type = – A - then NAME is a hostname and Value its IP address – NS - then NAME is a domain name and Value is the IP address of an authoritative name server – CNAME - then NAME is an alias for a host and Value is the canonical name for the host – MX - then NAME is an alias for an email host and Value is the the canonical name for the email server •10/24/15 •19
  • 20. DNS records DNS: distributed db storing resource records (RR) o Type=NS o name is domain (eg., foo.com) o value is hostname of authoritative name server for this domain •10/24/15 •20 RR format: (name, value, type, ttl) o Type=A o name is hostname o value is IP address o Type=CNAME o name is alias name for some “canonical” (the real) name, eg., www.ibm.com is really servereast.backup2.ibm.co m o value is canonical name o Type=MX o value is name of mailserver associated with name
  • 21. DNS protocol, messages DNS protocol : query and reply messages, both with same message format •10/24/15 •21 • msg header identification: 16 bit # for query, reply to query uses same # flags:  query or reply  recursion desired  recursion available
  • 22. DNS protocol, messages •10/24/15 •22 Name, type fields for a query RRs in response to query records for authoritative servers additional “helpful” info that may be used
  • 23. Message Fields • Identification - identifies a query and is copied in the reply message to match it to the query at the client side. • Flags - one bit flag set to indicate whether the message is a query or a reply. Another bit to identify if reply is from an authoritative sender or not. A third bit is used to indicate that recursion method is desired. •10/24/15 •23
  • 24. Fields cont’d • Questions - contains the name that is being queried and the type, ie type A or MX. • Answers - contains the RRs for the name(s) that were requested • Authority - contains records of authoritative servers • Additional Info - e.g., if type of query is MX, then this info can be a Type - A RR containing the IP address of the canonical hostname •10/24/15 •24
  • 25. Inserting records into DNS • example: new startup “Network Utopia” • register name networkuptopia.com at DNS registrar (e.g., Network Solutions) – provide names, IP addresses of authoritative name server (primary and secondary) – registrar inserts two RRs into com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, 212.212.212.1, A) • create authoritative server Type A record for www.networkuptopia.com; Type MX record for networkutopia.com •10/24/15 •25
  • 26. Summary • DNS provides a mechanism for maintaining the user friendliness of the Internet by hiding some of the operational details. • DNS servers have to be created manually. Recently an update protocol was introduced that allows DNS to exchange data for additions and deletions. •10/24/15 •26