SlideShare ist ein Scribd-Unternehmen logo
1 von 33
DNS
Domain Name System
Objectives
• Discuss the Need of DNS
• List the Services Provided by DNS
• Demonstrate the working of DNS
• Analyze the DNS Records
• Apply the format of DNS Messages to
prepare DNS message
Objectives
• Discuss the Need of DNS
• List the Services Provided by DNS
• Demonstrate the working of DNS
• Analyze the DNS Records
• Apply the format of DNS Messages to
prepare DNS message
Need of DNS
• What is your voter’s id number?
• What is your driving license number?
• What is your voter’s id number?
• What is your university register number?
• What is your name?
Need of DNS…
• One identifier for a host is its hostname.
• Hostnames are mnemonic and are therefore
appreciated by humans.
• such as:
– cnn.com,
– www.yahoo.com,
– gaia.cs.umass.edu and
– surf.eurecom.fr
Need of DNS…
• Hostnames provide little information about the
location within the Internet of the host.
• A hostname such as surf.eurecom.fr, which
ends with the country code .fr, tells us that the
host is in France, but doesn't say much more.
• Furthermore, because hostnames can consist of
variable-length alpha-numeric characters, they
would be difficult to process by routers.
• For these reasons, hosts are also identified by
so-called IP addresses.
Need of DNS…
• An IP address consists of four bytes and has a rigid
hierarchical structure.
• An IP address looks like 121.7.106.83, where each
period separates one of the bytes expressed in
decimal notation from 0 to 127.
• An IP address is hierarchical because as we scan
the address from left to right, we obtain more and
more specific information about where the host is
located in the Internet. (like a postal address)
• An IP address is included in the header of each IP
datagram, and Internet routers use this IP address
to route datagram towards its destination
Objectives
• Discuss the Need of DNS
• List the Services Provided by DNS
• Demonstrate the working of DNS
• Analyze the DNS Records
• Apply the format of DNS Messages to
prepare DNS message
Services Provided by DNS
• Among the two identities people prefer the
more mnemonic hostname identifier, while
routers prefer fixed-length, hierarchically-
structured IP addresses.
• Hence we need a directory service that
translates hostnames to IP addresses.
• This is the main task of the Internet's Domain
Name System (DNS).
Services Provided by DNS…
The DNS is
(i) a distributed database implemented in a
hierarchy of name servers and
(ii) an application-layer protocol that allows
hosts and name servers to communicate in
order to provide the translation service.
Services Provided by DNS…
• DNS is commonly employed by other
application-layer protocols -- including
HTTP, SMTP and FTP - to translate user
supplied host names to IP addresses.
• In order for the user's machine to be able to
send an HTTP request message to the Web
server www.someschool.edu, the user's
machine must obtain the IP address of
www.someschool.edu.
Services Provided by DNS…
• The same user machine runs the client-side of
the DNS application.
• The browser extracts the
hostname, www.someschool.edu, from the URL
and passes the hostname to the client-side of the
DNS application.
• As part of a DNS query message, the DNS client
sends a query containing the hostname to a DNS
server.
• The DNS client eventually receives a reply, which
includes the IP address for the hostname.
Services Provided by DNS…
• The browser then opens a TCP connection to the
HTTP server process located at that IP address.
• All IP datagrams sent to from the client to server
as part of this connection will include this IP
address in the destination address field of the
datagrams.
• The IP datagram(s) that encapsulate the HTTP
request message use this IP address
Services Provided by DNS…
• DNS provides a few other important services in
addition to translating hostnames to IP
addresses:
– Host aliasing:
– Mail server aliasing:
– Load Distribution:
Host aliasing
• A host with a complicated hostname can have
one or more alias names.
• For ex: relay1.west-coast.enterprise.com
could have, say, two aliases such as
enterprise.com and www.enterprise.com.
• In this case, the hostname relay1.west-
coast.enterprise.com is said to be canonical
hostname.
• DNS can be invoked by an application to obtain
the canonical hostname for a supplied alias
hostname as well as the IP address of the host.
Mail server aliasing
• The email address must be mnemonic like
bob@hotmail.com.
• The canonical hostname might be something
like relay1.west-coast.hotmail.com
• DNS can be invoked by a mail application to
obtain the canonical hostname for a supplied
alias hostname as well as the IP address of the
host.
Load Distribution
• DNS is also being used to perform load
distribution among replicated servers, such as
replicated Web servers.
• Ex: www.google.com directed to
www.google.co.in
• A set of IP addresses is associated with one
canonical hostname.
Objectives
• Discuss the Need of DNS
• List the Services Provided by DNS
• Demonstrate the working of DNS
• Analyze the DNS Records
• Apply the format of DNS Messages to
prepare DNS message
Working of DNS
• Centralized design
• Problems of centralized design
– A single point of failure.
– Traffic volumes.
– Distant centralized database.
– Maintenance
Working of DNS…
• DNS uses a large number of name
servers, organized in a hierarchical fashion and
distributed around the world.
• three types of name servers:
– local name servers,
– root name servers,
– and authoritative name servers.
Local name servers
• The local name server is typically "close" to
the client.
• In the case of an institutional ISP, it may be on
the same LAN as the client host.
• For a residential ISP, the name server is
typically separated from the client host by no
more than a few routers.
Root name servers:
Client
Local NS
Root NS
IP ADDRESS
Authoritative name servers:
Client
Local NS
Root NS
IP ADDRESS
Authoritative
NS
a name server is
authoritative for a host if it
always has a
DNS record that translates
the host's hostname to
that host's IP address.
• Example
For a given
hostname, the
root name server
may only know
the IP address of
an intermediate
name server that
in turn knows the
IP address of an
authoritative
name server for
the hostname.
A
Query
chain
with
recursive
and
Iterative
queries.
DNS caching.
• When a name server receives a DNS mapping
for some hostname, it caches the mapping in
local memory (disk or RAM) while passing the
message along the name server chain.
DNS Records
• The name servers that together implement
the DNS distributed database, store Resource
Records (RR) for the hostname to IP address
mappings.
• A resource record is a four-tuple that contains
the following fields:
(Name, Value, Type, TTL)
DNS Records
• TTL is the time to live of the resource record;
it determines the time at which a resource
should be removed from a cache.
DNS Records
• The meaning of Name and Value depend on Type:
Type Name Value
A Host Name IP address for the hostname.
NS domain Value is the hostname of a server that knows
how to
obtain the IP addresses for hosts in the domain.
CNAME alias hostname Name canonical hostname for the alias hostname Name
MX alias hostname Name. hostname of a mail server
DNS Records...
• Example
Type Name Value
A relay1.bar.foo.com 145.37.93.126
NS foo.com dns.foo.com
CNAME foo.com relay1.bar.foo.com
MX foo.com mail.bar.foo.com,
DNS Messages
DNS Messages

