SlideShare a Scribd company logo
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
25.3
25-1 NAME SPACE
25-1 NAME SPACE
To be unambiguous, the names assigned to machines
To be unambiguous, the names assigned to machines
must be carefully selected from a name space with
must be carefully selected from a name space with
complete control over the binding between the names
complete control over the binding between the names
and IP addresses.
and IP addresses.
Flat Name Space
Hierarchical Name Space
Topics discussed in this section:
Topics discussed in this section:
25.4
25-2 DOMAIN NAME SPACE
25-2 DOMAIN NAME SPACE
To have a hierarchical name space, a domain name
To have a hierarchical name space, a domain name
space was designed. In this design the names are
space was designed. In this design the names are
defined in an inverted-tree structure with the root at
defined in an inverted-tree structure with the root at
the top. The tree can have only 128 levels: level 0
the top. The tree can have only 128 levels: level 0
(root) to level 127.
(root) to level 127.
Label
Domain Name
Domain
Topics discussed in this section:
Topics discussed in this section:
25.5
Figure 25.2 Domain name space
25.6
Figure 25.3 Domain names and labels
25.7
Figure 25.4 FQDN and PQDN
25.8
Figure 25.5 Domains
25.9
25-3 DISTRIBUTION OF NAME SPACE
25-3 DISTRIBUTION OF NAME SPACE
The information contained in the domain name space
The information contained in the domain name space
must be stored. However, it is very inefficient and also
must be stored. However, it is very inefficient and also
unreliable to have just one computer store such a huge
unreliable to have just one computer store such a huge
amount of information. In this section, we discuss the
amount of information. In this section, we discuss the
distribution of the domain name space.
distribution of the domain name space.
Hierarchy of Name Servers
Zone
Root Server
Primary and Secondary Servers
Topics discussed in this section:
Topics discussed in this section:
25.10
Figure 25.6 Hierarchy of name servers
25.11
Figure 25.7 Zones and domains
25.12
A primary server loads all information
from the disk file; the secondary server
loads all information from
the primary server.
When the secondary downloads
information from the primary, it is called
zone transfer.
Note
25.13
25-4 DNS IN THE INTERNET
25-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 Domains
Country Domains
Inverse Domain
Topics discussed in this section:
Topics discussed in this section:
25.14
Figure 25.8 DNS IN THE INTERNET
25.15
Figure 25.9 Generic domains
25.16
Table 25.1 Generic domain labels
25.17
Figure 25.10 Country domains
25.18
Figure 25.11 Inverse domain
25.19
25-5 RESOLUTION
25-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.
Resolver
Mapping Names to Addresses
Mapping Addresses to Names
Recursive Resolution
Caching
Topics discussed in this section:
Topics discussed in this section:
25.20
Figure 25.12 Recursive resolution
25.21
Figure 25.13 Iterative resolution
25.22
25-6 DNS MESSAGES
25-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.
Header
Topics discussed in this section:
Topics discussed in this section:
25.23
Figure 25.14 Query and response messages
25.24
Figure 25.15 Header format
25.25
25-7 TYPES OF RECORDS
25-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 Record
Resource Record
Topics discussed in this section:
Topics discussed in this section:
25.26
25-8 REGISTRARS
25-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.
25.27
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.
25.28
25-10 ENCAPSULATION
25-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.
25.29
DNS can use the services of UDP or TCP
using the well-known port 53.
Note

More Related Content

PPT
25 DNS
PPT
C N Example of using the DNS service.ppt
PPT
ch25.ppt
PPT
DNS.ppt
PPT
DNS-DOmain name system DNS
PPT
PPT
Ch25
25 DNS
C N Example of using the DNS service.ppt
ch25.ppt
DNS.ppt
DNS-DOmain name system DNS
Ch25

Similar to slide_for_domain_name_system_in_chapter_25.ppt (20)

PPT
Chapter 25
PPT
25-Domain Name System.ppt
PDF
domain name system dns dns dns dns dns dnsdns dns dns dns dns dns
PPTX
Para disponer de un espacio de nombres jerárquico, se diseñó un espacio de no...
PPT
Transport and Application Layer : Domain Name System
PPTX
DNS AND DDNS
PPT
Electronic mail and Domain Name System
PPTX
chapter07 of data communication (3).pptx
PPTX
c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
PPTX
The Application Layer
PPT
application layer protocols DNS,SNMP,web service.ppt
PDF
Computer Networks Module 1 - part 2.pdf
PPTX
DNS ( Domain Name System)
PPTX
Domain Name System
PPT
domain network services (dns)
PDF
Build Dynamic DNS server from scratch in C (Part1)
PDF
Presentation on Domain Name System
Chapter 25
25-Domain Name System.ppt
domain name system dns dns dns dns dns dnsdns dns dns dns dns dns
Para disponer de un espacio de nombres jerárquico, se diseñó un espacio de no...
Transport and Application Layer : Domain Name System
DNS AND DDNS
Electronic mail and Domain Name System
chapter07 of data communication (3).pptx
c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
The Application Layer
application layer protocols DNS,SNMP,web service.ppt
Computer Networks Module 1 - part 2.pdf
DNS ( Domain Name System)
Domain Name System
domain network services (dns)
Build Dynamic DNS server from scratch in C (Part1)
Presentation on Domain Name System
Ad

