McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

41
McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

Transcript of McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

Page 1: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Chapter 18

Domain NameSystem(DNS)

Page 2: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (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

Page 3: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

NAME SPACE

18.118.1

Page 4: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

DOMAINNAMESPACE

18.218.2

Page 5: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-1

Domain name space

Page 6: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-2

Domain namesand labels

Page 7: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-3

FQDN and PQDN

Page 8: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-4

Domains

Page 9: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

DISTRIBUTION OF

NAME SPACE

18.318.3

Page 10: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-5

Hierarchy of name servers

Page 11: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-6

Zones and domains

Page 12: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

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.

Page 13: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

DNS IN THE

INTERNET

18.418.4

Page 14: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-7DNS in the Internet

Page 15: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-8

Generic domains

Page 16: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-9

Country domains

Page 17: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-10

Inverse domain

Page 18: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

RESOLUTION

18.518.5

Page 19: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-11

Recursive resolution

Page 20: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-12Iterative resolution

Page 21: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

DNSMESSAGES

18.618.6

Page 22: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-13

DNS messages

Page 23: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-14

Query and response messages

Page 24: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-15

Header format

Page 25: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

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

Page 26: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

TYPESOF

RECORDS

18.718.7

Page 27: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-17

Question record format

Page 28: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-18

admin.atc.fhda.edu.

Query name format

Page 29: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-19

Resource record format

Page 30: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

COMPRESSION

18.818.8

Page 31: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-20

Format of an offset pointer

Page 32: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

EXAMPLES

18.918.9

Page 33: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

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.

Page 34: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-21

Example of a query message

Page 35: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-22 Example of a response message

Page 36: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

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.

Page 37: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-23

Example of inverse query message

Page 38: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

Figure 18-24

Example of inverseresponse message

Page 39: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

DDNS

18.1018.10

Page 40: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

McGraw-Hill ©The McGraw-Hill Companies, Inc., 2000

ENCAPSULATION

18.1118.11

Page 41: McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 18 Domain Name System (DNS)

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.