Weitere ähnliche Inhalte

Was ist angesagt?

Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.ppt
webhostingguy
 
Domain name system
Domain name systemDomain name system
Domain name system
Diwaker Pant
 

Was ist angesagt? (20)

DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
 
Network address translation
Network address translationNetwork address translation
Network address translation
 
DHCP & DNS
DHCP & DNSDHCP & DNS
DHCP & DNS
 
Dhcp
DhcpDhcp
Dhcp
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Domain name service
Domain name serviceDomain name service
Domain name service
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Application Layer
Application LayerApplication Layer
Application Layer
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Ip packet delivery
Ip packet deliveryIp packet delivery
Ip packet delivery
 
Snmp
SnmpSnmp
Snmp
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
Chapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.pptChapter 29 Domain Name System.ppt
Chapter 29 Domain Name System.ppt
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Domain name system (dns)
Domain name system (dns)Domain name system (dns)
Domain name system (dns)
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
 

Andere mochten auch

DNS : The internet’s directory service
DNS : The internet’s directory serviceDNS : The internet’s directory service
DNS : The internet’s directory service
BalaSuresh AsaiThambi
 

Andere mochten auch (10)

DNS : The internet’s directory service
DNS : The internet’s directory serviceDNS : The internet’s directory service
DNS : The internet’s directory service
 
Dns 2
Dns 2Dns 2
Dns 2
 
Dns security
Dns securityDns security
Dns security
 
Shellcode injection
Shellcode injectionShellcode injection
Shellcode injection
 
Snmp
SnmpSnmp
Snmp
 
SNMP
SNMPSNMP
SNMP
 
Introduction to SNMP
Introduction to SNMPIntroduction to SNMP
Introduction to SNMP
 
(ARC309) Getting to Microservices: Cloud Architecture Patterns
(ARC309) Getting to Microservices: Cloud Architecture Patterns(ARC309) Getting to Microservices: Cloud Architecture Patterns
(ARC309) Getting to Microservices: Cloud Architecture Patterns
 
Introduction to DNS
Introduction to DNSIntroduction to DNS
Introduction to DNS
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution process
 

Ähnlich wie DNS

Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
velimamedov
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server role
Luis Garay
 
Domain name system advanced power point presentation
Domain name system advanced power point presentationDomain name system advanced power point presentation
Domain name system advanced power point presentation
rituchouhan1508
 

Ähnlich wie DNS (20)

Computer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfComputer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdf
 
Chapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptxChapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptx
 
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
 
