Professional Documents
Culture Documents
25.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 25.1 Example of using the DNS service
25.2
25--1 NAME SPACE
25
T be
To b unambiguous,
bi th names assigned
the i d to
t machines
hi
must be carefully selected from a name space with
complete
l t control
t l over the
th binding
bi di between
b t th names
the
and IP addresses
addresses..
25.3
25--2 DOMAIN NAME SPACE
25
T have
To h a hierarchical
hi hi l name space, a domain
d i name
space was designed.
designed. In this design the names are
defined
d fi d in i an inverted
iinverted-
d-tree structure with
i h the
h root at
the top.
top. The tree can have only 128 levels levels:: level 0
(root)
( ) to level
l l 127
127..
25.4
Figure 25.2 Domain name space
25.5
Figure 25.3 Domain names and labels
25.6
Figure 25.4 FQDN and PQDN
25.7
Figure 25.5 Domains
25.8
25--3 DISTRIBUTION OF NAME SPACE
25
25.9
Figure 25.6 Hierarchy of name servers
25.10
Figure 25.7 Zones and domains
25.11
Note
25.12
25--4 DNS IN THE INTERNET
25
25.13
Figure 25.8 DNS IN THE INTERNET
25.14
Figure 25.9 Generic domains
25.15
Table 25.1 Generic domain labels
25.16
Figure 25.10 Country domains
25.17
Figure 25.11 Inverse domain
25.18
25--5 RESOLUTION
25
25.19
Figure 25.12 Recursive resolution
25.20
Figure 25.13 Iterative resolution
25.21
25--6 DNS MESSAGES
25
25.22
Figure 25.14 Query and response messages
25.23
Figure 25.15 Header format
25.24
25--7 TYPES OF RECORDS
25
A we saw in
As i Section
S ti 25 25..6, two
t t
types off recordsd are
used in DNS
DNS.. The question records are used in the
question
ti section
ti off the
th query andd response messagesmessages..
The resource records are used in the answer,
authoritative,
th it ti andd additional
dditi l information
i f ti sections
ti off
the response message
message..
25.25
25--8 REGISTRARS
25
25.26
25--9 DYNAMIC DOMAIN NAME
25
SYSTEM (DDNS)
25.27
25--10 ENCAPSULATION
25
DNS can use either UDP or TCP TCP.. In both cases the
well--known port used by the server is port 53.
well 53. UDP is
used when the size of the response message is less than
512 bytes because most UDP packages have a 512 512--byte
packet size limit
limit.. If the size of the response message is
more than 512 bytes, a TCP connection is used used..
25.28
Note
25.29