SlideShare uma empresa Scribd logo
1 de 31
February 2003slideset 1
Introduction to the DNS
system
Olaf M. Kolkman
Okolkman@ripe.net
Jump to first page
February 2003
slideset 1 -2
Purpose of naming
Addresses are used to locate objects
Names are easier to remember than numbers
You would like to get to the address or other objects using
a name
DNS provides a mapping from names to resources of
several types
Jump to first page
February 2003
slideset 1 -3
Names and addresses in
general
An address is how you get to an endpoint
Typically, hierarchical (for scaling):
950 Charter Street, Redwood City CA, 94063
204.152.187.11, +1-650-381-6003
A “name” is how an endpoint is referenced
Typically, no structurally significant hierarchy
“David”, “Tokyo”, “itu.int”
Jump to first page
February 2003
slideset 1 -4
Naming History
1970’s ARPANET
Host.txt maintained by the SRI-NIC
pulled from a single machine
Problems
traffic and load
Name collisions
Consistency
DNS reated in 1983 by Paul Mockapetris (RFCs 1034 and
1035), modified, updated, and enhanced by a myriad of
subsequent RFCs
Jump to first page
February 2003
slideset 1 -5
DNS
A lookup mechanism for translating objects into
other objects
A globally distributed, loosely coherent, scalable,
reliable, dynamic database
Comprised of three components
A “name space”
Servers making that name space available
Resolvers (clients) which query the servers
about the name space
Jump to first page
February 2003
slideset 1 -6
DNS Features: Global
Distribution
Data is maintained locally, but retrievable globally
No single computer has all DNS data
DNS lookups can be performed by any device
Remote DNS data is locally cachable to improve
performance
Jump to first page
February 2003
slideset 1 -7
DNS Features: Loose
Coherency
The database is always internally consistent
Each version of a subset of the database (a zone) has a
serial number
The serial number is incremented on each database change
Changes to the master copy of the database are replicated
according to timing set by the zone administrator
Cached data expires according to timeout set by zone
administrator
Jump to first page
February 2003
slideset 1 -8
DNS Features: Scalability
No limit to the size of the database
One server has over 20,000,000 names
Not a particularly good idea
No limit to the number of queries
24,000 queries per second handled easily
Queries distributed among masters, slaves, and
caches
Jump to first page
February 2003
slideset 1 -9
DNS Features: Reliability
Data is replicated
Data from master is copied to multiple slaves
Clients can query
Master server
Any of the copies at slave servers
Clients will typically query local caches
DNS protocols can use either UDP or TCP
If UDP, DNS protocol handles retransmission, sequencing,
etc.
Jump to first page
February 2003
slideset 1 -10
DNS Features: Dynamicity
Database can be updated dynamically
Add/delete/modify of any record
Modification of the master database triggers
replication
Only master can be dynamically updated
Creates a single point of failure
Jump to first page
February 2003
slideset 1 -11
DNS Concepts
Next slides are about concepts
After this set of slides you should understand
How the DNS is built
Why it is built the way it is
The terminology used throughout the course
Jump to first page
February 2003
slideset 1 -12
Concept: DNS Names 1
The namespace needs to be made hierarchical to
be able to scale.
The idea is to name objects based on
location (within country, set of organizations, set of
companies, etc)
unit within that location (company within set of
company, etc)
object within unit (name of person in company)
Jump to first page
February 2003
slideset 1 -13
Concept: DNS Names 2
How names appear in the DNS
Fully Qualified Domain Name (FQDN)
WWW.RIPE.NET.
labels separated by dots
DNS provides a mapping from FQDNs to
resources of several types
Names are used as a key when fetching data in
the DNS
Note the trailing dot
Jump to first page
February 2003
slideset 1 -14
The DNS maps names into data using Resource
Records.
More detail later
www.ripe.net. … A 10.10.10.2
Concept: Resource
Records
Address Resource
Resource Record
Jump to first page
February 2003
slideset 1 -15
Concept: DNS Names 3
Domain names can be
mapped to a tree.
New branches at the ‘dots’
No restriction to the amount
of branches.net com
ripe
www www
edu
isi tislabs
•
disi
ws1 ws2
• •
•
•
•
•
ftp
sun
google
moon
Jump to first page
February 2003
slideset 1 -16
Concept: Domains
Domains are “namespaces”
Everything below .com is in the com domain.
Everything below ripe.net is in the ripe.net domain
and in the net domain.
net domain
com domai
ripe.net domain
net com
ripe
www
www
edu
isi tislabs
•disi
ws1ws2
•
• •
•
•
•
ftp
sun
moon
google
Jump to first page
February 2003
slideset 1 -17
Delegation
Administrators can create subdomains to group hosts
According to geography, organizational affiliation or any
other criterion
An administrator of a domain can delegate responsibility
for managing a subdomain to someone else
But this isn’t required
The parent domain retains links to the delegated
subdomain
The parent domain “remembers” who it delegated the
subdomain to
Jump to first page
February 2003
slideset 1 -18
net domain
Concept: Zones and
Delegations
Zones are “administrative spaces”
Zone administrators are responsible for portion of
a domain’s name space
Authority is delegated from a parent and to a child
ripe.net zone
net zone
disi.ripe.net zone
net com
ripe
www
www
edu
isi tislabs
•disi
ws1ws2
•
• •
•
•
•
ftp
sun
moon
google
Jump to first page
February 2003
slideset 1 -19
Concept: Name Servers
Name servers answer ‘DNS’ questions.
Several types of name servers
Authoritative servers
master (primary)
slave (secondary)
(Caching) recursive servers
also caching forwarders
Mixture of functionality
Jump to first page
February 2003
slideset 1 -20
Concept: Name Servers
authoritative name server
Give authoritative answers for one or more zones.
The master server normally loads the data from a
zone file
A slave server normally replicates the data from
the master via a zone transfer
master
slave
slave
Jump to first page
February 2003
slideset 1 -21
Concept: Name Servers
recursive server
Recursive servers do the actual lookups; they ask
questions to the DNS on behalf of the clients.
Answers are obtained from authoritative servers
but the answers forwarded to the clients are
marked as not authoritative
Answers are stored for future reference in the
cache
Jump to first page
February 2003
slideset 1 -22
Concept: Resolvers
Resolvers ask the questions to the DNS system
on behalf of the application.
Normally implemented in a system library (e.g,
libc)
gethostbyname(char *name);
gethostbyaddr(char *addr, int len,
type);
Jump to first page
February 2003
slideset 1 -23
Concept: Resolving
process & Cache
Resolver
Question: www.ripe.net A
www.ripe.net A ?
Caching
forwarder
(recursive)
root-serverwww.ripe.net A ?
Ask net server @ X.gtld-servers.net (+ glue)
gtld-server
www.ripe.net A ?
Ask ripe server @ ns.ripe.net (+ glue)
ripe-server
www.ripe.net A ?
192.168.5.10
192.168.5.10
Add to cache
Jump to first page
February 2003
slideset 1 -24
Resource records consist of it’s name, it’s TTL, it’s
class, it’s type and it’s RDATA
TTL is a timing parameter
IN class is widest used
There are multiple types of RR records
Everything behind the type identifier is called rdata
Concept: Resource
Records (more detail)
Label ttl
class
type
rdata
www.ripe.net. 3600 IN A 10.10.10.2
Jump to first page
February 2003
slideset 1 -25
Label ttl class type rdata
ripe.net. 7200 IN SOA ns.ripe.net. olaf.ripe.net. (
2001061501 ; Serial
43200 ; Refresh 12 hours
14400 ; Retry 4 hours
345600 ; Expire 4 days
7200 ; Negative cache 2 hours
)
ripe.net. 7200 IN NS ns.ripe.net.
ripe.net. 7200 IN NS ns.eu.net.
pinkje.ripe.net. 3600 IN A 193.0.1.162
host25.ripe.net. 2600 IN A 193.0.3.25
Example: RRs in a zone
file
Jump to first page
February 2003
slideset 1 -26
Resource Record: SOA
and NS
The SOA and NS records are used to provide
information about the DNS itself.
The NS indicates where information about a given
zone can be found:
The SOA record provides information about the
start of authority, i.e. the top of the zone, also
called the APEX.
ripe.net. 7200 IN NS ns.ripe.net.
ripe.net. 7200 IN NS ns.eu.net.
Jump to first page
February 2003
slideset 1 -27
Resource Record: SOA
Timing parameter
Master server Contact address
Version number
net. 3600 IN SOA A.GTLD-SERVERS.net. nstld.verisign-grs.com. (
2002021301 ; serial
30M ; refresh
15M ; retry
1W ; expiry
1D ) ; neg. answ. ttl
Jump to first page
February 2003
slideset 1 -28
Concept: TTL and other
Timers
TTL is a timer used in caches
An indication for how long the data may be reused
Data that is expected to be ‘stable’ can have high
TTLs
SOA timers are used for maintaining consistency
between primary and secondary servers
Jump to first page
February 2003
slideset 1 -29
Places where DNS data
lives
Registry DB
Master
Slave server
Slave
Cache server
Changes in DNS do not propagate instantly!
Not going to net if TTL>0
Might take up to refresh
to get data from master
Upload of zone
data is local policy
Jump to first page
February 2003
slideset 1 -30
To remember...
Multiple authoritative servers to distribute load and
risk:
Put your name servers apart from each other
Caches to reduce load to authoritative servers and
reduce response times
SOA timers and TTL need to be tuned to needs of
zone. Stable data: higher numbers
Jump to first page
February 2003
slideset 1 -31
What have we learned
What are we about to learn
We learned about the architecture:
resolvers,
caching forwarders,
authoritative servers,
timing parameters