DNS_Presentation.pptx
DNS_Presentation.pptxDNS_Presentation.pptx
DNS_Presentation.pptx
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server role
 
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting BasicsDomain Name System (DNS) - Domain Registration and Website Hosting Basics
Domain Name System (DNS) - Domain Registration and Website Hosting Basics
 
Domain Name System and Dynamic Host Configuration Protocol.pptx
Domain Name System and Dynamic Host Configuration Protocol.pptxDomain Name System and Dynamic Host Configuration Protocol.pptx
Domain Name System and Dynamic Host Configuration Protocol.pptx
 
How DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An IntroductionHow DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An Introduction
 
10 - Domain Name System.ppt
10 - Domain Name System.ppt10 - Domain Name System.ppt
10 - Domain Name System.ppt
 
DNS(In_Linux).pptx
DNS(In_Linux).pptxDNS(In_Linux).pptx
DNS(In_Linux).pptx
 
Domain name system advanced power point presentation
Domain name system advanced power point presentationDomain name system advanced power point presentation
Domain name system advanced power point presentation
 
Dn sonly
Dn sonlyDn sonly
Dn sonly
 
DNS - Jaringan Komputer
DNS - Jaringan KomputerDNS - Jaringan Komputer
DNS - Jaringan Komputer
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Intro to DNS
Intro to DNSIntro to DNS
Intro to DNS
 
DNS Records Explained @ Hackveda
DNS Records Explained @ HackvedaDNS Records Explained @ Hackveda
DNS Records Explained @ Hackveda
 
Secure shell (ssh)
Secure shell (ssh)Secure shell (ssh)
Secure shell (ssh)
 
Lecture 5- url-dns
Lecture  5- url-dnsLecture  5- url-dns
Lecture 5- url-dns
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Deploying and configuring dns service
Deploying and configuring dns serviceDeploying and configuring dns service
Deploying and configuring dns service
 

Mehr von bhavanatmithun (13)

Code optimisation presnted
Code optimisation presntedCode optimisation presnted
Code optimisation presnted
 
computer networks
computer networkscomputer networks
computer networks
 
Deadlock
DeadlockDeadlock
Deadlock
 
krisibhavan site
krisibhavan sitekrisibhavan site
krisibhavan site
 
User server interaction
User server interactionUser server interaction
User server interaction
 
Types of cn, protocols and standards
Types of cn, protocols and standardsTypes of cn, protocols and standards
Types of cn, protocols and standards
 
Snmp
SnmpSnmp
Snmp
 
Iso osi and tcp-ip reference models
Iso osi and tcp-ip reference modelsIso osi and tcp-ip reference models
Iso osi and tcp-ip reference models
 
HTTP
HTTPHTTP
HTTP
 
FTP
FTPFTP
FTP
 
application layer protocols
application layer protocolsapplication layer protocols
application layer protocols
 
Group communication
Group communicationGroup communication
Group communication
 
Group communication
Group communicationGroup communication
Group communication
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

