Presented By:
   Diwaker pant
ME (ECE) Regular
   DNS- Definition
   Name Space
    ◦ Flat Name Space
    ◦ Hierarchical Name Space
   Domain Name Space
    ◦ FULLY QUALIFIED DOMAIN NAME(FQDN)
    ◦ PARTIALLY QUALIFIED DOMAIN NAME(PQDN)
   Distribution of Name Space
    ◦ Hierarchy of Name servers
    ◦ Zone and Domains
    ◦ Root, Primary and Secondary Servers
   DNS in Internet
    ◦ Generic , Country and Inverse Domain
   Resolution
   DNS messages



                             DNS   By Diwaker Pant   October 9, 2012   2
   To identify an entity, TCP/IP uses IP addresses which
    uniquely identifies connection of host to internet.

   We prefer to use names instead of numeric addresses .

   So we need a system that can map a name to a numeric
    address and vice versa. This is called DOMAIN NAME
    SYSTEM



                                   DNS   By Diwaker Pant   October 9, 2012   3
   When internet was small, mapping was done using
    HOST FILE which was stored on every host.

   Host file had only two columns: name and address.

   But now a days whole information is divided into
    smaller parts and each part is stored in different
    computer. This is called DNS.




                                 DNS   By Diwaker Pant   October 9, 2012   4
   The process of mapping a unique name with the unique
    IP address.

   FLAT NAME SPACE –

    A name is assigned to an address and name is a
    sequence of characters without structure.

   It can not be used in large system such as Internet.




                                     DNS   By Diwaker Pant   October 9, 2012   5
   HIERARCHICAL NAME SPACE-
    Each name is made of several parts.
   The first part can define the nature of organization.
   Second part can define the name and third can define
    the departments in organization.

   For example
o   Smart.pu.edu
o   Smart.nitttr.edu
o   smart.unix.com

                                 DNS   By Diwaker Pant   October 9, 2012   6
   To have a hierarchical name space, a DOMAIN NAME
    SPACE was designed.

   In this design the names are defined in an inverted tree
    structure with the root at top.

   The tree can have only 128 levels i.e. level 0(root) to
    level 127.

   Tree consists of nodes and each node has a LABEL.


                                   DNS   By Diwaker Pant   October 9, 2012   7
 Label is a string with a max. of 63 characters.
 The root label is a null string.
 Siblings have different labels to maintain uniqueness.

                                    DNS   By Diwaker Pant   October 9, 2012   8
   Each node in the tree has a domain name.

   Full domain name is sequence of labels separated by
    dots(.)

   Domain name is read from node up to root.

   Always ends in a null label i.e. last character is a dot.



                                   DNS   By Diwaker Pant   October 9, 2012   9
DNS   By Diwaker Pant   October 9, 2012   10
    FULLY QUALIFIED DOMAIN NAME(FQDN)
     It contains the full name of host.
     A label is terminated by a null string.

     PARTIALLY QUALIFIED DOMAIN NAME(PQDN)
     It starts from a node but doesn’t reaches root.
     A label is not terminated by null string.




October 9, 2012              DNS   By Diwaker Pant      11
 Domain    is a sub
       tree of domain
       name space.

    Each    domain can
       be divided into
       sub domains.


October 9, 2012           DNS   By Diwaker Pant   12
DNS   By Diwaker Pant   October 9, 2012   13
    Region over which server
      has the responsibility and
      authority.

     Zone is a part of entire
      tree.

     Server can divide domain
      into smaller domains.



October 9, 2012                    DNS   By Diwaker Pant   14
   ROOT SERVER-It is a server whose zone consist of
    whole tree. These servers are distributed all around the
    world.

   PRIMARY SERVER- A primary server loads all
    information from the local disk file.

   SECONDARY SERVER- It transfer the complete
    information from the primary server and it is called
    Zone transfer.

                                   DNS   By Diwaker Pant   October 9, 2012   15
 DNS is a protocol can be used in different platforms.

 In the internet, DNS tree is divided into three different sections




                                     DNS   By Diwaker Pant   October 9, 2012   16
   It contains registered hosts according to generic behaviors.




October 9, 2012                  DNS   By Diwaker Pant             17
Label                                  Description

          com     Commercial organizations

          edu     Educational institutions

          gov     Government institutions

           int    International organizations

           mil    Military groups

           net    Network support centers

          org     Nonprofit organizations



October 9, 2012                          DNS    By Diwaker Pant   18
Label                                Description

 aero             Airlines and aerospace companies

  biz             Businesses or firms (similar to com)

 coop             Cooperative business organizations

 info             Information service providers

museum            Museums and other nonprofit organizations

 name             Personal names (individuals)

 pro              Professional individual organizations