Mais conteúdo relacionado

Mais procurados

Dns protocol design attacks and security
Dns protocol design attacks and securityDns protocol design attacks and security
Dns protocol design attacks and securityMichael Earls
 
DNS Security
DNS SecurityDNS Security
DNS Securityinbroker
 
dns-sec-4-slides
dns-sec-4-slidesdns-sec-4-slides
dns-sec-4-slideskj teoh
 
Dns Configuration
Dns ConfigurationDns Configuration
Dns ConfigurationLohit Ahuja
 
Understanding the DNS & DNSSEC
Understanding the DNS & DNSSECUnderstanding the DNS & DNSSEC
Understanding the DNS & DNSSECICANN
 
DNSSEC: The Antidote to DNS Cache Poisoning and Other DNS Attacks
DNSSEC: The Antidote to DNS Cache Poisoning and Other DNS AttacksDNSSEC: The Antidote to DNS Cache Poisoning and Other DNS Attacks
DNSSEC: The Antidote to DNS Cache Poisoning and Other DNS AttacksFindWhitePapers
 
Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)
Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)
Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)Dan York
 
Linux System Administration - DNS
Linux System Administration - DNSLinux System Administration - DNS
Linux System Administration - DNSSreenatha Reddy K R
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamMyNOG
 
4Developers: Dns vs webapp
4Developers: Dns vs webapp4Developers: Dns vs webapp
4Developers: Dns vs webappPROIDEA
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDCJalpa Soni
 

