SlideShare a Scribd company logo
1 of 18
PROBLEM FACED…???
 Identify human - names & id
 Similarly host identified – host name
 Host name like www.yahoo.co.in , www.karunya.edu

 Fully alphanumeric characters – little information – location of host
 Difficult to process by router
 Host are identified by IP address

2
SERVICES PROVIDED BY DNS
 Prefer only alphanumeric characters only
 Routers Support –IP Address
 To solve Translate hostname to IP address

 done by DNS
 distributed database implemented – hierarchy of DNS Servers
 Application layer – host to query the database
 It runs UDP Port & Port 53
 Commonly used with Http , ftp, Smtp

3
HOW ACTUALLY WORKS…?
 https://www.karunya.edu/results through Brower
 First send Web server ,before it have to fetch IP Address of Host
name

 Client Side DNS application
 For that browser extract host name from URL & Send along with
DNS Application
 DNS Application send to hostname to DNS Server & Receive
Reply of IP Address
 Browser receives IP Address from DNS ,initiate Connection with
TCP to the HTTP Server -- Send Web server –fetch Web pages

4
HOST ALIASING

 Suppose rest1.relay.west-coast.enter-prise.com –canonical
hostname
 Aliases are enterpriase.com , www.enterprise.com

 Aliases are easier than original host name

5
LOAD DISTRIBUTION

 Ndtv.com – Breaking News
 Replicated of hostname at Different Servers & Different IP Address

6
STRUCTURE OF DNS

7
 To scale - large of no servers in hierarchical & distributed among
world
 Single Server Can’t do all mapping technique
 Three Classes of DNS Servers
(1) Root DNS Servers
(2) Top level Domain DNS Servers

(3) Authoritative DNS Server

8
ROOT DNS SERVERS
 13 root DNS Servers
 Mostly –North America
 Security & Reliability purpose act as replicated servers

TOP LEVEL DOMAIN SERVER
 .com, .org, .au, .edu, .gov
 Country domains - .in, .uk , .us,.pak
 Company Network Solution maintain – com top level domain
 Company Educause maintains – edu top level domain

9
AUTHORITATIVE DNS SERVER
 Organization host their host name with IP Address – Details are
stored
 Each organization can choose their own authoritative server

 For storing details – cost based

LOCAL DNS SERVER --- NAME SERVER
 Identify near local DNS Server via ISP
 ISP host with IP address of local DNS Server

10
11
DNS CACHING

 Request arrives with Host name for IP address ,Both – Stored in
local memory –DNS Server
 Same Request arrives – provides Desired IP Address
 Cache in formation –discarded – period of time

12
RESOURCE RECORD
(Name,Value,Type,TTL)

 TTL-time to live of resource record
Type-A , Name-host name, Value – IP Address
Type-NS, Name-Domain,Value –Host name of authoritative
DNS Server,know how to obtain IP Address

13
DNS MESSAGE FORMAT

14
 12 bytes in header part followed by four variable length fields
 Identification is set by client and returned by server. It match the
request and response
 QR is a 1-bit field: 0 means the message is a query, 1 means it's a
response.

15
 opcode is a 4-bit field. The normal value is 0 (a standard query). Other
values are 1 (an inverse query) and 2(server status request).
 AA is a 1-bit flag that means "authoritative answer.“
 TC is a 1-bit field that means "truncated.“With UDP this means the
total size of the reply exceeded 512 bytes, and only the first 512 bytes
of the reply was returned.

16
 RD is a 1-bit field that means "recursion desired." This bit can be set
in a query and is then returned in the response. This flag tells the
name server to handle the query itself, called a recursive query. If
the bit is not set, and the requested name server doesn't have an
authoritative answer
 RA is a 1-bit field that means "recursion available." This bit is set to
1 in the response if the server supports recursion.
 There is a 3-bit field that must be 0.

 rcode is a 4-bit field with the return code. The common values are 0
(no error) and 3 (name error).

17
THANKYOU

18

More Related Content

What's hot

Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingVimal Dewangan
 
Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Sri Prasanna
 
Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit   Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit rajisri2
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed ComputingRicha Singh
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution processkannanragothaman
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmpinki soni
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitivesStudent
 
Remote invocation
Remote invocationRemote invocation
Remote invocationishapadhy
 

What's hot (20)

Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)
 
AODV routing protocol
AODV routing protocolAODV routing protocol
AODV routing protocol
 
Database System Architectures
Database System ArchitecturesDatabase System Architectures
Database System Architectures
 
GO BACK N PROTOCOL
GO BACK N PROTOCOLGO BACK N PROTOCOL
GO BACK N PROTOCOL
 
Alpha beta
Alpha betaAlpha beta
Alpha beta
 
Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit   Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit
 
AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)AI Lecture 3 (solving problems by searching)
AI Lecture 3 (solving problems by searching)
 
Domain name system
Domain name systemDomain name system
Domain name system
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution process
 
Intro to DNS
Intro to DNSIntro to DNS
Intro to DNS
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithm
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitives
 
Remote invocation
Remote invocationRemote invocation
Remote invocation
 
Resource management
Resource managementResource management
Resource management
 
Hadoop YARN
Hadoop YARNHadoop YARN
Hadoop YARN
 
Transport layer
Transport layerTransport layer
Transport layer
 
DNS
DNSDNS
DNS
 

Similar to DNS: How Domain Name System Works to Resolve Hostnames to IP Addresses

Similar to DNS: How Domain Name System Works to Resolve Hostnames to IP Addresses (20)

