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

Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Jun 04, 2018

Download

Documents

vodang
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Chapter 25

Domain Name System

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

Page 2: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.1 Example of using the DNS service

25.2

Page 3: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--1 NAME SPACE1 NAME SPACE

TT bb bibi thth i di d tt hihiToTo bebe unambiguous,unambiguous, thethe namesnames assignedassigned toto machinesmachinesmustmust bebe carefullycarefully selectedselected fromfrom aa namename spacespace withwith

l tl t t lt l thth bi dibi di b tb t ththcompletecomplete controlcontrol overover thethe bindingbinding betweenbetween thethe namesnamesandand IPIP addressesaddresses..

Flat Name SpaceTopics discussed in this section:Topics discussed in this section:

Hierarchical Name Space

25.3

Page 4: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--2 2 DOMAIN NAME SPACEDOMAIN NAME SPACE

TT hh hi hi lhi hi l d id iToTo havehave aa hierarchicalhierarchical namename space,space, aa domaindomain namenamespacespace waswas designeddesigned.. InIn thisthis designdesign thethe namesnames areared fi dd fi d ii i di d i hi h hhdefineddefined inin anan invertedinverted--treetree structurestructure withwith thethe rootroot atatthethe toptop.. TheThe treetree cancan havehave onlyonly 128128 levelslevels:: levellevel 00( )( ) l ll l 127127(root)(root) toto levellevel 127127..

Label

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

Domain NameDomain

25.4

Page 5: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.2 Domain name space

25.5

Page 6: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.3 Domain names and labels

25.6

Page 7: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.4 FQDN and PQDN

25.7

Page 8: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.5 Domains

25.8

Page 9: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--3 3 DISTRIBUTION OF NAME SPACEDISTRIBUTION OF NAME SPACE

TheThe informationinformation containedcontained inin thethe domaindomain namename spacespaceTheThe informationinformation containedcontained inin thethe domaindomain namename spacespacemustmust bebe storedstored.. However,However, itit isis veryvery inefficientinefficient andand alsoalsounreliableunreliable toto havehave justjust oneone computercomputer storestore suchsuch aa hugehugeunreliableunreliable toto havehave justjust oneone computercomputer storestore suchsuch aa hugehugeamountamount ofof informationinformation.. InIn thisthis section,section, wewe discussdiscuss thethedistributiondistribution ofof thethe domaindomain namename spacespacedistributiondistribution ofof thethe domaindomain namename spacespace..

Hierarchy of Name ServersTopics discussed in this section:Topics discussed in this section:

ZoneRoot ServerPrimary and Secondary Servers

25.9

Primary and Secondary Servers

Page 10: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.6 Hierarchy of name servers

25.10

Page 11: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.7 Zones and domains

25.11

Page 12: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Note

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

loads all information from the primary server.

When the secondary downloadsi f ti f th i it i ll dinformation from the primary, it is called

zone transfer.

25.12

Page 13: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--4 4 DNS IN THE INTERNETDNS IN THE INTERNET

DNSDNS isis aa protocolprotocol thatthat cancan bebe usedused inin differentdifferentDNSDNS isis aa protocolprotocol thatthat cancan bebe usedused inin differentdifferentplatformsplatforms.. InIn thethe Internet,Internet, thethe domaindomain namename spacespace(tree)(tree) isis divideddivided intointo threethree differentdifferent sectionssections:: genericgeneric(tree)(tree) isis divideddivided intointo threethree differentdifferent sectionssections:: genericgenericdomains,domains, countrycountry domains,domains, andand thethe inverseinverse domaindomain..

Generic DomainsTopics discussed in this section:Topics discussed in this section:

Country DomainsInverse Domain

25.13

Page 14: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.8 DNS IN THE INTERNET

25.14

Page 15: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.9 Generic domains

25.15

Page 16: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Table 25.1 Generic domain labels

25.16

Page 17: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.10 Country domains

25.17

Page 18: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.11 Inverse domain

25.18

Page 19: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--5 5 RESOLUTIONRESOLUTION

MappingMapping aa namename toto anan addressaddress oror anan addressaddress toto aanamename isis calledcalled namename--addressaddress resolutionresolution..

Topics discussed in this sectionTopics discussed in this sectionResolverMapping Names to Addresses

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

Mapping Names to AddressesMapping Addresses to NamesRecursive ResolutionCaching

25.19

Page 20: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.12 Recursive resolution

25.20

Page 21: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.13 Iterative resolution

25.21

Page 22: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--6 6 DNS MESSAGESDNS MESSAGES

