Date post: | 13-Dec-2014 |
Category: |
Technology |
Upload: | tejindershami |
View: | 339 times |
Download: | 5 times |
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Chapter 18
Domain NameSystem(DNS)
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
CONTENTSCONTENTS• NAME SPACE• DOMAIN NAME SPACE• DISTRIBUTION OF NAME SPACE• DNS IN THE INTERNET• RESOLUTION• DNS MESSAGES• TYPES OF RECORDS• COMPRESSION• EXAMPLES• DDNS• ENCAPSULATION
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
NAME SPACE
18.118.1
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
DOMAINNAMESPACE
18.218.2
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-1
Domain name space
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-2
Domain namesand labels
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-3
FQDN and PQDN
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-4
Domains
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
DISTRIBUTION OF
NAME SPACE
18.318.3
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-5
Hierarchy of name servers
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-6
Zones and domains
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
A primary server loads all information from A primary server loads all information from the disk file; the secondary server loads the disk file; the secondary server loads
all information from the the primary server. all information from the the primary server. When the primary downloads information When the primary downloads information
from the secondary, it is called from the secondary, it is called zone transfer.zone transfer.
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
DNS IN THE
INTERNET
18.418.4
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-7DNS in the Internet
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-8
Generic domains
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-9
Country domains
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-10
Inverse domain
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
RESOLUTION
18.518.5
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-11
Recursive resolution
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-12Iterative resolution
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
DNSMESSAGES
18.618.6
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-13
DNS messages
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-14
Query and response messages
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-15
Header format
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-16
QR: Query/ResponseOpCode: 0 standard, 1 inverse, 2 server statusAA: AuthoritativeTC: TruncatedRD: Recursion DesiredRA: Recursion AvailablerCode: Status of the error
Flags fields
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
TYPESOF
RECORDS
18.718.7
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-17
Question record format
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-18
admin.atc.fhda.edu.
Query name format
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-19
Resource record format
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
COMPRESSION
18.818.8
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-20
Format of an offset pointer
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
EXAMPLES
18.918.9
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 1Example 1
A resolver sends a query message to a local server to find the IP address for the host “chal.fhda.edu.”. We discuss the query and response messages separately.
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-21
Example of a query message
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-22 Example of a response message
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Example 2Example 2
An FTP server has received a packet from an FTP client with IP address 153.2.7.9. The FTP server wants to verify that the FTP client is an authorized client.
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-23
Example of inverse query message
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
Figure 18-24
Example of inverseresponse message
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
DDNS
18.1018.10
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
ENCAPSULATION
18.1118.11
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000
DNS can use the services of DNS can use the services of UDP or TCP UDP or TCP
using the well-known port 53.using the well-known port 53.