Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Submitted by :
PRAVEENA RATIYA JAISWAL
(1GA14SCS02)
Outline
What is DNS?
What services does it provide?
How does it operate?
Message format
Types of messages
1GA14SCS02
What is DNS?
service
DNS is
1GA14SCS02
Why DNS?
remember an IP address.
number.
1GA14SCS02
DNS Services
1GA14SCS02
1GA14SCS02
response to return.
1GA14SCS02
DNS
database
maintenance
doesnt scale!
8
1GA14SCS02
Distributed, Hierarchical
Database
Root DNS Servers
com DNS servers
yahoo.com
DNS servers
amazon.com
DNS servers
DNS server
client queries amazon.com DNS server to get IP
INTRODUCTION
1GA14SCS02
11
1GA14SCS02
Flat Namespace
1GA14SCS02
1GA14SCS02
Hierarchical Names
14
1GA14SCS02
Example
1GA14SCS02
Ex. local.site
Where site is the site name authorised by central authority, local is part
of the name controlled by site and the period (.) character is delimiter
used to separate them.
When the topmost authority approved adding a new site, X to the list
of valid sites and delegates site X authority for all names that end in .X
16
1GA14SCS02
Subset Authority
each level.
The idea is to keep subdividing the namespace until each
local.group.site
The 10 digits phone number have been partitioned into 3 digit area
code , 3 digit exchange , and 4 digit subscriber within exchange.
17
1GA14SCS02
Summary
18
1GA14SCS02
It specifies the name syntax and rules for delegating authority over
names
the dot
19
1GA14SCS02
Cs.purdue.edu
The top level domain name is edu (the domain name for
educational institutions).
20
1GA14SCS02
meaning
aero
asia
biz
businesses
com
Commercial organization
edu
gov
info
information
jobs
mil
name
individuals
net
org
travel
Travel industry
Country code
Figure.
The top
level
domains
assigned
in the
internet
and their
meanings.
1GA14SCS02
Contd.
va.us
22
1GA14SCS02
1GA14SCS02
com
com
edu
edu
gov
gov
us
us
va
va
purdu
purdu
ee
ibm
ibm
ecn
ecn
cs
cs
nsf
nsf
reston
reston
mat
mat
hh
cnri
cnri
24
1GA14SCS02
individual objects or the type of an object using only the domain name
syntax.
25
1GA14SCS02
26
1GA14SCS02
27
1GA14SCS02
28
1GA14SCS02
29
1GA14SCS02
Efficient translation
30
1GA14SCS02
1GA14SCS02
1GA14SCS02
16
31
IDENTIFICATION
PARAMETER
Number of questions
Number of answers
Number of authority
Number of additional
Question section
Answer section
Authority section
Additional information section
Figure . Domain name server message format.
33
1GA14SCS02
16
31
Query class
16
Resource domain
Type
31
Class
Time to live
Resource data length
Resource data
Figure . The format of a resource record used in later sections of
message returned by domain name servers.
34
1GA14SCS02
one.
36
1GA14SCS02
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.
37
1GA14SCS02
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.
38
1GA14SCS02
root DNS
server
Host at cis.poly.edu
wants IP address
for
gaia.cs.umass.edu
iterated query:
contacted server
replies with name of
server to contact
I dont know this
name, but ask this
server
TLD DNS
server
4
5
local DNS server
dns.poly.edu
requesting host
cis.poly.edu
gaia.cs.umass.edu
39
1GA14SCS02
puts burden of
name resolution on
contacted name
server
heavy load?
3
6
TLD DNS
server
8
authoritative DNS server
dns.cs.umass.edu
requesting host
cis.poly.edu
gaia.cs.umass.edu
40
1GA14SCS02
caches mapping
IETF
RFC 2136
http://www.ietf.org/html.charters/dnsind-charter.html
41
1GA14SCS02
Operation of DNS
42
1GA14SCS02
msg header
identification: 16 bit #
for query, reply to
query uses same #
flags:
query or reply
recursion desired
recursion available
reply is authoritative
43
1GA14SCS02
1GA14SCS02
Message Fields
45
1GA14SCS02
Fields contd
were requested
1GA14SCS02