Domain Name System

  • Uploaded by: dil_18
  • 0
  • 0
  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Domain Name System as PDF for free.

More details

  • Words: 1,021
  • Pages: 38
Domain Name System

  DOMAIN NAME SYSTEM Mapping through host file; name and address Master host file Updation difficult; file size too large Centralised system; problem of traffic Divide information into small parts and store each part on a different computer Mapping required ; DNS

 1. NAME SPACE Maps address to a unique name To be unambiguous, the names assigned to machines must be carefully selected from a name space with complete control over the binding between the names and IP addresses. Flat name space Hierarchical name space

  FLAT NAME SPACE

Name is assigned to an address Disadvantage; ambiguity

centrally

controlled

to

avoid

  HIERARCHICAL NAME SPACE

 Name is made up of several parts 1st part:- nature of the organization 2nd part:-Name of the organization 3rd part:-departments of the organization Leads to decentralization

2. DOMAIN NAME SPACE To have a hierarchical name space, a domain name space was designed. In this design the names are defined in an invertedtree structure with the root at the top. The tree can have only 128 levels: level 0 (root) to level 127.

  LABEL & DOMAIN Label:- maximum 63 characters  Root label:- null/empty string Requirement:-children of a node have different labels to guarantee uniqueness of domain names  Domain:-sub tree of DNS space Name of the domain is name of the top node in the sub tree. Sub-domains

Domain names and labels

Domains

 DOMAIN NAME SPACE Each node has a domain name Sequence of labels separated by dots(.) Names are read from the node up to the root. Fully Qualified domain name (FQDN) ;label terminated with a null string Partially Qualified domain name (PQDN)

Domain name space

FQDN and PQDN

3. DISTRIBUTION OF NAME SPACE

The information contained in the domain name space must be stored. However, it is very inefficient and also unreliable to have just one computer store such a huge amount of information. Therefore, distribution is necessary

Hierarchy of name servers

Zones and domains

  ZONE Contiguous part of the entire tree. Complete domain hierarchy cannot be stored in a single server  A server is responsible for one zone. A domain may be a zone. Server keeps the database in a zone file.

  ROOT SERVER

Server whose zone consists of a whole tree. Delegates authority to other servers. Keeps references to other servers

  PRIMARY SERVER Stores a file about the zone for which it has authority. Responsible for creating, updating and maintaining the zone file. Stores zone file on the local disk. A primary server loads all information from the disk file

SECONDARY SERVER Transfers complete information about a zone from other servers (primary or secondary) Stores the file on the local disk Neither creates nor updates zone files. When the secondary downloads information from the primary, it is called zone transfer. the secondary server loads all information from the primary server. A server can be Primary for one zone and Secondary for another.

4. DNS IN THE INTERNET

DNS is a protocol that can be used in different platforms. In the Internet, the domain name space (tree) is divided into three different sections: generic domains, country domains, and the inverse domain.

GENERIC & COUNTRY DOMAINS Generic Domains:-Define registered hosts according to their generic behavior. Each node defines a domain, which is an index to domain space database. Country domains:- uses 2 character country abbreviation. Second level could be state abbreviations

DNS IN THE INTERNET

Generic domains

Generic domain labels

Country domains

INVERSE DOMAINS Used to map an address to a name Authorization check by the server through query This query is called inverse or pointer (PTR) query. To handle a PTR query, an inverse domain is added to domain name space 1st level node:-arpa 2nd level node:-in_addr (inverse address) Rest of the domain defines IP addresses Servers that handle inverse domains are hierarchical. Netid; subnetid;hostid.

Inverse domain

5. RESOLUTION Mapping a name to an address or an address to a name is called name-address resolution. Resolver:- Client;accesses the closest DNS server with the mapping request Mapping Names to addresses:Request, if exists query is sent by resolver to local DNS server.If local server cannot resolve the query, it either resolves to other servers or asks other servers directly. Mapping addresses to names:-PTR query; inverse domains. 134.56.76.77 ’77.76.56.134.in_addr.arpa’

5. RESOLUTION Recursive resolution:- Resolver (client) can ask for recursive answer from name server. Server must supply the final answer. Iterative resolution:- Server returns the IP address of the server it thinks can resolve the query. Caching:-storing information for some time in the memory. Disadvantage:-outdated mapping Solution:-TTL -> Time to Live

Recursive resolution

Iterative resolution

6. DNS MESSAGES DNS has two types of messages: query and response. Both types have the same format. The query message consists of a header and question records the response message consists of a header, question records, answer records, authoritative records, and additional records.

Query and response messages

Header format

7. TYPES OF RECORDS The question records are used in the question section of the query and response messages. The resource records are used in the answer, authoritative, and additional information sections of the response message.

8. REGISTRARS How are new domains added to DNS? This is done through a registrar, a commercial entity accredited by ICANN. A registrar first verifies that the requested domain name is unique and then enters it into the DNS database. A fee is charged.

9.DYNAMIC DOMAIN NAME SYSTEM (DDNS) The DNS master file must be updated dynamically. The Dynamic Domain Name System (DDNS) therefore was devised to respond to this need. In DDNS, when a binding between a name and an address is determined, the information is sent, usually by DHCP to a primary DNS server. The primary server updates the zone. The secondary servers are notified either actively or passively.

10.ENCAPSULATION DNS can use either UDP or TCP. In both cases the well-known port used by the server is port 53. UDP is used when the size of the response message is less than 512 bytes because most UDP packages have a 512-byte packet size limit. If the size of the response message is more than 512 bytes, a TCP connection is used.

Related Documents

Domain Name System
November 2019 21
Dns-domain Name System
June 2020 19
Dns (domain Name System)
November 2019 20
Bab4 - Domain Name System
December 2019 32
Domain Name:
June 2020 23