Mais procurados (20)

Dns protocol design attacks and security
Dns protocol design attacks and securityDns protocol design attacks and security
Dns protocol design attacks and security
 
DNS Security
DNS SecurityDNS Security
DNS Security
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)
 
A study of our DNS full-resolvers
A study of our DNS full-resolversA study of our DNS full-resolvers
A study of our DNS full-resolvers
 
Configuring Dns
Configuring DnsConfiguring Dns
Configuring Dns
 
dns-sec-4-slides
dns-sec-4-slidesdns-sec-4-slides
dns-sec-4-slides
 
Dns Configuration
Dns ConfigurationDns Configuration
Dns Configuration
 
Understanding the DNS & DNSSEC
Understanding the DNS & DNSSECUnderstanding the DNS & DNSSEC
Understanding the DNS & DNSSEC
 
DNSSEC: The Antidote to DNS Cache Poisoning and Other DNS Attacks
DNSSEC: The Antidote to DNS Cache Poisoning and Other DNS AttacksDNSSEC: The Antidote to DNS Cache Poisoning and Other DNS Attacks
DNSSEC: The Antidote to DNS Cache Poisoning and Other DNS Attacks
 
Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)
Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)
Deploying New DNSSEC Algorithms (IEPG@IETF93 - July 2015)
 
