Professional Documents
Culture Documents
Module19 dnsv2 PDF
Module19 dnsv2 PDF
1
Before there was DNS ….
2
Design principle of DNS
• An organization obtains authority for parts of the name space, and can add
additional layers of the hierarchy
• Below top-level
domain, administration
of name space is
delegated to Managed
organizations by UVA
3
Domain name system
• Example:
Z Z Z YLUJLQLDHGX FV YLUJLQLDHGX
DNS domains are
., edu, virginia.edu, cs.virginia.edu
QHRQFVYLUJLQLDHGX
Domain names
• Hosts and DNS domains are named based on their position in the domain
tree
• 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.
4
Top-level domains
5
Hierarchy of name servers
6
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
7
Addresses of root servers
8
Recursive and Iterative Queries
Recursive queries
VWTXHU URRVH
WUYHU
• In a recursive query, the resolver QHRQFVYLUJLQLDHGX
expects the response from the
5HIHUUDO
WRHGXQDP HVHUYHU
name server
QGTXHU
• If the server cannot supply the QHRQFVYLUJLQLDHGX
answer, it will send the query to 5HIHUUDO
WRYLUJLQLDHGXQDP H
the “closest known” authoritative VHUYHU
name server (here: In the worst 1DPH HGXVHUYHU
UGTXHU
case, the closest known server is VHUYHU
QHRQFVYLUJLQLDHGX
the root server)
5HIHUUDOWR
FVYLUJLQLDHGX
• The root sever sends a referral to QDPHVHUYHU YLUJLQLDHGX
the “edu” server. Querying this VHUYH
W
KTXHU
server yields a referral to the QHRQFVYLUJLQLDHGX
server of “virginia.edu”
5HVRO
YHU ,3 DGGUHVVRI
• … and so on QHRQFVYLUJLQLDHGX
FV YLUJLQLDHGX
VHUYH
9
Iterative queries
URRVH
WUYHU
• In an iterative query, the name
server sends a closest known”
authoritative name server the a
1DPH X
referral to the root server. HG
VHUYHU Q
L LD U
LUJ YH
HU
F VY HV
RQ QD
P
• This involves more work for the QH GX
U\ H
XH OWR X
resolver VW T UD HG
H IHU UJ LQLD HGXVHUYHU
L
5
FVY Q DPH
Q
QHR HGX
HU\ LD
TX U
L JLQ U GX
QG Y H LDH
OWR VHUY YLUJ LQ
IH UUD Q F V
5H QHR
HU\ GX YLUJLQLDHGX
UG TX LD H
YLUJLQ VHUYHU VHUYH
OWRFV QDP H
HUUD
5 HI
KTXHU
W
5HVRO
YHU
QHRQFVYLUJLQLDHGX
,3 DGGUHVVRI FV YLUJLQLDHGX
QHRQFVYLUJLQLDHGX VHUYH
Caching
10
Resource Records
;
• Left Resource records for a mylab.com. IN NS PC4.mylab.com.
;
zone: localhost A 127.0.0.1
PC4.mylab.com. A 10.0.1.41
PC3.mylab.com. A 10.0.1.31
PC2.mylab.com. A 10.0.1.21
PC1.mylab.com. A 10.0.1.11
Resource Records
db.mylab.com
11