c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptxc5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
 
Dns
DnsDns
Dns
 
Application layer
Application layerApplication layer
Application layer
 
The Application Layer
The Application LayerThe Application Layer
The Application Layer
 
Deploying and configuring dns service
Deploying and configuring dns serviceDeploying and configuring dns service
Deploying and configuring dns service
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Linux basics andng hosti
Linux basics andng hostiLinux basics andng hosti
Linux basics andng hosti
 
3 dns.pptx
3 dns.pptx3 dns.pptx
3 dns.pptx
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)
 
08Mapping.ppt
08Mapping.ppt08Mapping.ppt
08Mapping.ppt
 
Common Network Services
Common Network ServicesCommon Network Services
Common Network Services
 
D.N.S
D.N.SD.N.S
D.N.S
 
Domain name system presentation
Domain name system presentationDomain name system presentation
Domain name system presentation
 
Dns
DnsDns
Dns
 
DNS AND DDNS
DNS AND DDNSDNS AND DDNS
DNS AND DDNS
 
Dns And Snmp
Dns And SnmpDns And Snmp
Dns And Snmp
 
Presentation on Domain Name System
Presentation on Domain Name SystemPresentation on Domain Name System
Presentation on Domain Name System
 
06 coms 525 tcpip - dhcp and dns
06   coms 525 tcpip - dhcp and dns06   coms 525 tcpip - dhcp and dns
06 coms 525 tcpip - dhcp and dns
 
Internet dns introduction
Internet dns introductionInternet dns introduction
Internet dns introduction
 
Dns detail understanding
Dns detail understandingDns detail understanding
Dns detail understanding
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

DNS: How Domain Name System Works to Resolve Hostnames to IP Addresses

  • 1.
  • 2. PROBLEM FACED…???  Identify human - names & id  Similarly host identified – host name  Host name like www.yahoo.co.in , www.karunya.edu  Fully alphanumeric characters – little information – location of host  Difficult to process by router  Host are identified by IP address 2
  • 3. SERVICES PROVIDED BY DNS  Prefer only alphanumeric characters only  Routers Support –IP Address  To solve Translate hostname to IP address  done by DNS  distributed database implemented – hierarchy of DNS Servers  Application layer – host to query the database  It runs UDP Port & Port 53  Commonly used with Http , ftp, Smtp 3
  • 4. HOW ACTUALLY WORKS…?  https://www.karunya.edu/results through Brower  First send Web server ,before it have to fetch IP Address of Host name  Client Side DNS application  For that browser extract host name from URL & Send along with DNS Application  DNS Application send to hostname to DNS Server & Receive Reply of IP Address  Browser receives IP Address from DNS ,initiate Connection with TCP to the HTTP Server -- Send Web server –fetch Web pages 4
  • 5. HOST ALIASING  Suppose rest1.relay.west-coast.enter-prise.com –canonical hostname  Aliases are enterpriase.com , www.enterprise.com  Aliases are easier than original host name 5
  • 6. LOAD DISTRIBUTION  Ndtv.com – Breaking News  Replicated of hostname at Different Servers & Different IP Address 6
  • 8.  To scale - large of no servers in hierarchical & distributed among world  Single Server Can’t do all mapping technique  Three Classes of DNS Servers (1) Root DNS Servers (2) Top level Domain DNS Servers (3) Authoritative DNS Server 8
  • 9. ROOT DNS SERVERS  13 root DNS Servers  Mostly –North America  Security & Reliability purpose act as replicated servers TOP LEVEL DOMAIN SERVER  .com, .org, .au, .edu, .gov  Country domains - .in, .uk , .us,.pak  Company Network Solution maintain – com top level domain  Company Educause maintains – edu top level domain 9
  • 10. AUTHORITATIVE DNS SERVER  Organization host their host name with IP Address – Details are stored  Each organization can choose their own authoritative server  For storing details – cost based LOCAL DNS SERVER --- NAME SERVER  Identify near local DNS Server via ISP  ISP host with IP address of local DNS Server 10
  • 11. 11
  • 12. DNS CACHING  Request arrives with Host name for IP address ,Both – Stored in local memory –DNS Server  Same Request arrives – provides Desired IP Address  Cache in formation –discarded – period of time 12
  • 13. RESOURCE RECORD (Name,Value,Type,TTL)  TTL-time to live of resource record Type-A , Name-host name, Value – IP Address Type-NS, Name-Domain,Value –Host name of authoritative DNS Server,know how to obtain IP Address 13
  • 15.  12 bytes in header part followed by four variable length fields  Identification is set by client and returned by server. It match the request and response  QR is a 1-bit field: 0 means the message is a query, 1 means it's a response. 15
  • 16.  opcode is a 4-bit field. The normal value is 0 (a standard query). Other values are 1 (an inverse query) and 2(server status request).  AA is a 1-bit flag that means "authoritative answer.“  TC is a 1-bit field that means "truncated.“With UDP this means the total size of the reply exceeded 512 bytes, and only the first 512 bytes of the reply was returned. 16
  • 17.  RD is a 1-bit field that means "recursion desired." This bit can be set in a query and is then returned in the response. This flag tells the name server to handle the query itself, called a recursive query. If the bit is not set, and the requested name server doesn't have an authoritative answer  RA is a 1-bit field that means "recursion available." This bit is set to 1 in the response if the server supports recursion.  There is a 3-bit field that must be 0.  rcode is a 4-bit field with the return code. The common values are 0 (no error) and 3 (name error). 17