7 technical-dns-workshop-day3
7 technical-dns-workshop-day37 technical-dns-workshop-day3
7 technical-dns-workshop-day3
 
8 technical-dns-workshop-day4
8 technical-dns-workshop-day48 technical-dns-workshop-day4
8 technical-dns-workshop-day4
 
Linux System Administration - DNS
Linux System Administration - DNSLinux System Administration - DNS
Linux System Administration - DNS
 
1 technical-dns-workshop-day1
1 technical-dns-workshop-day11 technical-dns-workshop-day1
1 technical-dns-workshop-day1
 
DDNS
DDNSDDNS
DDNS
 
alfonsin web
alfonsin webalfonsin web
alfonsin web
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul Islam
 
4Developers: Dns vs webapp
4Developers: Dns vs webapp4Developers: Dns vs webapp
4Developers: Dns vs webapp
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
 
2 technical-dns-workshop-day1
2 technical-dns-workshop-day12 technical-dns-workshop-day1
2 technical-dns-workshop-day1
 

Destaque

Exploring the Use of DNS as a Search Engine for the Web of Things
Exploring the Use of DNS as a Search Engine for the Web of ThingsExploring the Use of DNS as a Search Engine for the Web of Things
Exploring the Use of DNS as a Search Engine for the Web of ThingsAndreas Kamilaris
 
A brief history of seattle startups
A brief history of seattle startupsA brief history of seattle startups
A brief history of seattle startupsMarcelo Calbucci
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)Thiago Sinésio
 
Fundamentos técnicos de internet
Fundamentos técnicos de internetFundamentos técnicos de internet
Fundamentos técnicos de internetDavid Cava
 
Web 2.0 Introduction
Web 2.0 IntroductionWeb 2.0 Introduction
Web 2.0 IntroductionSteven Tuck
 
HTML & JavaScript Introduction
HTML & JavaScript IntroductionHTML & JavaScript Introduction
HTML & JavaScript IntroductionAlexe Bogdan
 
Html,javascript & css
Html,javascript & cssHtml,javascript & css
Html,javascript & cssPredhin Sapru
 
An introduction to Web 2.0: The User Role
An introduction to Web 2.0: The User RoleAn introduction to Web 2.0: The User Role
An introduction to Web 2.0: The User RoleKiko Llaneras
 
Introduction to Web 2.0
Introduction to Web 2.0Introduction to Web 2.0
Introduction to Web 2.0Jane Hart
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configurationSanguine_Eva
 
Web of Science: REST or SOAP?
Web of Science: REST or SOAP?Web of Science: REST or SOAP?
Web of Science: REST or SOAP?Duncan Hull
 

Destaque (20)

Exploring the Use of DNS as a Search Engine for the Web of Things
Exploring the Use of DNS as a Search Engine for the Web of ThingsExploring the Use of DNS as a Search Engine for the Web of Things
Exploring the Use of DNS as a Search Engine for the Web of Things
 
A brief history of seattle startups
A brief history of seattle startupsA brief history of seattle startups
A brief history of seattle startups
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)
 
Seo2 india devang barot - google public dns
Seo2 india   devang barot - google public dnsSeo2 india   devang barot - google public dns
Seo2 india devang barot - google public dns
 
PACE-IT: Intro to the DNS Service - N10 006
PACE-IT: Intro to the DNS Service - N10 006 PACE-IT: Intro to the DNS Service - N10 006
PACE-IT: Intro to the DNS Service - N10 006
 
Treinamento de Feedback
Treinamento de FeedbackTreinamento de Feedback
Treinamento de Feedback
 
Fundamentos técnicos de internet
Fundamentos técnicos de internetFundamentos técnicos de internet
Fundamentos técnicos de internet
 
Fundamentos técnicos de internet
Fundamentos técnicos de internetFundamentos técnicos de internet
Fundamentos técnicos de internet
 
Putting SOAP to REST
Putting SOAP to RESTPutting SOAP to REST
Putting SOAP to REST
 
