DNS - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

DNS

Description:

zone contains the domain names that the domain with the same domain name contains, ... Small TTL ensures consistent view, but increase the load on your name servers ... – PowerPoint PPT presentation

Number of Views:102
Avg rating:3.0/5.0
Slides: 21
Provided by: vilj
Category:
Tags: dns | consistency

less

Transcript and Presenter's Notes

Title: DNS


1
DNS
2
Outline
  • Brief history
  • What is DNS?
  • How does DNS work?

3
History
  • In 1970s ARPANet consisted of few hundred hosts
  • Name address bindings in local hosts.txt
  • Central bindings on SRI-NIC host.
  • ARPANet moved to TCP/IP
  • . . .

4
Problems of initial name binding
  • Traffic and load
  • Name collisions
  • Consistency
  • Scaling ARPANet broke working solution

5
Goals and solutions of new system
  • Single bottlneck elimination
  • Administration takes place locally
  • Data should be available globally
  • Uniqueness of host names
  • Hierarchical name space to name hosts
  • 1984 several RFCs were proposed
  • Current specification -- RFC 1035
  • RFCs 1034 and 1035 have now been augmented by
    many other RFCs, which describe potential DNS
    security problems, implementation problems,
    administrative gotchas, mechanisms for
    dynamically updating name servers and for
    securing domain data, and more.

6
DNS, what it is?
  • The Domain Name System is a distributed database.
  • Local control of segments
  • Data globallyavailable through client-server
    scheme
  • Robustness and adequate performance are achieved
    through replication and caching

7
DNS, what it is? cont.
  • System contains two sides(programs)
  • Name server
  • Resolver
  • Structure of DNS database...
  • Every (sub)domain has a unique name

8
Database structure
  • Domain names are used as indexes into the DNS
    database
  • Each host on a network has a domain name, which
    points to information about the host
  • This information may include IP addresses,
    information about mail routing, etc.
  • Hosts may have one or more domain name aliases,
    which are simply pointers from one domain name
    (the alias) to another (the official or canonical
    domain name)
  • Max depth 127

9
Figures of structure
10
Server system structure
  • Top level domains com, edu, gov, mil, net, org,
    ...
  • Name space is divided into zones
  • Each zone has authoritative name server
  • zone contains the domain names that the domain
    with the same domain name contains,
  • except for domain names in delegated subdomains

11
Server system structure
  • Redundancy with master and slave
  • Master and slave servers are both authoritative
    for their zone
  • Each serverhasits own data files

12
Resolvers
  • Querying a name server
  • Interpreting responses (which may be resource
    records or an error)
  • Returning the information to the programs that
    requested it
  • Smarter resolvers also use cache

13
Resolving process
  • Option one Ask root server
  • Query is directed step by step to subzones
  • Results in clogged root servers
  • For this there are many root servers across the
    world

14
Example
15
Query types
  • Recursive query
  • Server is obliged to respond with the requested
    data or with an error
  • Asks closest known name server
  • May askeither recursively or iteratively
  • Iterative query
  • Server simply gives the best answer it already
    knows
  • Usually these are the domain names and addresses
    of the closest known name servers
  • Minimal load

16
IP to name binding
  • Throughout search is too time consuming
  • in-addr.arpa domain
  • Data is indexed by address numbers
  • (sub)Domain can have up to 256 subdomains

17
IP to name example
18
Cacheing
  • Name servers remember authoritative servers
  • Newer versions of DNS server software alsouse
    negative cacheing
  • caching prevents us from having to query the root
    name servers again.
  • Original data holder gives TTL

19
Cacheing cont.
  • Small TTL ensures consistent view, but increase
    the load on your name servers
  • Bigger TTL shortens the average time queries take

20
References
  • OReilly DNS and BIND
  • Google.
Write a Comment
User Comments (0)
About PowerShow.com