DNS

  • 2. Objectives • Discuss the Need of DNS • List the Services Provided by DNS • Demonstrate the working of DNS • Analyze the DNS Records • Apply the format of DNS Messages to prepare DNS message
  • 3. Objectives • Discuss the Need of DNS • List the Services Provided by DNS • Demonstrate the working of DNS • Analyze the DNS Records • Apply the format of DNS Messages to prepare DNS message
  • 4. Need of DNS • What is your voter’s id number? • What is your driving license number? • What is your voter’s id number? • What is your university register number? • What is your name?
  • 5. Need of DNS… • One identifier for a host is its hostname. • Hostnames are mnemonic and are therefore appreciated by humans. • such as: – cnn.com, – www.yahoo.com, – gaia.cs.umass.edu and – surf.eurecom.fr
  • 6. Need of DNS… • Hostnames provide little information about the location within the Internet of the host. • A hostname such as surf.eurecom.fr, which ends with the country code .fr, tells us that the host is in France, but doesn't say much more. • Furthermore, because hostnames can consist of variable-length alpha-numeric characters, they would be difficult to process by routers. • For these reasons, hosts are also identified by so-called IP addresses.
  • 7. Need of DNS… • An IP address consists of four bytes and has a rigid hierarchical structure. • An IP address looks like 121.7.106.83, where each period separates one of the bytes expressed in decimal notation from 0 to 127. • An IP address is hierarchical because as we scan the address from left to right, we obtain more and more specific information about where the host is located in the Internet. (like a postal address) • An IP address is included in the header of each IP datagram, and Internet routers use this IP address to route datagram towards its destination
  • 8. Objectives • Discuss the Need of DNS • List the Services Provided by DNS • Demonstrate the working of DNS • Analyze the DNS Records • Apply the format of DNS Messages to prepare DNS message
  • 9. Services Provided by DNS • Among the two identities people prefer the more mnemonic hostname identifier, while routers prefer fixed-length, hierarchically- structured IP addresses. • Hence we need a directory service that translates hostnames to IP addresses. • This is the main task of the Internet's Domain Name System (DNS).
  • 10. Services Provided by DNS… The DNS is (i) a distributed database implemented in a hierarchy of name servers and (ii) an application-layer protocol that allows hosts and name servers to communicate in order to provide the translation service.
  • 11. Services Provided by DNS… • DNS is commonly employed by other application-layer protocols -- including HTTP, SMTP and FTP - to translate user supplied host names to IP addresses. • In order for the user's machine to be able to send an HTTP request message to the Web server www.someschool.edu, the user's machine must obtain the IP address of www.someschool.edu.
  • 12. Services Provided by DNS… • The same user machine runs the client-side of the DNS application. • The browser extracts the hostname, www.someschool.edu, from the URL and passes the hostname to the client-side of the DNS application. • As part of a DNS query message, the DNS client sends a query containing the hostname to a DNS server. • The DNS client eventually receives a reply, which includes the IP address for the hostname.
  • 13. Services Provided by DNS… • The browser then opens a TCP connection to the HTTP server process located at that IP address. • All IP datagrams sent to from the client to server as part of this connection will include this IP address in the destination address field of the datagrams. • The IP datagram(s) that encapsulate the HTTP request message use this IP address
  • 14. Services Provided by DNS… • DNS provides a few other important services in addition to translating hostnames to IP addresses: – Host aliasing: – Mail server aliasing: – Load Distribution:
  • 15. Host aliasing • A host with a complicated hostname can have one or more alias names. • For ex: relay1.west-coast.enterprise.com could have, say, two aliases such as enterprise.com and www.enterprise.com. • In this case, the hostname relay1.west- coast.enterprise.com is said to be canonical hostname. • DNS can be invoked by an application to obtain the canonical hostname for a supplied alias hostname as well as the IP address of the host.
  • 16. Mail server aliasing • The email address must be mnemonic like bob@hotmail.com. • The canonical hostname might be something like relay1.west-coast.hotmail.com • DNS can be invoked by a mail application to obtain the canonical hostname for a supplied alias hostname as well as the IP address of the host.
  • 17. Load Distribution • DNS is also being used to perform load distribution among replicated servers, such as replicated Web servers. • Ex: www.google.com directed to www.google.co.in • A set of IP addresses is associated with one canonical hostname.
  • 18. Objectives • Discuss the Need of DNS • List the Services Provided by DNS • Demonstrate the working of DNS • Analyze the DNS Records • Apply the format of DNS Messages to prepare DNS message
  • 19. Working of DNS • Centralized design • Problems of centralized design – A single point of failure. – Traffic volumes. – Distant centralized database. – Maintenance
  • 20. Working of DNS… • DNS uses a large number of name servers, organized in a hierarchical fashion and distributed around the world. • three types of name servers: – local name servers, – root name servers, – and authoritative name servers.
  • 21. Local name servers • The local name server is typically "close" to the client. • In the case of an institutional ISP, it may be on the same LAN as the client host. • For a residential ISP, the name server is typically separated from the client host by no more than a few routers.
  • 22. Root name servers: Client Local NS Root NS IP ADDRESS
  • 23. Authoritative name servers: Client Local NS Root NS IP ADDRESS Authoritative NS a name server is authoritative for a host if it always has a DNS record that translates the host's hostname to that host's IP address.
  • 25. For a given hostname, the root name server may only know the IP address of an intermediate name server that in turn knows the IP address of an authoritative name server for the hostname.
  • 27. DNS caching. • When a name server receives a DNS mapping for some hostname, it caches the mapping in local memory (disk or RAM) while passing the message along the name server chain.
  • 28. DNS Records • The name servers that together implement the DNS distributed database, store Resource Records (RR) for the hostname to IP address mappings. • A resource record is a four-tuple that contains the following fields: (Name, Value, Type, TTL)
  • 29. DNS Records • TTL is the time to live of the resource record; it determines the time at which a resource should be removed from a cache.
  • 30. DNS Records • The meaning of Name and Value depend on Type: Type Name Value A Host Name IP address for the hostname. NS domain Value is the hostname of a server that knows how to obtain the IP addresses for hosts in the domain. CNAME alias hostname Name canonical hostname for the alias hostname Name MX alias hostname Name. hostname of a mail server
  • 31. DNS Records... • Example Type Name Value A relay1.bar.foo.com 145.37.93.126 NS foo.com dns.foo.com CNAME foo.com relay1.bar.foo.com MX foo.com mail.bar.foo.com,