Fundamentos técnicos de internet
Fundamentos técnicos de internetFundamentos técnicos de internet
Fundamentos técnicos de internet
 
Web 2.0 Introduction
Web 2.0 IntroductionWeb 2.0 Introduction
Web 2.0 Introduction
 
HTML & JavaScript Introduction
HTML & JavaScript IntroductionHTML & JavaScript Introduction
HTML & JavaScript Introduction
 
Html,javascript & css
Html,javascript & cssHtml,javascript & css
Html,javascript & css
 
DNS & HTTP overview
DNS & HTTP overviewDNS & HTTP overview
DNS & HTTP overview
 
An introduction to Web 2.0: The User Role
An introduction to Web 2.0: The User RoleAn introduction to Web 2.0: The User Role
An introduction to Web 2.0: The User Role
 
Web basics
Web basicsWeb basics
Web basics
 
Introduction to Web 2.0
Introduction to Web 2.0Introduction to Web 2.0
Introduction to Web 2.0
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
 
Web of Science: REST or SOAP?
Web of Science: REST or SOAP?Web of Science: REST or SOAP?
Web of Science: REST or SOAP?
 
TCP/IP and DNS
TCP/IP and DNSTCP/IP and DNS
TCP/IP and DNS
 

Semelhante a Dns introduction (20)

Introduction.ppt
Introduction.pptIntroduction.ppt
Introduction.ppt
 
Introduction.ppt
Introduction.pptIntroduction.ppt
Introduction.ppt
 
DNS-overview.pptx
DNS-overview.pptxDNS-overview.pptx
DNS-overview.pptx
 
What is dns
What is dnsWhat is dns
What is dns
 
CSE dns ppt.pptx
CSE dns ppt.pptxCSE dns ppt.pptx
CSE dns ppt.pptx
 
Domain Name System ppt
Domain Name System pptDomain Name System ppt
Domain Name System ppt
 
Domain Name System(ppt)
Domain Name System(ppt)Domain Name System(ppt)
Domain Name System(ppt)
 
Network and System Administration chapter 2
Network and System Administration chapter 2Network and System Administration chapter 2
Network and System Administration chapter 2
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
 
Wintel
WintelWintel
Wintel
 
Dns
DnsDns
Dns
 
Chapter 9 names
Chapter 9 namesChapter 9 names
Chapter 9 names
 
Meeting 4 DNS
Meeting 4   DNSMeeting 4   DNS
Meeting 4 DNS
 
Dns1111111111
Dns1111111111Dns1111111111
Dns1111111111
 
Dns
DnsDns
Dns
 
02 configuring and-troubleshooting-dns
02 configuring and-troubleshooting-dns02 configuring and-troubleshooting-dns
02 configuring and-troubleshooting-dns
 
008094493.pdf
008094493.pdf008094493.pdf
008094493.pdf
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Dns2
Dns2Dns2
Dns2
 
Dns ppt
Dns pptDns ppt
Dns ppt
 

Mais de sunil kumar

Best Ways to loose weight by Keto diet Deliciously
Best Ways to loose weight by Keto diet Deliciously Best Ways to loose weight by Keto diet Deliciously
Best Ways to loose weight by Keto diet Deliciously sunil kumar
 
Best ways to loose weight Naturaly
Best ways to loose weight NaturalyBest ways to loose weight Naturaly
Best ways to loose weight Naturalysunil kumar
 
how to invest in shares with only ₹ 5000
how to invest in shares with only ₹ 5000how to invest in shares with only ₹ 5000
how to invest in shares with only ₹ 5000sunil kumar
 
Comp tia network_n10-005
Comp tia network_n10-005Comp tia network_n10-005
Comp tia network_n10-005sunil kumar
 
Comp tia a_220-802_objectives
Comp tia a_220-802_objectivesComp tia a_220-802_objectives
Comp tia a_220-802_objectivessunil kumar
 
Comp tia a_220-801_objectives
Comp tia a_220-801_objectivesComp tia a_220-801_objectives
Comp tia a_220-801_objectivessunil kumar
 
Types of optical device
Types of optical deviceTypes of optical device
Types of optical devicesunil kumar
 
Classification of computers
Classification of computersClassification of computers
Classification of computerssunil kumar
 