DNSDNS hashas twotwo typestypes ofof messagesmessages:: queryquery andand responseresponseDNSDNS hashas twotwo typestypes ofof messagesmessages:: queryquery andand responseresponse..BothBoth typestypes havehave thethe samesame formatformat.. TheThe queryquery messagemessageconsistsconsists ofof aa headerheader andand questionquestion recordsrecords;; thetheconsistsconsists ofof aa headerheader andand questionquestion recordsrecords;; thetheresponseresponse messagemessage consistsconsists ofof aa header,header, questionquestionrecordsrecords answeranswer recordsrecords authoritativeauthoritative recordsrecords andandrecords,records, answeranswer records,records, authoritativeauthoritative records,records, andandadditionaladditional recordsrecords..

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

25.22

Page 23: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.14 Query and response messages

25.23

Page 24: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Figure 25.15 Header format

25.24

Page 25: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--7 7 TYPES OF RECORDSTYPES OF RECORDS

AA ii S tiS ti 2525 66 tt tt ff ddAsAs wewe sawsaw inin SectionSection 2525..66,, twotwo typestypes ofof recordsrecords areareusedused inin DNSDNS.. TheThe questionquestion recordsrecords areare usedused inin thethe

titi titi ff thth ddquestionquestion sectionsection ofof thethe queryquery andand responseresponse messagesmessages..TheThe resourceresource recordsrecords areare usedused inin thethe answer,answer,

th it tith it ti dd dditi ldditi l i f tii f ti titi ffauthoritative,authoritative, andand additionaladditional informationinformation sectionssections ofofthethe responseresponse messagemessage..

Q ti R dTopics discussed in this section:Topics discussed in this section:Question RecordResource Record

25.25

Page 26: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--8 8 REGISTRARSREGISTRARS

HowHow areare newnew domainsdomains addedadded toto DNS?DNS? ThisThis isis donedoneHowHow areare newnew domainsdomains addedadded toto DNS?DNS? ThisThis isis donedonethroughthrough aa registrar,registrar, aa commercialcommercial entityentity accreditedaccredited bybyICANNICANN AA registrarregistrar firstfirst verifiesverifies thatthat thethe requestedrequestedICANNICANN.. AA registrarregistrar firstfirst verifiesverifies thatthat thethe requestedrequesteddomaindomain namename isis uniqueunique andand thenthen entersenters itit intointo thetheDNSDNS databasedatabase AA feefee isis chargedchargedDNSDNS databasedatabase.. AA feefee isis chargedcharged..

25.26

Page 27: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

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

TheThe DNSDNS mastermaster filefile mustmust bebe updatedupdated dynamicallydynamically..TheThe DynamicDynamic DomainDomain NameName SystemSystem (DDNS)(DDNS)thereforetherefore waswas deviseddevised toto respondrespond toto thisthis needneed.. InInDDNS,DDNS, whenwhen aa bindingbinding betweenbetween aa namename andand ananaddressaddress isis determined,determined, thethe informationinformation isis sent,sent, usuallyusuallybyby DHCPDHCP toto aa primaryprimary DNSDNS serverserver.. TheThe primaryprimary serverserverupdatesupdates thethe zonezone.. TheThe secondarysecondary serversservers areare notifiednotifiedeithereither activelyactively oror passivelypassively..

25.27

Page 28: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

2525--10 10 ENCAPSULATIONENCAPSULATION

DNSDNS cancan useuse eithereither UDPUDP oror TCPTCP InIn bothboth casescases thetheDNSDNS cancan useuse eithereither UDPUDP oror TCPTCP.. InIn bothboth casescases thethewellwell--knownknown portport usedused byby thethe serverserver isis portport 5353.. UDPUDP isisusedused whenwhen thethe sizesize ofof thethe responseresponse messagemessage isis lessless thanthanusedused whenwhen thethe sizesize ofof thethe responseresponse messagemessage isis lessless thanthan512512 bytesbytes becausebecause mostmost UDPUDP packagespackages havehave aa 512512--bytebytepacketpacket sizesize limitlimit IfIf thethe sizesize ofof thethe responseresponse messagemessage isispacketpacket sizesize limitlimit.. IfIf thethe sizesize ofof thethe responseresponse messagemessage isismoremore thanthan 512512 bytes,bytes, aa TCPTCP connectionconnection isis usedused..

25.28

Page 29: Chapter 25 Domain Name System - Kasetsart Universityplw/dccn/presentation/ch25.pdf · 2525--9 9 DYNAMIC DOMAIN NAME DYNAMIC DOMAIN NAME SYSTEM (DDNS) TheThe DNS DNS mastemaster file

Note

DNS can use the services of UDP or TCP i th ll k t 53using the well-known port 53.

25.29