October 9, 2012                                    DNS    By Diwaker Pant   19
Two characters country abbreviations.




                     DNS   By Diwaker Pant   October 9, 2012   20
    Use to map an address to a
      name.

     When a server received a
      request from a client to do a
      task.

     Inverse or    pointer   (PTR)
      query.

     121.45.34.132.in-addr.arpa


October 9, 2012                DNS   By Diwaker Pant   21
   Mapping a name to an address or an address to a name is
    called name –address resolution.

   RESOLVER-It access the closest DNS server with a
    mapping request. If the server has the information, it
    satisfies the resolver ; otherwise refers the resolver to
    other servers or asks the other servers to provide the
    information.

   MAPPING NAMES TO ADDRESSES-
      Resolver gives domain name to the server and ask for
    address. It uses country and generic domain to find the
    mapping.


                                  DNS   By Diwaker Pant   October 9, 2012   22
   MAPPING ADDRESS TO NAMES.

   Resolver sends IP address to the server to be mapped
    to domain name.

   This is called PTR or Inverse query.

   Server uses inverse domain.

IP address -121.45.34.132
Domain name-132.34.45.121.in-addr.arpa.


                                  DNS   By Diwaker Pant   October 9, 2012   23
RECURSIVE RESOLUTION




October 9, 2012     DNS   By Diwaker Pant   24
   ITERATIVE RESOLUTION




                           DNS   By Diwaker Pant   October 9, 2012   25
   CACHING

   When a server asks for mapping from another server and
    receive the response, it stores the information an its cache
    memory before sending it to the clients.

   If the same or other client ask for the same mapping, it can
    check its cache memory and resolve the problem.

   But this type of       response is always marked as
    unauthoritative.


                                     DNS   By Diwaker Pant   October 9, 2012   26
 Query and response




                       DNS   By Diwaker Pant   October 9, 2012   27
DNS   By Diwaker Pant   October 9, 2012   28
   In DNS , when there is a change , such as adding a new
    host, removing a host or changing an IP address,
    change must be made to the DNS master file.

   Manual updating is not possible due to size of Internet.

   It is use to update DNS master file automatically.

   Information in both primary and secondary servers is
    changed.


                                   DNS   By Diwaker Pant   October 9, 2012   29
   DNS can use either UDP or TCP.

   PORT NO. 53 is used by servers.

   If size of response message is more than 512 bytes,
    TCP connection is used, otherwise UDP is used.

   How are the new domains added to the server.




                                DNS   By Diwaker Pant   October 9, 2012   30
   This is done through a registrar, a commercial entity
    accredited by ICANN (Internet corporation for
    assigned name and numbers).

   Name is added to the DNS database after verification
    by Registrar for uniqueness of the name.

   A fee is charged.



                                 DNS   By Diwaker Pant   October 9, 2012   31
 The domain name system is a client /server application
  that identifies each host on the internet with a unique
  friendly name.
 Its structure is an inverted hierarchical tree structure.
 Each node in the tree has a domain name.
 Generic domain , Country domain, Inverse domain.
 DDNS automatically updates the DNS master.
 DNS use the service UDP for message of less than 512

  bytes .otherwise, TCP is used.



                                 DNS   By Diwaker Pant   October 9, 2012   32
   Behrouz A. Forouzan - Data Communication and
    Networking (3rd ,4th edition)

   Andrew S. Tanenbaum - Computer Networks (4th
    edition)




                                DNS   By Diwaker Pant   October 9, 2012   33
DNS   By Diwaker Pant   October 9, 2012   34
The client (resolver) can ask for the answer from a name server,
generally closet DN server.

If the server is the authority for the domain name it will responds
back with the full answer after checking its database, but if the closet
server is not the authority then it will pass query to next closet server
generally parent.

Then this server will again check its database and responds back with
answer if it is authority, otherwise it will pass the query to next
server…

This process will repeats until the authoritative server gives final
answer.

When the query is finally resolved. The response travels back to
requesting client.
                                        DNS   By Diwaker Pant   October 9, 2012   35
If the clients does not ask for the recursive answer, the mapping can
be done iteratively.

If the server is an authority for the name, it sends the answer.

If it is not then it returns (to the clients) the IP add of the server that it
thinks can resolve the problem.

The client is responsible for repeating the query to new server.

If this new server can resolve the query then it will responds back
with the Final IP address as an answer otherwise it returns the IP
address of the new server.

This process is called Iterative because The client repeats the query to
multiple servers.
                                           DNS   By Diwaker Pant   October 9, 2012   36

