dns
DESCRIPTION
DNS. Domain Name System CH 25 Aseel Alturki. DNS. Figure 25.1 Example of using the DNS service. Name Space. To be unambiguous, the names assigned to machines must be carefully selected from a name space with complete control over the binding between the names and IP addresses. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/1.jpg)
DNSDomain Name System
CH 25
Aseel Alturki
![Page 2: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/2.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
2
DNS
Figure 25.1 Example of using the DNS service
Aseel Alturki
![Page 3: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/3.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
3
Name Space
To be unambiguous, the names assigned to machines must be carefully selected from a name space with complete control over the binding between the names and IP addresses. Flat Name Space Hierarchical Name Space:“The names are unique without the need for assignment by a central authority. The central authority controls only part of the name, not the whole.”
Aseel Alturki
![Page 4: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/4.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
4
Domain Name Space
To have a hierarchical name space, a domain name space was designed. In this design the names are defined in an inverted-tree structure with the root at the top. The tree can have only 128 levels: level 0 (root) to level 127.
Aseel Alturki
![Page 5: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/5.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
5
Domain Name Space (Cont..)
Figure 25.2 Domain name space
Aseel Alturki
![Page 6: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/6.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
6
Domain Name Space (Cont..)
Figure 25.3 Domain names and labels
Aseel Alturki
![Page 7: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/7.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
7
Domain Name Space (Cont..)
Label Domain name:• Fully qualified domain names
• Partially qualified domain names
Figure 25.4 FQDN and PQDN
Aseel Alturki
![Page 8: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/8.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
8
Domain Name Space (Cont..)
Figure 25.5 Domains
A domain is a subtree ofthe domain name space.The name of the domainis the domain name of the node at the top of thesubtree.
Aseel Alturki
![Page 9: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/9.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
9
Distribution of Name Space
The information contained in the domain name space must be stored. However, it is very inefficient and also unreliable to have just one computer store such a huge amount of information. In this section, we discuss the distribution of the domain name space.
Aseel Alturki
![Page 10: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/10.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
10
Distribution of Name Space (Cont..)
Figure 25.6 Hierarchy of name servers
Aseel Alturki
![Page 11: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/11.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
11
Distribution of Name Space (Cont..)
-Zone: Figure 25.7 Zones and domains
-Root Server.
-Primary and Secondary Servers.
Aseel Alturki
![Page 12: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/12.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
12
Distribution of Name Space (Cont..)
Aseel Alturki
A primary server loads all information from the disk file; the secondary
serverloads all information from
the primary server.
When the secondary downloadsinformation from the primary, it is
called zone transfer.
![Page 13: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/13.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
13
DNS in the Internet
DNS is a protocol that can be used in different platforms. In the Internet, the domain name space (tree) is divided into three different sections: generic domains, country domains, and the inverse domain.
Aseel Alturki
![Page 14: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/14.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
14
DNS in the Internet (Cont..)
Figure 25.8 DNS IN THE INTERNET
Aseel Alturki
![Page 15: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/15.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
15
DNS in the Internet (Cont..)
Figure 25.9 Generic domains
The generic domains define registered hosts according totheir generic behavior.
Aseel Alturki
![Page 16: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/16.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
16
DNS in the Internet (Cont..)
Table 25.1 Generic domain labels
Aseel Alturki
![Page 17: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/17.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
17
DNS in the Internet (Cont..)
Figure 25.10 Country domains
The country domains section uses two-character country abbreviations (e.g., us for United States).
Aseel Alturki
![Page 18: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/18.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
18
DNS in the Internet (Cont..)
Figure 25.11 Inverse domain
The inverse domain is used to map an address to a name.
Aseel Alturki
![Page 19: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/19.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
19
Resolution
Mapping a name to an address or an address to a name is called name-address resolution.• Resolver• Mapping names to addresses• Mapping addresses to names
Aseel Alturki
![Page 20: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/20.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
20
Resolution (Cont..)
Figure 25.12 Recursive
resolution
Aseel Alturki
![Page 21: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/21.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
21
Resolution (Cont..)
Figure 25.13 Iterative
resolution
Aseel Alturki
![Page 22: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/22.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
22
Resolution (Cont..)
Caching: Each time a server receives a query for a name that is
not in its domain, it needs to search its database for a server IP address. Reduction of this search time would increase efficiency. DNS handles this with a mechanism called caching.
Aseel Alturki
![Page 23: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/23.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
23
DNS Massages
DNS has two types of messages: query and response. Both types have the same format. The query message consists of a header and question records; the response message consists of a header, question records, answer records, authoritative records, and additional records.
Aseel Alturki
![Page 24: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/24.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
24
DNS Massages (Cont..)
Figure 25.14 Query and response messages
Aseel Alturki
![Page 25: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/25.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
25
DNS Massages (Cont..)
Figure 25.15 Header format
Aseel Alturki
![Page 26: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/26.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
26
Types of Records
As we saw in Section 25.6, two types of records are used in DNS. The question records are used in the question section of the query and response messages. The resource records are used in the answer, authoritative, and additional information sections of the response message.
Aseel Alturki
![Page 27: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/27.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
27
Registrars
How are new domains added to DNS? This is done through a registrar, a commercial entity accredited by ICANN. A registrar first verifies that the requested domain name is unique and then enters it into the DNS database. A fee is charged.
Aseel Alturki
![Page 28: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/28.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
28
Dynamic Domain Name System (DDNS) The DNS master file must be updated dynamically. The
Dynamic Domain Name System (DDNS) therefore was devised to respond to this need. In DDNS, when a binding between a name and an address is determined, the information is sent, usually by DHCP to a primary DNS server. The primary server updates the zone. The secondary servers are notified either actively or passively.
Aseel Alturki
![Page 29: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/29.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
29
Encapsulation
DNS can use either UDP or TCP. In both cases the well-known port used by the server is port 53. UDP is used when the size of the response message is less than 512 bytes because most UDP packages have a 512-byte packet size limit. If the size of the response message is more than 512 bytes, a TCP connection is used.
Aseel Alturki
![Page 30: DNS](https://reader036.vdocuments.net/reader036/viewer/2022062812/5681638d550346895dd481ce/html5/thumbnails/30.jpg)
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
30
Encapsulation (Cont..)
Aseel Alturki
DNS can use the services of UDP or TCP using the well-known port 53.