Not bridge south bridge archexture
Not bridge  south bridge archextureNot bridge  south bridge archexture
Not bridge south bridge archexturesunil kumar
 
4 owasp egypt_12_4_2014_ebrahim_hegazy
4 owasp egypt_12_4_2014_ebrahim_hegazy4 owasp egypt_12_4_2014_ebrahim_hegazy
4 owasp egypt_12_4_2014_ebrahim_hegazysunil kumar
 
Overview presentation
Overview presentationOverview presentation
Overview presentationsunil kumar
 

Mais de sunil kumar (20)

Best Ways to loose weight by Keto diet Deliciously
Best Ways to loose weight by Keto diet Deliciously Best Ways to loose weight by Keto diet Deliciously
Best Ways to loose weight by Keto diet Deliciously
 
Best ways to loose weight Naturaly
Best ways to loose weight NaturalyBest ways to loose weight Naturaly
Best ways to loose weight Naturaly
 
Gam ks egnfk
Gam ks egnfkGam ks egnfk
Gam ks egnfk
 
how to invest in shares with only ₹ 5000
how to invest in shares with only ₹ 5000how to invest in shares with only ₹ 5000
how to invest in shares with only ₹ 5000
 
Ping
PingPing
Ping
 
Comp tia network_n10-005
Comp tia network_n10-005Comp tia network_n10-005
Comp tia network_n10-005
 
Comp tia a_220-802_objectives
Comp tia a_220-802_objectivesComp tia a_220-802_objectives
Comp tia a_220-802_objectives
 
Comp tia a_220-801_objectives
Comp tia a_220-801_objectivesComp tia a_220-801_objectives
Comp tia a_220-801_objectives
 
App b
App bApp b
App b
 
Smps
SmpsSmps
Smps
 
Types of optical device
Types of optical deviceTypes of optical device
Types of optical device
 
Memoryhierarchy
MemoryhierarchyMemoryhierarchy
Memoryhierarchy
 
Wi fi copy
Wi fi   copyWi fi   copy
Wi fi copy
 
Classification of computers
Classification of computersClassification of computers
Classification of computers
 
Osi model
Osi modelOsi model
Osi model
 
Not bridge south bridge archexture
Not bridge  south bridge archextureNot bridge  south bridge archexture
Not bridge south bridge archexture
 
Ethernet copy
Ethernet   copyEthernet   copy
Ethernet copy
 
4 owasp egypt_12_4_2014_ebrahim_hegazy
4 owasp egypt_12_4_2014_ebrahim_hegazy4 owasp egypt_12_4_2014_ebrahim_hegazy
4 owasp egypt_12_4_2014_ebrahim_hegazy
 
Adeex
AdeexAdeex
Adeex
 
Overview presentation
Overview presentationOverview presentation
Overview presentation
 