Domain name system

  • 1.
    Presented By: Diwaker pant ME (ECE) Regular
  • 2.
    DNS- Definition  Name Space ◦ Flat Name Space ◦ Hierarchical Name Space  Domain Name Space ◦ FULLY QUALIFIED DOMAIN NAME(FQDN) ◦ PARTIALLY QUALIFIED DOMAIN NAME(PQDN)  Distribution of Name Space ◦ Hierarchy of Name servers ◦ Zone and Domains ◦ Root, Primary and Secondary Servers  DNS in Internet ◦ Generic , Country and Inverse Domain  Resolution  DNS messages DNS By Diwaker Pant October 9, 2012 2
  • 3.
    To identify an entity, TCP/IP uses IP addresses which uniquely identifies connection of host to internet.  We prefer to use names instead of numeric addresses .  So we need a system that can map a name to a numeric address and vice versa. This is called DOMAIN NAME SYSTEM DNS By Diwaker Pant October 9, 2012 3
  • 4.
    When internet was small, mapping was done using HOST FILE which was stored on every host.  Host file had only two columns: name and address.  But now a days whole information is divided into smaller parts and each part is stored in different computer. This is called DNS. DNS By Diwaker Pant October 9, 2012 4
  • 5.
    The process of mapping a unique name with the unique IP address.  FLAT NAME SPACE –  A name is assigned to an address and name is a sequence of characters without structure.  It can not be used in large system such as Internet. DNS By Diwaker Pant October 9, 2012 5
  • 6.
    HIERARCHICAL NAME SPACE-  Each name is made of several parts.  The first part can define the nature of organization.  Second part can define the name and third can define the departments in organization.  For example o Smart.pu.edu o Smart.nitttr.edu o smart.unix.com DNS By Diwaker Pant October 9, 2012 6
  • 7.
    To have a hierarchical name space, a DOMAIN NAME SPACE was designed.  In this design the names are defined in an inverted tree structure with the root at top.  The tree can have only 128 levels i.e. level 0(root) to level 127.  Tree consists of nodes and each node has a LABEL. DNS By Diwaker Pant October 9, 2012 7
  • 8.
     Label isa string with a max. of 63 characters.  The root label is a null string.  Siblings have different labels to maintain uniqueness. DNS By Diwaker Pant October 9, 2012 8
  • 9.
    Each node in the tree has a domain name.  Full domain name is sequence of labels separated by dots(.)  Domain name is read from node up to root.  Always ends in a null label i.e. last character is a dot. DNS By Diwaker Pant October 9, 2012 9
  • 10.
    DNS By Diwaker Pant October 9, 2012 10
  • 11.
    FULLY QUALIFIED DOMAIN NAME(FQDN)  It contains the full name of host.  A label is terminated by a null string.  PARTIALLY QUALIFIED DOMAIN NAME(PQDN)  It starts from a node but doesn’t reaches root.  A label is not terminated by null string. October 9, 2012 DNS By Diwaker Pant 11
  • 12.
     Domain is a sub tree of domain name space.  Each domain can be divided into sub domains. October 9, 2012 DNS By Diwaker Pant 12
  • 13.
    DNS By Diwaker Pant October 9, 2012 13
  • 14.
    Region over which server has the responsibility and authority.  Zone is a part of entire tree.  Server can divide domain into smaller domains. October 9, 2012 DNS By Diwaker Pant 14
  • 15.
    ROOT SERVER-It is a server whose zone consist of whole tree. These servers are distributed all around the world.  PRIMARY SERVER- A primary server loads all information from the local disk file.  SECONDARY SERVER- It transfer the complete information from the primary server and it is called Zone transfer. DNS By Diwaker Pant October 9, 2012 15
  • 16.
     DNS isa protocol can be used in different platforms.  In the internet, DNS tree is divided into three different sections DNS By Diwaker Pant October 9, 2012 16
  • 17.
    It contains registered hosts according to generic behaviors. October 9, 2012 DNS By Diwaker Pant 17
  • 18.
    Label Description com Commercial organizations edu Educational institutions gov Government institutions int International organizations mil Military groups net Network support centers org Nonprofit organizations October 9, 2012 DNS By Diwaker Pant 18
  • 19.
    Label Description aero Airlines and aerospace companies biz Businesses or firms (similar to com) coop Cooperative business organizations info Information service providers museum Museums and other nonprofit organizations name Personal names (individuals) pro Professional individual organizations October 9, 2012 DNS By Diwaker Pant 19
  • 20.
    Two characters countryabbreviations. DNS By Diwaker Pant October 9, 2012 20
  • 21.
    Use to map an address to a name.  When a server received a request from a client to do a task.  Inverse or pointer (PTR) query.  121.45.34.132.in-addr.arpa October 9, 2012 DNS By Diwaker Pant 21
  • 22.
    Mapping a name to an address or an address to a name is called name –address resolution.  RESOLVER-It access the closest DNS server with a mapping request. If the server has the information, it satisfies the resolver ; otherwise refers the resolver to other servers or asks the other servers to provide the information.  MAPPING NAMES TO ADDRESSES- Resolver gives domain name to the server and ask for address. It uses country and generic domain to find the mapping. DNS By Diwaker Pant October 9, 2012 22
  • 23.
    MAPPING ADDRESS TO NAMES.  Resolver sends IP address to the server to be mapped to domain name.  This is called PTR or Inverse query.  Server uses inverse domain. IP address -121.45.34.132 Domain name-132.34.45.121.in-addr.arpa. DNS By Diwaker Pant October 9, 2012 23
  • 24.
    RECURSIVE RESOLUTION October 9,2012 DNS By Diwaker Pant 24
  • 25.
    ITERATIVE RESOLUTION DNS By Diwaker Pant October 9, 2012 25
  • 26.
    CACHING  When a server asks for mapping from another server and receive the response, it stores the information an its cache memory before sending it to the clients.  If the same or other client ask for the same mapping, it can check its cache memory and resolve the problem.  But this type of response is always marked as unauthoritative. DNS By Diwaker Pant October 9, 2012 26
  • 27.
     Query andresponse DNS By Diwaker Pant October 9, 2012 27
  • 28.
    DNS By Diwaker Pant October 9, 2012 28
  • 29.
    In DNS , when there is a change , such as adding a new host, removing a host or changing an IP address, change must be made to the DNS master file.  Manual updating is not possible due to size of Internet.  It is use to update DNS master file automatically.  Information in both primary and secondary servers is changed. DNS By Diwaker Pant October 9, 2012 29
  • 30.
    DNS can use either UDP or TCP.  PORT NO. 53 is used by servers.  If size of response message is more than 512 bytes, TCP connection is used, otherwise UDP is used.  How are the new domains added to the server. DNS By Diwaker Pant October 9, 2012 30
  • 31.
    This is done through a registrar, a commercial entity accredited by ICANN (Internet corporation for assigned name and numbers).  Name is added to the DNS database after verification by Registrar for uniqueness of the name.  A fee is charged. DNS By Diwaker Pant October 9, 2012 31
  • 32.
     The domainname system is a client /server application that identifies each host on the internet with a unique friendly name.  Its structure is an inverted hierarchical tree structure.  Each node in the tree has a domain name.  Generic domain , Country domain, Inverse domain.  DDNS automatically updates the DNS master.  DNS use the service UDP for message of less than 512 bytes .otherwise, TCP is used. DNS By Diwaker Pant October 9, 2012 32
  • 33.
    Behrouz A. Forouzan - Data Communication and Networking (3rd ,4th edition)  Andrew S. Tanenbaum - Computer Networks (4th edition) DNS By Diwaker Pant October 9, 2012 33
  • 34.
    DNS By Diwaker Pant October 9, 2012 34
  • 35.
    The client (resolver)can ask for the answer from a name server, generally closet DN server. If the server is the authority for the domain name it will responds back with the full answer after checking its database, but if the closet server is not the authority then it will pass query to next closet server generally parent. Then this server will again check its database and responds back with answer if it is authority, otherwise it will pass the query to next server… This process will repeats until the authoritative server gives final answer. When the query is finally resolved. The response travels back to requesting client. DNS By Diwaker Pant October 9, 2012 35
  • 36.
    If the clientsdoes not ask for the recursive answer, the mapping can be done iteratively. If the server is an authority for the name, it sends the answer. If it is not then it returns (to the clients) the IP add of the server that it thinks can resolve the problem. The client is responsible for repeating the query to new server. If this new server can resolve the query then it will responds back with the Final IP address as an answer otherwise it returns the IP address of the new server. This process is called Iterative because The client repeats the query to multiple servers. DNS By Diwaker Pant October 9, 2012 36

