Domain Name System
Domain Name System
Domain Name System
Name
System
DNS Domain Name System
✗Huge file
✗Needs frequent copying to ALL hosts
✗Consistency
✗Always out-of-date
✗Name uniqueness
✗Single point of administration
Naming
Examples:
pub.ro
cs.pub.ro
Label
Each label can be up to 63 characters
Domain Name
domain, administration
of name space is
delegated to
organizations
Each organization can
delegate further
Domain name system
.
Each node in the DNS tree
represents a DNS name
Each branch below a node is a edu
DNS domain.
DNS domain can contain
hosts or other domains
(subdomains) virginia.edu
Header
Question Section
Answer Section
Authoritative Section
The domain name for a host is the sequence of labels that lead from
the host (leaf node in the naming tree) to the top of the worldwide
naming tree.
Contains resource records and sub-domains
Some resource records point to authoritative server for sub-
domains / zones
A domain is a subtree of the worldwide naming tree.
Distribution of Name Spaces
Zone
Root Server
Generic Domain
Country Domain
Inverse Domain
Top-level domains
Three types of top-level domains:
Organizational: 3-character code indicates the
function of the organization
Used primarily within the US
Examples: gov, mil, edu, org, com, net
Geographical: 2-character country or region code
Examples: ro, us, va, jp, de
Reverse domains: A special domain (in-addr.arpa)
used for IP address-to-name mapping
Label Description
Label Description
Resolver
Mapping Names to Addresses
Mapping Addresses to Names
Recursive Resolution
Iterative Resolution
Caching
DNS Distributed Database
There is one primary server for a
domain, and typically a number of
secondary servers containing replicated
databases. rpi.edu DNS server
rpi.edu
rpi.edu rpi.edu
DNSrpi.edu
DB
DNS DB DNS
DNSDBDB
Authoritative Replicas
There are three roles involved in DNS
Application
e.g. web browser
Caching Authoritative
Resolver
Nameserver Nameserver
RESOLVER
Takes request from application, formats it into UDP packet, sends to cache
CACHING NAMESERVER
Returns the answer if already known
Otherwise searches for an authoritative server which has the information
Caches the result for future queries
Also known as RECURSIVE nameserver
AUTHORITATIVE NAMESERVER
Contains the actual information put into the DNS by the domain owner
DNS Clients
A DNS client is called a resolver.
Header format