Introduction
Introduction
DNS system
Olaf M. Kolkman
Okolkman@ripe.net
204.152.187.11, +1-650-381-6003
February 2003
slideset 1 -3 Jump to first page
Naming History
1970’s ARPANET
Host.txt maintained by the SRI-NIC
pulled from a single machine
Problems
traffic
and load
Name collisions
Consistency
February 2003
slideset 1 -4 Jump to first page
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”
February 2003
slideset 1 -5 Jump to first page
DNS Features: Global
Distribution
Data is maintained locally, but retrievable globally
No single computer has all DNS data
February 2003
slideset 1 -6 Jump to first page
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
February 2003
slideset 1 -10 Jump to first page
DNS Concepts
Next slides are about concepts
February 2003
slideset 1 -11 Jump to first page
Concept: DNS Names 1
February 2003
slideset 1 -12 Jump to first page
Concept: DNS Names 2
How names appear in the DNS
Fully Qualified Domain Name (FQDN)
WWW.RIPE.NET.
labels separated by dots Note the trailing dot
Resource Record
www.ripe.net. … A 10.10.10.2
Address Resource
February 2003
slideset 1 -15 Jump to first page
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. •
com domain
net edu com
• • •
google
ripe.net domain ripe isi sun tislabs
•
moon •
www disi
net domain ftp • www
ws2 ws1
February 2003
slideset 1 -16 Jump to first page
Delegation
Administrators can create subdomains to group hosts
According to geography, organizational affiliation or any
other criterion
February 2003
slideset 1 -17 Jump to first page
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
•
net zone
net edu com
net domain •
google
• •
February 2003
slideset 1 -19 Jump to first page
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
slave
master
February 2003
slideset 1 -20 slave Jump to first page
Concept: Name Servers
recursive server
Recursive servers do the actual lookups; they ask
questions to the DNS on behalf of the clients.
February 2003
slideset 1 -21 Jump to first page
Concept: Resolvers
February 2003
slideset 1 -22 Jump to first page
Concept: Resolving
process & Cache
Question: www.ripe.net A
www.ripe.net A ? root-server
Ask net server @ X.gtld-servers.net (+ glue)
www.ripe.net A ?
Resolver Caching
192.168.5.10
forwarder www.ripe.net A ?
(recursive) gtld-server
Ask ripe server @ ns.ripe.net (+ glue)
192.168.5.10
ripe-server
February 2003
slideset 1 -23 Jump to first page
Concept: Resource
Records (more detail)
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
February 2003
slideset 1 -25 Jump to first page
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:
ripe.net. 7200 IN NS ns.ripe.net.
ripe.net. 7200 IN NS ns.eu.net.
February 2003
slideset 1 -26 Jump to first page
Resource Record: SOA
Timing parameter
February 2003
slideset 1 -27 Jump to first page
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
February 2003
slideset 1 -28 Jump to first page
Places where DNS data
lives
Changes in DNS do not propagate instantly!
Slave
Might take up to refresh
to get data from master
Master
Registry DB
Slave server
February 2003
slideset 1 -29 Jump to first page
To remember...
Multiple authoritative servers to distribute load and
risk:
Put your name servers apart from each other
February 2003
slideset 1 -31 Jump to first page