Sei sulla pagina 1di 22

 Addresses a r e u s ed to locate objects

 Names a r e easier to rememb er than numbers

 You would like to get to the a d d r e s s or other


objects using a name

 DNS provides a mapping from names to


r e s o u r c es of several types
 Domain name is a way to identify and locate computers connected to internet

 No two organizations can have same domain name

 A domain name always consists of two or more components separated by


periods called dots (.)
EXAMPLE: www.yahoo.co.in, www.facebook.com etc.

 Once a domain has been established subdomains can be created within the
domain
EXAMPLE: The domain for the large company could be “Vni.com” and within this
domain subdomains can be created for each of the company’s regional office.
Eg: Bombay.vni.com
 Last
name. subdomain. s eco n d - l ev e l domain. to p - l ev el
domain
EXAMPLE: vijay.Bombay.vni.com
IP address of
www.google.co
m
Top level domains a r e classified into 3 categories:

 Organizational or generic domains

 Geographical or country domains

 Reverse domains
 It consists of t h r ee character code which indicates the primary
function of the organization or their generic behavior
 Most commonly used top level domains are:

 .com for commercial organization eg www.yahoo.com


 .net for networking organizations e g www.zedge.net
 .gov for government organizations e g www.newjersey.gov
 .edu for educational organizations e g www.uducause.edu
 .org for non-commercial organizations eg www.eklavya.org
 .mil for military organizations e g www.dod.mil
 .int for international organizations e g www.itu.int
 It consists of two ch aracters which r e p r e s e n t s different
countries/regions all around the world
 T h e s e c o d es have b een standardized by International Standard
Organizational (ISO)
EXAMPLE:

 .in India
 .jp Japan
 .us United States
 .fr france
 .it Italy
 .cn China
 .au Australia
 Itis a special domain name in-addr.apra that is used
translate the IP ad d r es s to fully qualified domain name

EXAMPLE:
1.4.220.134 in-addr.apra will return sunc.scit.wlv. H ere
1.4.220.134 is the IP ad d r es s that is mapped to its name
sunc.scit.wlv.at.uk with the help of in-addr.apra domain.
 Each domain name has a corresponding IP a d d r e s s

 When the u s e r types the domain name in the a d d r e s s bar,


the corresponding IP ad d r es s is supplied. Such a translation
is possible with the help of s y s t e m called DNS (DOMAIN
NAME SYSTEM)

 DEFINITION:

“DOMAIN NAME SYSTEM is a collection of the d atab ases


that contain information about domain names and their
corresponding IP address.”
 When an application program n e e d s to communicate with
other computer, it n e e d s to translate the name and the
other computer into its IP address. T h e application
program that r eq u es t s the service then b eco mes the client
of DNS.

 It then s e n d s the request to DNS serv er. T h e s e r v e r looks


up the name and then returns co rrect IP address.

 A large number of DNS s e r v e r s may b e involved to g et the


right IP address. After receiving the co r r ect IP address, the
communication between two computers starts.
root DNS
server

1. When you type name www.yahoo.com into your


browser it asks local DNS server (at ISP’s end) 2
3 com DNS
for its IP address.
server
4
2. When local DNS server does not find the IP
address of given name, it forwards request to
root DNS server and again enquire about IP
address of it. local DNS server
At ISP End

3. The root DNS server replies “ I do not know 1


the IP address of www.yahoo.com but know the
IP address of the com DNS server”.
Yahoo.com DNS server
4. The local DNS then asks the com DNS server
for IP address DNS client requesting for
www.yahoo.com

14
root DNS
server

5. The com DNS server replies with same


answer it does not know the IP address of 2
3 com DNS
www.yahoo.com but know the IP address of
server
yahoo.com DNS server which is then return to 4
local DNS server.
5
6. The local DNS server then ask the yahoo.com
local DNS server
DNS server for IP address 6
At ISP End
7
7. It then replies with IP address corresponding 1 8
to www.yahoo.com which it has

8. The local DNS server then sends this IP Yahoo.com DNS server
address back to the client computer that send
the request DNS client requesting for
www.yahoo.com
 Data is maintained locally, but retrievable
globally

 No single computer has all DNS data

 DNS lookups can b e performed by any device

 Remote DNS data is locally catchable to


improve performance
 No limit to the size of the database

 One s e r v e r has over 20,000,000 names

 No limit to the number of queries

 24,000 queries p er second handled easily

 Queries distributed among masters, slaves, and


cach es
 Database can b e updated dynamically
 Add/delete/modify of any reco rd

 Modification of the master database triggers


replication
 Onlyma s t e r can b e dynamically updated
 Creates a single point of failure
 Data is replicated
 Data from master is copied to multiple slaves

 Clients can query


 Master s e r v e r
 Any of the copies at slave s e r v e r s

 Clients will typically query local c a c h e s

 DNS protocols can u s e either UDP or TCP


 If UDP, DNS protocol handles retransmission,
sequencing, etc.
 T h e database is always internally consistent
 Each version of a s u b s e t of the database (a zone)
has a serial number
 The serial number is incremented on each
database change

 Changes to the mas t er copy of the database a r e


replicated according to timing s e t by the zone
administrator

 Cached data expires according to timeout s e t by


zone administrator

Potrebbero piacerti anche