25.1 chapter 25 domain name system copyright © the mcgraw-hill companies, inc. permission required...

30
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Upload: noel-sparks

Post on 28-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.1

Chapter 25

Domain Name System

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 2: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.2

Figure 25.1 Example of using the DNS service

Page 3: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

DNS-DOMAIN NAME SYSTEMDNS-DOMAIN NAME SYSTEM

DNS is an internet service that translates domain names into DNS is an internet service that translates domain names into IP addresses.IP addresses.

A DNS - a domain name is typed in a browser it is automatically passed on to a DNS server, which translates the name into its corresponding IP address (e.g. the domain name NTC Hosting.com is translated to 66.40.65.49)

Ex:Ex:www.yahoo.com(DN) – 190.150.232.4(IP) – 190.150.232.4(IP)

Page 4: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.4

25-1 NAME SPACE25-1 NAME SPACE

•Name space is maps each address to a unique name can be Name space is maps each address to a unique name can be organized in 2 ways.organized in 2 ways.

1. Flat Name Space (sequence of character without structure)

2. Hierarchical Name Space Each name is made of several parts. Each name is unique without need of central Authority.

Page 5: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.5

25-2 DOMAIN NAME SPACE25-2 DOMAIN NAME SPACE

•A domain name space was designed to have a hierarchical A domain name space was designed to have a hierarchical structure.structure.

• In this design the names are defined in an inverted-tree In this design the names are defined in an inverted-tree structure with the root at the top. structure with the root at the top.

•The tree can have only 128 levels:The tree can have only 128 levels: level 0 (root) to level 127. level 0 (root) to level 127.

Label,Root,LevelsDomain NameDomain

Topics discussed in this section:Topics discussed in this section:

Page 6: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.6

Figure 25.3 Domain names and labels

NULL string.

Page 7: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.7

Figure 25.2 Domain name space

Page 8: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.8

Figure 25.4 FQDN and PQDN

FQDN - if a label is ended by a null string it is called fully qualified Domain name.

PQDN - if a label is not ended by a null string (.)

EX:

Page 9: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.9

Figure 25.5 Domains-sub tree of the domain name space

Page 10: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.10

25-3 DISTRIBUTION OF NAME SPACE25-3 DISTRIBUTION OF NAME SPACE

In ordered to maintain the reliability and reduce the In ordered to maintain the reliability and reduce the response time, the information in DNS is distributed response time, the information in DNS is distributed among host called DNS Server among host called DNS Server

Hierarchy of Name ServersZoneRoot ServerPrimary and Secondary Servers

Topics discussed in this section:Topics discussed in this section:

Page 11: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.11

Figure 25.6 Hierarchy of name servers

Page 12: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.12

Figure 25.7 Zones and domains

•Zone-Each server is responsible for large or small domain.

•Zone file- the authority server maintain all information for every node in its domain in a file called Zone file.

Page 13: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.13

A primary server loads all information from the disk file; the secondary server

loads all information from the primary server.

When the secondary downloadsinformation from the primary, it is called

zone transfer.

Note

Page 14: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.14

25-4 DNS IN THE INTERNET25-4 DNS IN THE INTERNET

DNS is a protocol that can be used in different DNS is a protocol that can be used in different platforms. In the Internet, the domain name space platforms. In the Internet, the domain name space (tree) is divided into three different sections: generic (tree) is divided into three different sections: generic domains, country domains, and the inverse domain.domains, country domains, and the inverse domain.

Generic DomainsCountry DomainsInverse Domain

Topics discussed in this section:Topics discussed in this section:

Page 15: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.15

Figure 25.8 DNS IN THE INTERNET

Page 16: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.16

Figure 25.9 Generic domains

Page 17: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.17

Table 25.1 Generic domain labels

Page 18: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.18

Figure 25.10 Country domains

Page 19: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.19

Figure 25.11 Inverse domain

Page 20: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.20

25-5 RESOLUTION25-5 RESOLUTION

Mapping a name to an address or an address to a Mapping a name to an address or an address to a name is called name-address resolution.name is called name-address resolution.

ResolverMapping Names to AddressesMapping Addresses to NamesRecursive ResolutionCaching

Topics discussed in this section:Topics discussed in this section:

Page 21: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.21

Figure 25.12 Recursive resolution

Page 22: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.22

Figure 25.13 Iterative resolution

Page 23: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.23

25-6 DNS MESSAGES25-6 DNS MESSAGES

DNS has two types of messages: query and response. DNS has two types of messages: query and response. Both types have the same format. The query message Both types have the same format. The query message consists of a header and question records; the consists of a header and question records; the response message consists of a header, question response message consists of a header, question records, answer records, authoritative records, and records, answer records, authoritative records, and additional records.additional records.

HeaderTopics discussed in this section:Topics discussed in this section:

Page 24: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.24

Figure 25.14 Query and response messages

Page 25: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.25

Figure 25.15 Header format

Page 26: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.26

25-7 TYPES OF RECORDS25-7 TYPES OF RECORDS

As we saw in Section 25.6, two types of records are As we saw in Section 25.6, two types of records are used in DNS. The question records are used in the used in DNS. The question records are used in the question section of the query and response messages. question section of the query and response messages. The resource records are used in the answer, The resource records are used in the answer, authoritative, and additional information sections of authoritative, and additional information sections of the response message.the response message.

Question RecordResource Record

Topics discussed in this section:Topics discussed in this section:

Page 27: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.27

25-8 REGISTRARS25-8 REGISTRARS

How are new domains added to DNS? This is done How are new domains added to DNS? This is done through a registrar, a commercial entity accredited by through a registrar, a commercial entity accredited by ICANN. A registrar first verifies that the requested ICANN. A registrar first verifies that the requested domain name is unique and then enters it into the domain name is unique and then enters it into the DNS database. A fee is charged.DNS database. A fee is charged.

Page 28: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.28

25-9 DYNAMIC DOMAIN NAME 25-9 DYNAMIC DOMAIN NAME SYSTEM (DDNS) SYSTEM (DDNS)

The DNS master file must be updated dynamically. The DNS master file must be updated dynamically. The The Dynamic Domain Name System (DDNS)Dynamic Domain Name System (DDNS) therefore therefore was devised to respond to this need. In DDNS, when a was devised to respond to this need. In DDNS, when a binding between a name and an address is determined, binding between a name and an address is determined, the information is sent, usually by DHCP to a primary the information is sent, usually by DHCP to a primary DNS server. The primary server updates the zone. The DNS server. The primary server updates the zone. The secondary servers are notified either actively or secondary servers are notified either actively or passively. passively.

Page 29: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.29

25-10 ENCAPSULATION25-10 ENCAPSULATION

DNS can use either UDP or TCP. In both cases the DNS can use either UDP or TCP. In both cases the well-known port used by the server is port 53. UDP is well-known port used by the server is port 53. UDP is used when the size of the response message is less than used when the size of the response message is less than 512 bytes because most UDP packages have a 512-byte 512 bytes because most UDP packages have a 512-byte packet size limit. If the size of the response message is packet size limit. If the size of the response message is more than 512 bytes, a TCP connection is used. more than 512 bytes, a TCP connection is used.

Page 30: 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display

25.30

DNS can use the services of UDP or TCP using the well-known port 53.

Note