SlideShare a Scribd company logo
DNS : The internet’s directory service
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

PPTX
DNS Presentation
PDF
DNS (Domain Name System)
PPT
PPTX
HTTP & WWW
PPT
Routing protocols
PPTX
Domain name system (dns)
PPTX
Presentation on dns
PPTX
Domain name system
DNS Presentation
DNS (Domain Name System)
HTTP & WWW
Routing protocols
Domain name system (dns)
Presentation on dns
Domain name system

What's hot (20)

PPT
Domain name system
PPT
Sliding window protocol
PPT
Domain Name System
PDF
DNS - Domain Name System
PDF
Presentation on Domain Name System
PPT
PPT
Domain name system
ODP
web server
PPT
Application layer protocols
PPT
Domain Name System
PPT
Mobile Communication Broadcast System Jochen Schiller
PPTX
wireless cellular network
PPTX
Domain name system
PPT
slide on DNS
PPTX
DHCP & DNS
PPT
Web and http computer network
PPT
Dns ppt
DOC
How to configure dns server(2)
Domain name system
Sliding window protocol
Domain Name System
DNS - Domain Name System
Presentation on Domain Name System
Domain name system
web server
Application layer protocols
Domain Name System
Mobile Communication Broadcast System Jochen Schiller
wireless cellular network
Domain name system
slide on DNS
DHCP & DNS
Web and http computer network
Dns ppt
How to configure dns server(2)
Ad

Similar to DNS : The internet’s directory service (20)

PDF
Computer Networks Module 1 - part 2.pdf
PPT
08Mapping.ppt
PDF
Build Dynamic DNS server from scratch in C (Part1)
PDF
Lets talk dns
PPTX
Lec 11(DNs)
PDF
DIAPOSITIVAS DNS HTTP SMTP
PPTX
3_dns_overview.pptx
PPT
Computer Networking - Application Layer.ppt
PPTX
06 coms 525 tcpip - dhcp and dns
PPTX
c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
PPT
dns.04f.ppt
PPT
Common Network Services
PPT
13 dns
PPT
13-DNSksjsjsjndndndjsjjsjsjsjsjsjsjsjsjjs.ppt
PPTX
The Application Layer
PPTX
Unit 6 : Application Layer
PPTX
Dns 2
PPTX
Part 6 : Internet applications
PPTX
Week3 lec 2
PPTX
Domain name system presentation
Computer Networks Module 1 - part 2.pdf
08Mapping.ppt
Build Dynamic DNS server from scratch in C (Part1)
Lets talk dns
Lec 11(DNs)
DIAPOSITIVAS DNS HTTP SMTP
3_dns_overview.pptx
Computer Networking - Application Layer.ppt
06 coms 525 tcpip - dhcp and dns
c5c1db8d-8375-4f17-bf6a-56ea5342e58d.pptx
dns.04f.ppt
Common Network Services
13 dns
13-DNSksjsjsjndndndjsjjsjsjsjsjsjsjsjsjjs.ppt
The Application Layer
Unit 6 : Application Layer
Dns 2
Part 6 : Internet applications
Week3 lec 2
Domain name system presentation
Ad

Recently uploaded (20)

PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Classroom Observation Tools for Teachers
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
master seminar digital applications in india
PDF
Insiders guide to clinical Medicine.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
Business Ethics Teaching Materials for college
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Classroom Observation Tools for Teachers
O5-L3 Freight Transport Ops (International) V1.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
master seminar digital applications in india
Insiders guide to clinical Medicine.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharma ospi slides which help in ospi learning
human mycosis Human fungal infections are called human mycosis..pptx
Final Presentation General Medicine 03-08-2024.pptx
Pre independence Education in Inndia.pdf
Business Ethics Teaching Materials for college
Supply Chain Operations Speaking Notes -ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf

DNS : The internet’s directory service

  • 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