Dns introduction

  • 1. February 2003slideset 1 Introduction to the DNS system Olaf M. Kolkman Okolkman@ripe.net
  • 2. Jump to first page February 2003 slideset 1 -2 Purpose of naming Addresses are used to locate objects Names are easier to remember than numbers You would like to get to the address or other objects using a name DNS provides a mapping from names to resources of several types
  • 3. Jump to first page February 2003 slideset 1 -3 Names and addresses in general An address is how you get to an endpoint Typically, hierarchical (for scaling): 950 Charter Street, Redwood City CA, 94063 204.152.187.11, +1-650-381-6003 A “name” is how an endpoint is referenced Typically, no structurally significant hierarchy “David”, “Tokyo”, “itu.int”
  • 4. Jump to first page February 2003 slideset 1 -4 Naming History 1970’s ARPANET Host.txt maintained by the SRI-NIC pulled from a single machine Problems traffic and load Name collisions Consistency DNS reated in 1983 by Paul Mockapetris (RFCs 1034 and 1035), modified, updated, and enhanced by a myriad of subsequent RFCs
  • 5. Jump to first page February 2003 slideset 1 -5 DNS A lookup mechanism for translating objects into other objects A globally distributed, loosely coherent, scalable, reliable, dynamic database Comprised of three components A “name space” Servers making that name space available Resolvers (clients) which query the servers about the name space
  • 6. Jump to first page February 2003 slideset 1 -6 DNS Features: Global Distribution Data is maintained locally, but retrievable globally No single computer has all DNS data DNS lookups can be performed by any device Remote DNS data is locally cachable to improve performance
  • 7. Jump to first page February 2003 slideset 1 -7 DNS Features: Loose Coherency The database is always internally consistent Each version of a subset of the database (a zone) has a serial number The serial number is incremented on each database change Changes to the master copy of the database are replicated according to timing set by the zone administrator Cached data expires according to timeout set by zone administrator
  • 8. Jump to first page February 2003 slideset 1 -8 DNS Features: Scalability No limit to the size of the database One server has over 20,000,000 names Not a particularly good idea No limit to the number of queries 24,000 queries per second handled easily Queries distributed among masters, slaves, and caches
  • 9. Jump to first page February 2003 slideset 1 -9 DNS Features: Reliability Data is replicated Data from master is copied to multiple slaves Clients can query Master server Any of the copies at slave servers Clients will typically query local caches DNS protocols can use either UDP or TCP If UDP, DNS protocol handles retransmission, sequencing, etc.
  • 10. Jump to first page February 2003 slideset 1 -10 DNS Features: Dynamicity Database can be updated dynamically Add/delete/modify of any record Modification of the master database triggers replication Only master can be dynamically updated Creates a single point of failure
  • 11. Jump to first page February 2003 slideset 1 -11 DNS Concepts Next slides are about concepts After this set of slides you should understand How the DNS is built Why it is built the way it is The terminology used throughout the course
  • 12. Jump to first page February 2003 slideset 1 -12 Concept: DNS Names 1 The namespace needs to be made hierarchical to be able to scale. The idea is to name objects based on location (within country, set of organizations, set of companies, etc) unit within that location (company within set of company, etc) object within unit (name of person in company)
  • 13. Jump to first page February 2003 slideset 1 -13 Concept: DNS Names 2 How names appear in the DNS Fully Qualified Domain Name (FQDN) WWW.RIPE.NET. labels separated by dots DNS provides a mapping from FQDNs to resources of several types Names are used as a key when fetching data in the DNS Note the trailing dot
  • 14. Jump to first page February 2003 slideset 1 -14 The DNS maps names into data using Resource Records. More detail later www.ripe.net. … A 10.10.10.2 Concept: Resource Records Address Resource Resource Record
  • 15. Jump to first page February 2003 slideset 1 -15 Concept: DNS Names 3 Domain names can be mapped to a tree. New branches at the ‘dots’ No restriction to the amount of branches.net com ripe www www edu isi tislabs • disi ws1 ws2 • • • • • • ftp sun google moon
  • 16. Jump to first page February 2003 slideset 1 -16 Concept: Domains Domains are “namespaces” Everything below .com is in the com domain. Everything below ripe.net is in the ripe.net domain and in the net domain. net domain com domai ripe.net domain net com ripe www www edu isi tislabs •disi ws1ws2 • • • • • • ftp sun moon google
  • 17. Jump to first page February 2003 slideset 1 -17 Delegation Administrators can create subdomains to group hosts According to geography, organizational affiliation or any other criterion An administrator of a domain can delegate responsibility for managing a subdomain to someone else But this isn’t required The parent domain retains links to the delegated subdomain The parent domain “remembers” who it delegated the subdomain to
  • 18. Jump to first page February 2003 slideset 1 -18 net domain Concept: Zones and Delegations Zones are “administrative spaces” Zone administrators are responsible for portion of a domain’s name space Authority is delegated from a parent and to a child ripe.net zone net zone disi.ripe.net zone net com ripe www www edu isi tislabs •disi ws1ws2 • • • • • • ftp sun moon google
  • 19. Jump to first page February 2003 slideset 1 -19 Concept: Name Servers Name servers answer ‘DNS’ questions. Several types of name servers Authoritative servers master (primary) slave (secondary) (Caching) recursive servers also caching forwarders Mixture of functionality
  • 20. Jump to first page February 2003 slideset 1 -20 Concept: Name Servers authoritative name server Give authoritative answers for one or more zones. The master server normally loads the data from a zone file A slave server normally replicates the data from the master via a zone transfer master slave slave
  • 21. Jump to first page February 2003 slideset 1 -21 Concept: Name Servers recursive server Recursive servers do the actual lookups; they ask questions to the DNS on behalf of the clients. Answers are obtained from authoritative servers but the answers forwarded to the clients are marked as not authoritative Answers are stored for future reference in the cache
  • 22. Jump to first page February 2003 slideset 1 -22 Concept: Resolvers Resolvers ask the questions to the DNS system on behalf of the application. Normally implemented in a system library (e.g, libc) gethostbyname(char *name); gethostbyaddr(char *addr, int len, type);
  • 23. Jump to first page February 2003 slideset 1 -23 Concept: Resolving process & Cache Resolver Question: www.ripe.net A www.ripe.net A ? Caching forwarder (recursive) root-serverwww.ripe.net A ? Ask net server @ X.gtld-servers.net (+ glue) gtld-server www.ripe.net A ? Ask ripe server @ ns.ripe.net (+ glue) ripe-server www.ripe.net A ? 192.168.5.10 192.168.5.10 Add to cache
  • 24. Jump to first page February 2003 slideset 1 -24 Resource records consist of it’s name, it’s TTL, it’s class, it’s type and it’s RDATA TTL is a timing parameter IN class is widest used There are multiple types of RR records Everything behind the type identifier is called rdata Concept: Resource Records (more detail) Label ttl class type rdata www.ripe.net. 3600 IN A 10.10.10.2
  • 25. Jump to first page February 2003 slideset 1 -25 Label ttl class type rdata ripe.net. 7200 IN SOA ns.ripe.net. olaf.ripe.net. ( 2001061501 ; Serial 43200 ; Refresh 12 hours 14400 ; Retry 4 hours 345600 ; Expire 4 days 7200 ; Negative cache 2 hours ) ripe.net. 7200 IN NS ns.ripe.net. ripe.net. 7200 IN NS ns.eu.net. pinkje.ripe.net. 3600 IN A 193.0.1.162 host25.ripe.net. 2600 IN A 193.0.3.25 Example: RRs in a zone file
  • 26. Jump to first page February 2003 slideset 1 -26 Resource Record: SOA and NS The SOA and NS records are used to provide information about the DNS itself. The NS indicates where information about a given zone can be found: The SOA record provides information about the start of authority, i.e. the top of the zone, also called the APEX. ripe.net. 7200 IN NS ns.ripe.net. ripe.net. 7200 IN NS ns.eu.net.
  • 27. Jump to first page February 2003 slideset 1 -27 Resource Record: SOA Timing parameter Master server Contact address Version number net. 3600 IN SOA A.GTLD-SERVERS.net. nstld.verisign-grs.com. ( 2002021301 ; serial 30M ; refresh 15M ; retry 1W ; expiry 1D ) ; neg. answ. ttl
  • 28. Jump to first page February 2003 slideset 1 -28 Concept: TTL and other Timers TTL is a timer used in caches An indication for how long the data may be reused Data that is expected to be ‘stable’ can have high TTLs SOA timers are used for maintaining consistency between primary and secondary servers
  • 29. Jump to first page February 2003 slideset 1 -29 Places where DNS data lives Registry DB Master Slave server Slave Cache server Changes in DNS do not propagate instantly! Not going to net if TTL>0 Might take up to refresh to get data from master Upload of zone data is local policy
  • 30. Jump to first page February 2003 slideset 1 -30 To remember... Multiple authoritative servers to distribute load and risk: Put your name servers apart from each other Caches to reduce load to authoritative servers and reduce response times SOA timers and TTL need to be tuned to needs of zone. Stable data: higher numbers
  • 31. Jump to first page February 2003 slideset 1 -31 What have we learned What are we about to learn We learned about the architecture: resolvers, caching forwarders, authoritative servers, timing parameters

Notas do Editor

  1. © 2002 These slides where produced by Bill Manning (ISI), Ed Lewis (NAI labs) and Olaf M. Kolkman (RIPE NCC).
  2. Also see ‘DNS and BIND’ Chapter 1