Professional Documents
Culture Documents
Structured Naming: Internet Naming Service: DNS
Structured Naming: Internet Naming Service: DNS
Structured Naming
Internet Naming Service: DNS*
Overview
The DNS is
The Domain Name System
What Internet users use to reference
anything by name on the Internet
The mechanism by which Internet software
translates names to attributes such as
addresses
DNS as a Database
Keys to the database are domain names
www.foo.com, 18.in-addr.arpa, 6.4.e164.arpa
Global Distribution
Data is maintained locally, but retrievable
globally
No single computer has all DNS data
Loose Coherency
Each version of a subset of the database (a zone)
has a serial number
The serial number is incremented on each database change
Scalability
No limit to the size of the database
No limit to the number of queries
Tens of thousands of queries handled easily
every second
Reliability
Data is replicated
Data from master is copied to multiple slaves
Dynamicity
Database can be updated dynamically
Add/delete/modify of any record
Only master can be dynamically updated
Overview
Introduction to the DNS
DNS Components
The name space
The servers
The resolvers
t o p -le v e l n o d e
s e c o n d - le v e l n o d e
s e c o n d - le v e l n o d e
t h ir d -le v e l n o d e
t o p -le v e l n o d e
s e c o n d - le v e l n o d e
t h ir d - le v e l n o d e
s e c o n d - le v e l n o d e
An Analogy E.164
Root node maintained by the ITU (call it +)
Top level nodes = country codes (1, 81, etc)
Second level nodes = regional codes (1-402, 81-3, etc.)
"+ "
...
...
1
202
650
808
381
779
6003
6003
3
3489
5226
2024
81
...
852
Labels
""
A string of up to 63 bytes
RFCs 852 and 1123 define legal
characters for hostnames
A-Z, 0-9, and - only with a-z
and A-Z treated as the same
t o p -1
fo o
t o p -2
fo o
fo o
a t& t
t o p -3
bar
baz
Domain Names
edu
com
n o m in u m
w est
e a st
d a k o ta
to rn a d o
m e ta in fo
w w w
b e r k e le y
gov
nwu
in t
m il
net
n a to
a rm y
uu
o rg
Subdomains
One domain is a subdomain of another if its
domain name ends in the others domain name
So sales.nominum.com is a subdomain of
nominum.com & com
Delegation
Administrators can create subdomains to group hosts
According to geography, organizational affiliation etc.
""
rwc.nominum.com
zone
.a rp a
.c o m
.e d u
acm ebw
n o m in u m
n e ts o l
rw c
m o lo k a i
w w w
skye
ftp
ams.nominum.com
zone
am s
gouda
cheddar
Overview
Introduction to the DNS
DNS Components
The name space
The servers
The resolvers
Name Servers
Name servers store information about the name
space in units called zones
The name servers that load a complete zone are said to
have authority for or be authoritative for the zone
Name Servers
128.8.10.5
Zones
nominum.com
202.12.28.129
isc.org
204.152.187.11
From
disk
data
file
Zone transfer
Master
server
Authoritative Data
Name Server Process
Authoritative Data
(primary master and
slave zones)
Response
Cache Data
(responses from
other name servers)
Agent
(looks up queries
on behalf of resolvers)
Query
Resolver
Response
Response
Query
Another
name
server
Query
Resolver
Cached Data
Name Server Process
Authoritative Data
(primary master and
slave zones)
Response
Cache Data
(responses from
other name servers)
Agent
(looks up queries
on behalf of resolvers)
Query
Resolver
Overview
Introduction to the DNS
DNS Components
The name space
The servers
The resolvers
Name Resolution
Name resolution is the process by which resolvers
and name servers cooperate to find data in the
name space
Closure mechanism for DNS?
Starting point: the names and IP addresses of the name
servers for the root zone (the root name servers)
The root name servers know about the top-level zones
and can tell name servers whom to contact for all TLDs
Name Resolution
A DNS query has three parameters:
A domain name (e.g., www.nominum.com),
Remember, every node has a domain name!
annie.west.sprockets.com
ping www.nominum.com.
dakota.west.sprockets.com
ping www.nominum.com.
m.root-servers.net
dakota.west.sprockets.com
annie.west.sprockets.com
ping www.nominum.com.
m.root-servers.net
dakota.west.sprockets.com
annie.west.sprockets.com
ping www.nominum.com.
f.gtld-servers.net
annie.west.sprockets.com
ping www.nominum.com.
m.root-servers.net
dakota.west.sprockets.com
f.gtld-servers.net
annie.west.sprockets.com
ping www.nominum.com.
ns1.sanjose.nominum.net
f.gtld-servers.net
annie.west.sprockets.com
ping www.nominum.com.
m.root-servers.net
dakota.west.sprockets.com
Heres the IP
address for
www.nominum.com
ns1.sanjose.nominum.net
annie.west.sprockets.com
ping www.nominum.com.
f.gtld-servers.net
ns1.sanjose.nominum.net
f.gtld-servers.net
annie.west.sprockets.com
ping www.nominum.com.
annie.west.sprockets.com
ping ftp.nominum.com.
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
f.gtld-servers.net
annie.west.sprockets.com
ping ftp.nominum.com.
ns1.sanjose.nominum.net
f.gtld-servers.net
annie.west.sprockets.com
ping ftp.nominum.com.
m.root-servers.net
dakota.west.sprockets.com
Heres the IP
address for
ftp.nominum.com
ns1.sanjose.nominum.net
f.gtld-servers.net
annie.west.sprockets.com
ping ftp.nominum.com.
ns1.sanjose.nominum.net
f.gtld-servers.net
annie.west.sprockets.com
ping ftp.nominum.com.
Should
resolve
Looks up
Passes to
child
Receives
and caches
Returns to
requester
cs
<ftp>
#<ftp>
--
--
#<ftp>
vu
<cs,ftp>
#<cs>
<ftp>
#<ftp>
#<cs>
#<cs, ftp>
ni
<vu,cs,ftp>
#<vu>
<cs,ftp>
#<cs>
#<cs,ftp>
#<vu>
#<vu,cs>
#<vu,cs,ftp>
root
<ni,vu,cs,ftp>
#<nl>
<vu,cs,ftp>
#<vu>
#<vu,cs>
#<vu,cs,ftp>
#<nl>
#<nl,vu>
#<nl,vu,cs>
#<nl,vu,cs,ftp>
Performance-wise,
is cost?
better?
Which
How about
works
communication
betterwhich
with caching?
Overview
C o u n try C o d e T L D s
(c c T L D s )
I n te rn a tio n a l T L D s
( iT L D s )
A F
A f g h a n is t a n
IN T
I n t e r n a t io n a l T r e a t y O r g a n iz a t io n s
N ET
N e tw o rk In fra s tru c tu re
AL
A l b a n ia
AR P A
( T r a n s itio n D e v ic e )
O R G
O t h e r O r g a n iz a t io n s
D Z
A l g e r ia
...
YU
Y u g o s l a v ia
ZM
Z a m b ia
ZW
Z im b a b w e
U S Legacy TLDs
(u s T L D s )
G O V
G o v e r n m e n t a l O r g a n iz a t io n s
M IL
M ilit a r y O r g a n iz a t io n s
ED U
E d u c a t io n a l I n s t i t u t i o n s
Names
Administration of the root zone file
Oversee the operation of the root name servers
Operated by:
Autonomica (SE)
RIPE-NCC (UK)
WIDE (JP)
Registrar
the agent which submits change requests to the registry on behalf of
the registrant
Registrant
the entity which makes use of the domain name
Registry
Zone DB
Registrar submits
add/modify/delete
to registry
Registrar
Master
updated
Registrar
Registrar
Registrants
Registrants
Slaves
updated
Overview
Load Concerns
DNS can handle the load
DNS root servers get approximately 3000
queries per second
Empirical proofs (DDoS attacks) show root name
servers can handle 50,000 queries per second
Limitation is network bandwidth, not the DNS protocol
Performance Concerns
DNS is a very lightweight protocol
Simple query response
Security Concerns
Base DNS protocol (RFC 1034, 1035) is insecure
DNS spoofing (cache poisoning) attacks are possible
Questions?