More from BlackHat41 (6)

PPT
slide_for_HDLC_and_DLC_in_Chapter_Four.ppt
PPT
chapter_one_version_one_three_two_slide.ppt
PPT
Ch3datalinklayerand layeraa linkdata.ppt
PPT
this is a presentationon ip and cidr.ppt
PPT
a_presentation_on_hdlc_and_dlc_computer.ppt
PPT
Network_Model. In the field of Computer Networking.ppt
slide_for_HDLC_and_DLC_in_Chapter_Four.ppt
chapter_one_version_one_three_two_slide.ppt
Ch3datalinklayerand layeraa linkdata.ppt
this is a presentationon ip and cidr.ppt
a_presentation_on_hdlc_and_dlc_computer.ppt
Network_Model. In the field of Computer Networking.ppt
Ad

Recently uploaded (20)

PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
UNIT - 3 Total quality Management .pptx
PPT
Total quality management ppt for engineering students
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
PPTX
Artificial Intelligence
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Abrasive, erosive and cavitation wear.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
III.4.1.2_The_Space_Environment.p pdffdf
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Exploratory_Data_Analysis_Fundamentals.pdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Visual Aids for Exploratory Data Analysis.pdf
Information Storage and Retrieval Techniques Unit III
UNIT - 3 Total quality Management .pptx
Total quality management ppt for engineering students
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
86236642-Electric-Loco-Shed.pdf jfkduklg
Artificial Intelligence
R24 SURVEYING LAB MANUAL for civil enggi
Abrasive, erosive and cavitation wear.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...

slide_for_domain_name_system_in_chapter_25.ppt

  • 1. 25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
  • 2. 25.2 Figure 25.1 Example of using the DNS service
  • 3. 25.3 25-1 NAME SPACE 25-1 NAME SPACE To be unambiguous, the names assigned to machines To be unambiguous, the names assigned to machines must be carefully selected from a name space with must be carefully selected from a name space with complete control over the binding between the names complete control over the binding between the names and IP addresses. and IP addresses. Flat Name Space Hierarchical Name Space Topics discussed in this section: Topics discussed in this section:
  • 4. 25.4 25-2 DOMAIN NAME SPACE 25-2 DOMAIN NAME SPACE To have a hierarchical name space, a domain name To have a hierarchical name space, a domain name space was designed. In this design the names are space was designed. In this design the names are defined in an inverted-tree structure with the root at defined in an inverted-tree structure with the root at the top. The tree can have only 128 levels: level 0 the top. The tree can have only 128 levels: level 0 (root) to level 127. (root) to level 127. Label Domain Name Domain Topics discussed in this section: Topics discussed in this section:
  • 6. 25.6 Figure 25.3 Domain names and labels
  • 9. 25.9 25-3 DISTRIBUTION OF NAME SPACE 25-3 DISTRIBUTION OF NAME SPACE The information contained in the domain name space The information contained in the domain name space must be stored. However, it is very inefficient and also must be stored. However, it is very inefficient and also unreliable to have just one computer store such a huge unreliable to have just one computer store such a huge amount of information. In this section, we discuss the amount of information. In this section, we discuss the distribution of the domain name space. distribution of the domain name space. Hierarchy of Name Servers Zone Root Server Primary and Secondary Servers Topics discussed in this section: Topics discussed in this section:
  • 10. 25.10 Figure 25.6 Hierarchy of name servers
  • 11. 25.11 Figure 25.7 Zones and domains
  • 12. 25.12 A primary server loads all information from the disk file; the secondary server loads all information from the primary server. When the secondary downloads information from the primary, it is called zone transfer. Note
  • 13. 25.13 25-4 DNS IN THE INTERNET 25-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 Domains Country Domains Inverse Domain Topics discussed in this section: Topics discussed in this section:
  • 14. 25.14 Figure 25.8 DNS IN THE INTERNET
  • 16. 25.16 Table 25.1 Generic domain labels
  • 19. 25.19 25-5 RESOLUTION 25-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. Resolver Mapping Names to Addresses Mapping Addresses to Names Recursive Resolution Caching Topics discussed in this section: Topics discussed in this section:
  • 22. 25.22 25-6 DNS MESSAGES 25-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. Header Topics discussed in this section: Topics discussed in this section:
  • 23. 25.23 Figure 25.14 Query and response messages
  • 25. 25.25 25-7 TYPES OF RECORDS 25-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 Record Resource Record Topics discussed in this section: Topics discussed in this section:
  • 26. 25.26 25-8 REGISTRARS 25-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.
  • 27. 25.27 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.
  • 28. 25.28 25-10 ENCAPSULATION 25-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.
  • 29. 25.29 DNS can use the services of UDP or TCP using the well-known port 53. Note