The Domain Name System (DNS)
The Domain Name System (DNS)
The Domain Name System (DNS)
(DNS)
Raj Jain
The Ohio State University
Columbus, OH 43210
Jain@CIS.Ohio-State.Edu
http://www.cis.ohio-state.edu/~jain/
❑ Naming hierarchy
❑ Server hierarchy
❑ Name resolution
❑ Other information in name servers
cnri
The Ohio State University Raj Jain
24-4
Name Hierarchy
❑ Unique domain suffix is assigned by Internet
Authority
❑ The domain administrator has complete control over
the domain
❑ No limit on number of subdomains or number of
levels
❑ computer.site.division.company.com
❑ computer.site.subdivision.division.company.com
❑ Domains within an organization do not have to be
uniform in number of subdomains or levels
The Ohio State University Raj Jain
24-5
Name Hierarchy (Cont)
❑ Name space is not related to physical interconnection,
e.g., math.ohio-state and cis.ohio-state could be on the
same floor or in different cities
❑ Geographical hierarchy is also allowed, e.g.,
cnri.reston.va.us
❑ A name could be a subdomain or an individual object
foobar foobar
soap soap
candy candy
❑ Fewer servers
Response
base base
Query
Query Query
Name Name
User
Response Resolver Response Server
Data-
Cache Cache base
The Ohio State University Raj Jain
24-13
Name Resolution (Cont)
Cache Cache
Name Name
Data- Server Query Server Data-
base base
Referral
Query
Response
Query Query
Name Name
User
Response Resolver Response Server
Data-
Cache Cache base
The Ohio State University Raj Jain
24-14
Name Resolution (Cont)
❑ Each computer has a name resolver routine, e.g.,
gethostbyname in UNIX
❑ Each resolver knows the name of a local DNS server
❑ Resolver sends a DNS request to the server
❑ DNS server either gives the answer, forwards the
request to another server, or gives a referral
❑ Referral = Next server to whom request should be sent