Editor's Notes

  • #4 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #6 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #8 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #9 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #10 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #11 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #12 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #13 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #14 Behrouz A. Forouzan - Data Communication and Networking (3 rd edition)
  • #16 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #17 Behrouz A. Forouzan - Data Communication and Networking (4th edition)
  • #18 Behrouz A. Forouzan - Data Communication and Networking (3 rd edition)
  • #19 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #20 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #21 Behrouz A. Forouzan - Data Communication and Networking (4 rd edition)
  • #22 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #23 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #24 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #25 Behrouz A. Forouzan - Data Communication and Networking (4 th edition) The client (resolver) can ask for the answer from a name server, generally closet DN server. If the server is the authority for the domain name it will responds back with the full answer after checking its database, but if the closet server is not the authority then it will pass query to next closet server generally parent. Then this server will again check its database and responds back with answer if it is authority, otherwise it will pass the query to next server… This process will repeats until the authoritative server gives final answer. When the query is finally resolved. The response travels back to requesting client.
  • #26 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #27 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #28 Behrouz A. Forouzan - Data Communication and Networking (4 th edition)
  • #29 Behrouz A. Forouzan - Data Communication and Networking (3 rd edition)
  • #30 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)
  • #31 Behrouz A. Forouzan - Data Communication and Networking (3 rd ,4 th edition)