SlideShare una empresa de Scribd logo
1 de 77
Chapter 11
Name Resolution and the Domain Name
              System
               DNS
     Internet Naming Service: DNS
Overview
•   Introduction to the DNS
•   DNS Components
•   DNS Structure and Hierarchy
•   The DNS in Context
DNS History (1)
•   ARPANET utilized a central file HOSTS.TXT
    –   Contains names to addresses mapping
    –   Maintained by SRI’s NIC (Stanford-Research-
        Institute: Network-Information-Center)


•   Administrators email changes to NIC
    –   NIC updates HOSTS.TXT periodically
•   Administrators FTP (download) HOSTS.TXT
DNS History (2)
•   As the system grew, HOSTS.TXT had
    problems with:
    –   Scalability (traffic and load)
    –   Name collisions
    –   Consistency

•   In 1984, Paul Mockapetris released the first
    version (RFCs 882 and 883, superseded by
    1034 and 1035 …)
The DNS is…
• The “Domain Name System”
• What Internet users use to reference
  anything by name on the Internet
• The mechanism by which Internet software
  translates names to attributes such as
  addresses
The DNS is also…
• A globally distributed, loosely coherent, scalable,
  reliable, dynamic database
• Comprised of three components
   – A “name space”
   – Servers making that name space available
   – Resolvers (clients) which query the servers about the
     name space
DNS as a Lookup Mechanism
• Users generally prefer names to numbers

• Computers prefer numbers to names

• DNS provides the mapping between the two
  – I have “x”, give me “y”
DNS as a Database
• Keys to the database are “domain names”
  – www.foo.com, 18.in-addr.arpa, 6.4.e164.arpa
• Over 100,000,000 domain names stored
• Each domain name contains one or more
  attributes
  – Known as “resource records”
• Each attribute individually retrievable
Global Distribution
• Data is maintained locally, but retrievable
  globally
  – No single computer has all DNS data
• DNS lookups can be performed by any
  device
• Remote DNS data is locally cachable to
  improve performance
Loose Coherency
• The database is always internally consistent
   – Each version of a subset of the database (a zone) has a
     serial number
      • The serial number is incremented on each database change
• Changes to the master copy of the database are
  propagated to replicas according to timing set by
  the zone administrator
• Cached data expires according to timeout set by
  zone administrator
Scalability
• No limit to the size of the database
• No limit to the number of queries
  – 24,000 queries per second handled easily
• Queries distributed among masters, slaves,
  and caches
Reliability
• Data is replicated
   – Data from master is copied to multiple slaves
• Clients can query
   – Master server
   – Any of the copies at slave servers
• Clients will typically query local caches
• DNS protocols can use either UDP or TCP
   – If UDP, DNS protocol handles retransmission,
     sequencing, etc.
Dynamicity
• Database can be updated dynamically
  – Add/delete/modify of any record


• Modification of the master database triggers
  replication
  – Only master can be dynamically updated
Overview
• Introduction to the DNS
• DNS Components
  – The name space
  – The servers
  – The resolvers
• DNS Structure and Hierarchy
• The DNS in Context
The Name Space
• The name space is the structure of the DNS database
           – An inverted tree with the root node at the top
• Each node has a label
           – The root node has a null label, written as “”

                                                                            T h e ro o t n o d e
                                                                                     ""


                      t o p -le v e l n o d e                               t o p -le v e l n o d e                                 t o p -le v e l n o d e


s e c o n d - le v e l n o d e      s e c o n d - le v e l n o d e       s e c o n d - le v e l n o d e       s e c o n d - le v e l n o d e      s e c o n d - le v e l n o d e


  t h ir d -le v e l n o d e                               t h ir d -le v e l n o d e      t h ir d -le v e l n o d e
An Analogy – E.164
• Root node maintained by the ITU (call it “+”)
• Top level nodes = country codes (1, 81, etc)
• Second level nodes = regional codes (1-808, 81-3, etc.)
                                                      "+ "


                     . ..          1                                           81   ...


              . ..          202          650          808           3          4    852


                                  381          779              3489


                                  6003         6003          5226       2024
Labels
•   Each node in the tree must have a
    label
     – A string of up to 63 bytes
                                                                                ""
     – RFCs 852 and 1123 define legal
       characters for “hostnames”
         • A-Z, 0-9, and “-” only with a-z
           and A-Z treated as the same              t o p -1                 t o p -2           t o p -3
•   Sibling nodes must have unique
    labels
•   The null label is reserved for the
    root node                                fo o              fo o   fo o           a t& t   bar          baz
Domain Names
•       A domain name is the sequence of labels from a node to the root,
        separated by dots (“.”s), read left to right
             – The name space has a maximum depth of 127 levels
             – Domain names are limited to 255 characters in length
•       A node’s domain name identifies its position in the name space
                                                                                ""



                              com                                   edu              gov    in t     m il    net   o rg



               n o m in u m         m e ta in fo   b e r k e le y         nwu              n a to   a rm y   uu



    w est         e a st            w w w



d a k o ta      to rn a d o
Subdomains
• One domain is a subdomain of another if its top
  node is a descendant of the other’s top node

• More simply, one domain is a subdomain of
  another if its domain name ends in the other’s
  domain name
   – So sales.nominum.com is a subdomain of
      • nominum.com & com
   – nominum.com is a subdomain of com
Delegation
• Administrators can create subdomains to group hosts
   – According to geography, organizational affiliation etc.


• An administrator of a domain can delegate responsibility
  for managing a subdomain to someone else

• The parent domain retains links to the delegated
  subdomain
Delegation Creates Zones
• Each time an administrator delegates a subdomain,
  a new unit of administration is created
   – The subdomain and its parent domain can now be
     administered independently
   – These units are called zones
   – The boundary between zones is a point of delegation in
     the name space
• Delegation is good: it is the key to scalability
Dividing a Domain into Zones
                                                                             nominum.com
                                                                                domain

                                                   ""                                  nominum.com
                                                                                           zone

                                .a rp a          .c o m             .e d u
                                                                                       ams.nominum.com
rwc.nominum.com                                                                              zone
      zone                 acm ebw           n o m in u m          n e ts o l


                         rw c             ww w              ftp              am s


          m o lo k a i            skye                            gouda             cheddar
Overview
• Introduction to the DNS
• DNS Components
  – The name space
  – The servers
  – The resolvers
• DNS Structure and Hierarchy
• The DNS in Context
Name Servers
• Name servers store information about the name
  space in units called “zones”
   – The name servers that load a complete zone are said to
     “have authority for” or “be authoritative for” the zone
• Usually, more than one name server are
  authoritative for the same zone
   – This ensures redundancy and spreads the load
• Also, a single name server may be authoritative
  for many zones
Name Servers and Zones
128.8.10.5 serves       Name Servers     Zones
  data for both
 nominum.com
and isc.org zones      128.8.10.5
                                       nominum.com
  202.12.28.129
  serves data for
  nominum.com        202.12.28.129
    zone only
                                         isc.org

  204.152.187.11
   serves data for
                     204.152.187.11
 isc.org zone only
Types of Name Servers
• Two main types of servers
   – Authoritative – maintains the data
      • Master – where the data is edited
      • Slave – where data is replicated to
   – Caching – stores data obtained from an authoritative
     server
• Other types exist…
• No special hardware necessary
Name Server Architecture
• You can think of a name server as part of:
  – database server, answering queries about the
    parts of the name space it knows about (i.e., is
    authoritative for),
  – cache, temporarily storing data it learns from
    other name servers, and
  – agent, helping resolvers and other name servers
    find data
Name Server Architecture
                      Zone
                           From       data
Name Server Process
                           disk        file
   Authoritative Data                             Master
                                  Zone transfer   server
  (primary master and
      slave zones)
      Cache Data
    (responses from
  other name servers)
        Agent
   (looks up queries
 on behalf of resolvers)
Authoritative Data
Name Server Process
   Authoritative Data
  (primary master and
      slave zones)           Response

      Cache Data
    (responses from
  other name servers)
        Agent
   (looks up queries                    Resolver
                           Query
 on behalf of resolvers)
Using Other Name Servers
Name Server Process
   Authoritative Data
  (primary master and
      slave zones)
                                        Response
      Cache Data
                           Response
    (responses from
                                         Another
  other name servers)
                                          name
        Agent               Query         server
   (looks up queries                               Resolver
                                      Query
 on behalf of resolvers)
Cached Data
Name Server Process
   Authoritative Data
  (primary master and
      slave zones)            Response

      Cache Data
    (responses from
  other name servers)
        Agent
   (looks up queries                     Resolver
                           Query
 on behalf of resolvers)
Overview
• Introduction to the DNS
• DNS Components
  – The name space
  – The servers
  – The resolvers
• DNS Structure and Hierarchy
• The DNS in Context
Name Resolution
• Name resolution is the process by which resolvers
  and name servers cooperate to find data in the
  name space
• Closure mechanism for DNS?
   – Starting point: the names and IP addresses of the name
     servers for the root zone (the “root name servers”)
   – The root name servers know about the top-level zones
     and can tell name servers whom to contact for all TLDs
Name Resolution
• A DNS query has three parameters:
   – A domain name (e.g., www.nominum.com),
      • Remember, every node has a domain name!
   – A class (e.g., IN), and
   – A type (e.g., A)
   – http://network-tools.com/nslook/
• Upon receiving a query from a resolver, a name
  server
   – 1) looks for the answer in its authoritative data and its
     cache
   – 2) If step 1 fails, the answer must be looked up
The Resolution Process
• Let’s look at the resolution process step-by-
  step:




annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The workstation annie asks its configured name
  server, dakota, for www.nominum.com’s address



                      dakota.west.sprockets.com




                           What’s the IP address
                                     of
                           www.nominum.com?


annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The name server dakota asks a root name server, m, for
  www.nominum.com’s address



                                                                 m.root-servers.net
                      dakota.west.sprockets.com


                                         What’s the IP address
                                                   of
                                         www.nominum.com?



annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The root server m refers dakota to the com name servers
• This type of response is called a “referral”



                                                  m.root-servers.net
                      dakota.west.sprockets.com                         Here’s a list of the
                                                                       com name servers.
                                                                        Ask one of them.




annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The name server dakota asks a com name server, f,
  for www.nominum.com’s address
                                          What’s the IP address
                                                    of
                                          www.nominum.com?

                                                                  m.root-servers.net
                      dakota.west.sprockets.com




                                                                              f.gtld-servers.net

annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The com name server f refers dakota to the
  nominum.com name servers
                                                                         Here’s a list of the
                                                                          nominum.com
                                                                          name servers.
                                                                         Ask one of them.
                                                  m.root-servers.net
                      dakota.west.sprockets.com




                                                              f.gtld-servers.net

annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The name server dakota asks an nominum.com name
  server, ns1.sanjose, for www.nominum.com’s address
                                         What’s the IP address
                                                   of
                                         www.nominum.com?

                                                                   m.root-servers.net
                      dakota.west.sprockets.com




                                                  ns1.sanjose.nominum.net



                                                                               f.gtld-servers.net

annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The nominum.com name server ns1.sanjose
  responds with www.nominum.com’s address


                                                                   m.root-servers.net
                      dakota.west.sprockets.com




                             Here’s the IP        ns1.sanjose.nominum.net
                              address for
                           www.nominum.com
                                                                               f.gtld-servers.net

annie.west.sprockets.com

                   ping www.nominum.com.
The Resolution Process
• The name server dakota responds to annie with
  www.nominum.com’s address
                                            Here’s the IP
                                             address for
                                          www.nominum.com

                                                                            m.root-servers.net
                      dakota.west.sprockets.com




                                                  ns1.sanjose.nominum.net



                                                                                        f.gtld-servers.net

annie.west.sprockets.com

                   ping www.nominum.com.
Resolution Process (Caching)
• After the previous query, the name server dakota now knows:
   – The names and IP addresses of the com name servers
   – The names and IP addresses of the nominum.com name servers
   – The IP address of www.nominum.com
• Let’s look at the resolution process again




   annie.west.sprockets.com

                      ping ftp.nominum.com.
Resolution Process (Caching)
• The workstation annie asks its configured name
  server, dakota, for ftp.nominum.com’s address


                                                                  m.root-servers.net
                      dakota.west.sprockets.com




                      What’s the IP address       ns1.sanjose.nominum.net
                      of ftp.nominum.com?

                                                                              f.gtld-servers.net

annie.west.sprockets.com

                   ping ftp.nominum.com.
Resolution Process (Caching)
• dakota has cached an NS record indicating ns1.sanjose is
  an nominum.com name server, so it asks it for
  ftp.nominum.com’s address
                                         What’s the IP address
                                         of ftp.nominum.com?

                                                                            m.root-servers.net
                      dakota.west.sprockets.com




                                                  ns1.sanjose.nominum.net



                                                                                        f.gtld-servers.net

annie.west.sprockets.com

                   ping ftp.nominum.com.
Resolution Process (Caching)
• The nominum.com name server ns1.sanjose
  responds with ftp.nominum.com’s address


                                                                    m.root-servers.net
                      dakota.west.sprockets.com




                          Here’s the IP
                           address for            ns1.sanjose.nominum.net
                       ftp.nominum.com
                                                                                f.gtld-servers.net

annie.west.sprockets.com

                   ping ftp.nominum.com.
Resolution Process (Caching)
• The name server dakota responds to annie with
  ftp.nominum.com’s address
                                              Here’s the IP
                                               address for
                                           ftp.nominum.com

                                                                            m.root-servers.net
                      dakota.west.sprockets.com




                                                  ns1.sanjose.nominum.net



                                                                                        f.gtld-servers.net

annie.west.sprockets.com

                   ping ftp.nominum.com.
Iterative Name Resolution

• The principle of iterative name resolution.
Recursive Name Resolution (1)
• The principle of recursive name resolution.
Recursive Name Resolution (2)
Server for   Should                      Passes to     Receives       Returns to
                              Looks up
node         resolve                     child         and caches     requester

cs           <ftp>            #<ftp>     --            --             #<ftp>

vu           <cs,ftp>         #<cs>      <ftp>         #<ftp>         #<cs>
                                                                      #<cs, ftp>

ni           <vu,cs,ftp>      #<vu>      <cs,ftp>      #<cs>          #<vu>
                                                       #<cs,ftp>      #<vu,cs>
                                                                      #<vu,cs,ftp>
root         <ni,vu,cs,ftp>   #<nl>      <vu,cs,ftp>   #<vu>          #<nl>
                                                       #<vu,cs>       #<nl,vu>
                                                       #<vu,cs,ftp>   #<nl,vu,cs>
                                                                      #<nl,vu,cs,ftp>



     • Recursive name resolution of <nl, vu, cs, ftp>. Name
       servers cache intermediate results for subsequent
       lookups.
Iterative versus Recursive
                  Resolution (1)




Performance-wise, whichcaching?
Which works better with is cost?
How about communication better?
Iterative versus Recursive
                 Resolution (2)
•   Performance-wise, which is better?
    –   Recursive method puts higher performance demand
        on each name server

•   Which works better with caching?
    –   Recursive method works better with caching

•   How about communication cost?
    –   Recursive method can reduce communication cost
Iterative versus Recursive
               Resolution (3)




• The comparison between recursive and iterative name
  resolution with respect to communication costs.
What can be Resolved?
• Any name in the name space
• Class
  – Internet (IN), Chaos (CH), Hesiod (HS)
• Type
  –   Address (A, AAAA, A6)
  –   Pointer (PTR, NAPTR)
  –   Aliases (CNAME, DNAME)
  –   Security related (TSIG, SIG, NXT, KEY)
  –   Etc.
DNS Name Space (3)
Type of   Associated
                       Description
record    entity
SOA       Zone         Holds information on the represented zone
A         Host         Contains an IP address of the host this node represents
MX        Domain       Refers to a mail server to handle mail addressed to this node
SRV       Domain       Refers to a server handling a specific service
NS        Zone         Refers to a name server that implements the represented zone
CNAME     Node         Symbolic link with the primary name of the represented node
PTR       Host         Contains the canonical name of a host
HINFO     Host         Holds information on the host this node represents
TXT       Any kind     Contains any entity-specific information considered useful


• The most important types of resource records forming
  the contents of nodes in the DNS name space.
Using Alias/Symbolic Link for
     Mobile Entities Tracking (1)
•    What if ftp.cse.unl.edu moves to a
     machine named www.cse.unl.edu

•    Change the DNS database of the NS of
     cse.unl.edu
•    Look up is not affected
Using Alias/Symbolic Link for
     Mobile Entities Tracking (2)
•   What if ftp.cse.unl.edu moves to a
    machine named ftp.unl.edu
•   The name ftp.cse.unl.edu should not
    change
•   Solution 1: Record the new address in
    NS for cse.unl.edu
•   Solution 2: Record the new name in NS
    for cse.unl.edu
Solution1: Recording the Address
•    Look up operation is not affected
•    What if ftp.cse.unl.edu moves again
     from a machine named ftp.unl.edu to a
     machine named www.cs.unomaha.edu?
    – Record the new address in NS for
      cse.unl.edu
    – No longer a local update
Solution2: Recording the
               Name/Alias
•   Look up operation is affected
    –   If site moves n times, we need n look ups
    –   Not suitable for highly mobile entities


•   Do not need to modify the data in
    cse.unl.edu if the ftp service moves
    again
Overview
•   Introduction to the DNS
•   DNS Components
•   DNS Structure and Hierarchy
•   The DNS in Context
DNS Structure and Hierarchy
• The DNS imposes no constraints on how the DNS
  hierarchy is implemented except:
   – A single root
   – The label restrictions
   – Create a host with a name a.wonderful.world?
• If a site is not connected to the Internet, it can use any
  domain hierarchy it chooses
   – Can make up whatever TLDs (top level domains) you want
• Connecting to the Internet implies use of the existing
  DNS hierarchy
Top-level Domain (TLD) Structure
• In 1983 (RFC 881), the idea was to have TLDs correspond
  to network service providers
   – e.g., ARPA, DDN, CSNET, etc.
       • Bad idea: if your network changes, your email address changes
• By 1984 (RFC 920), functional domains was established
   – e.g., GOV for Government, COM for commercial, EDU for
     education, etc.
• RFC 920 also
   – Provided for country domains
   – Provided for “Multiorganizations”
       • Large, composed of other (particularly international) organizations
   – Provided a stable TLD structure until 1996 or so
Internet Corporation for Assigned
   Names and Numbers (ICANN)
• ICANN’s role: to oversee the management of
  Internet resources including
  – Addresses
     • Delegating blocks of addresses to the regional registries
  – Protocol identifiers and parameters
     • Allocating port numbers, etc.
  – Names
     • Administration of the root zone file
     • Oversee the operation of the root name servers
The Root Nameservers
• Modification of the root zone file is pointless
  unless that zone file is published

• The root zone file is published on 13 servers, “A”
  through “M”, around the Internet

• Root name server operations currently provided
  by volunteer efforts by a very diverse set of
  organizations
Root Name Server Operators
Nameserver   Operated by:
    A        Verisign (US East Coast)
    B        University of S. California –Information Sciences Institute (US West Coast)
    C        Cogent Communications (US East Coast)
    D        University of Maryland (US East Coast)
    E        NASA (Ames) (US West Coast)
    F        Internet Software Consortium (US West Coast)
    G        U. S. Dept. of Defense (ARL) (US East Coast)
    H        U. S. Dept. of Defense (DISA) (US East Coast)
    I        Autonomica (SE)
    J        Verisign (US East Coast)
    K        RIPE-NCC (UK)
    L        ICANN (US West Coast)
    M        WIDE (JP)
The Current TLDs

                                                                                    "."


      G e n e r ic T L D s                      C o u n try C o d e T L D s                 I n t e rn a t io n a l T L D s                                  U S Legacy TLDs
          (g T L D s )                                  (c c T L D s )                                 ( iT L D s )                                              (u s T L D s )


CO M                                                                 AF                   IN T                                                           G O V
C o m m e r c i a l O r g a n iz a t i o n s                  A fg h a n is t a n         I n t e r n a t io n a l T r e a t y O r g a n iz a t io n s   G o v e r n m e n t a l O r g a n iz a t io n s

NET                                                                   AL                                           ARPA                                  M IL
N e tw o rk In fra s tru c tu re                                 A l b a n ia                          ( T r a n s it io n D e v ic e )                  M ilit a r y O r g a n iz a t io n s

O RG                                                                  DZ                                                                                 EDU
O th e r O r g a n iz a t io n s                                  A l g e r ia                                                                           E d u c a t io n a l I n s t i t u t i o n s

                                                                      ...


                                                                     YU
                                                               Y u g o s l a v ia

                                                                    ZM
                                                                 Z a m b ia

                                                                    ZW
                                                               Z im b a b w e
Registries, Registrars, and Registrants
• A codification of roles in the operation of a domain name space
• Registry
   – the name space’s database
   – the organization which has edit control of that database
   – The organization which runs the authoritative name servers for
     that name space
• Registrar
   – the agent which submits change requests to the registry on behalf
     of the registrant
• Registrant
   – The entity which makes use of the domain name
Registries, Registrars, and Registrants
                 Registry updates          Master
                       zone                updated

     Registry                   Zone DB
                                           Slaves
                  Registrar submits
                                          updated
                  add/modify/delete
                  to registry

Registrar    Registrar     Registrar

                  End user requests
                  add/modify/delete


            Registrants
            Registrants
The “Generic” Top-Level
         Domains (gTLDs)
• .COM, .NET, and .ORG
   – By far the largest top level domains on the Internet
     today
   – Essentially no restriction on what can be registered
• Verisign received the contract for the registry
  for .COM, .NET, and .ORG
   – also a registrar for these TLDs
Overview
•   Introduction to the DNS
•   DNS Components
•   DNS Hierarchy
•   The DNS in Context
Load Concerns
• DNS can handle the load
  – DNS root servers get approximately 3000
    queries per second
     • Empirical proofs (DDoS attacks) show root name
       servers can handle 50,000 queries per second
        – Limitation is network bandwidth, not the DNS protocol
  – in-addr.arpa zone, which translates numbers to
    names, gets about 2000 queries per second
Performance Concerns
• DNS is a very lightweight protocol
  – Simple query – response
• Any performance limitations are the result
  of network limitations
  – Speed of light
  – Network congestion
  – Switching/forwarding latencies
Security Concerns
• Base DNS protocol (RFC 1034, 1035) is insecure
   – “Spoof” attacks are possible
• DNS Security Enhancements (DNSSEC, RFC
  2565) remedies this flaw
   – But creates new ones
      • DoS attacks
      • Amplification attacks
• DNSSEC strongly discourages large flat zones
   – Hierarchy (delegation) is good
Questions?

Más contenido relacionado

La actualidad más candente (20)

DNS (Domain Name System)
DNS (Domain Name System)DNS (Domain Name System)
DNS (Domain Name System)
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
DNS Presentation
DNS PresentationDNS Presentation
DNS Presentation
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Domain Name System DNS
Domain Name System DNSDomain Name System DNS
Domain Name System DNS
 
Domain Name System
Domain Name SystemDomain Name System
Domain Name System
 
Dns
DnsDns
Dns
 
Domain name system
Domain name systemDomain name system
Domain name system
 
DNS Record
DNS RecordDNS Record
DNS Record
 
Dns presentation
Dns presentationDns presentation
Dns presentation
 
Domain name system (dns)
Domain name system (dns)Domain name system (dns)
Domain name system (dns)
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Dns name resolution process
Dns name resolution processDns name resolution process
Dns name resolution process
 
Dns
DnsDns
Dns
 
What is Network Address Translation (NAT)
What is Network Address Translation (NAT)What is Network Address Translation (NAT)
What is Network Address Translation (NAT)
 
Dns(Domain name system)
Dns(Domain name system)Dns(Domain name system)
Dns(Domain name system)
 
slide on DNS
slide on DNSslide on DNS
slide on DNS
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Microsoft Active Directory
Microsoft Active DirectoryMicrosoft Active Directory
Microsoft Active Directory
 
Dns
DnsDns
Dns
 

Similar a DNS

Addressing
AddressingAddressing
AddressingOnline
 
Chapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptxChapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptxmanju772238
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamMyNOG
 
Lec-7-dns.pptx
Lec-7-dns.pptxLec-7-dns.pptx
Lec-7-dns.pptxSyed Ejaz
 
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01velimamedov
 
Wd & im session a5 _hosting_march 08,2010
Wd & im session a5 _hosting_march 08,2010Wd & im session a5 _hosting_march 08,2010
Wd & im session a5 _hosting_march 08,2010Mahesh Panchal
 
Computer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfComputer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfShanthalaKV
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server roleLuis Garay
 
10 - Domain Name System.ppt
10 - Domain Name System.ppt10 - Domain Name System.ppt
10 - Domain Name System.pptssuserf7cd2b
 

Similar a DNS (20)

Addressing
AddressingAddressing
Addressing
 
Dns
DnsDns
Dns
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Domain Name System(ppt)
Domain Name System(ppt)Domain Name System(ppt)
Domain Name System(ppt)
 
Meeting 4 DNS
Meeting 4   DNSMeeting 4   DNS
Meeting 4 DNS
 
Dns
DnsDns
Dns
 
DNS_Presentation.pptx
DNS_Presentation.pptxDNS_Presentation.pptx
DNS_Presentation.pptx
 
DNS(In_Linux).pptx
DNS(In_Linux).pptxDNS(In_Linux).pptx
DNS(In_Linux).pptx
 
2 technical-dns-workshop-day1
2 technical-dns-workshop-day12 technical-dns-workshop-day1
2 technical-dns-workshop-day1
 
Chapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptxChapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptx
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul Islam
 
ppt.pptx
ppt.pptxppt.pptx
ppt.pptx
 
Lec-7-dns.pptx
Lec-7-dns.pptxLec-7-dns.pptx
Lec-7-dns.pptx
 
applicationlayer.pptx
applicationlayer.pptxapplicationlayer.pptx
applicationlayer.pptx
 
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
 
Wd & im session a5 _hosting_march 08,2010
Wd & im session a5 _hosting_march 08,2010Wd & im session a5 _hosting_march 08,2010
Wd & im session a5 _hosting_march 08,2010
 
Lets talk dns
Lets talk dnsLets talk dns
Lets talk dns
 
Computer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfComputer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdf
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server role
 
10 - Domain Name System.ppt
10 - Domain Name System.ppt10 - Domain Name System.ppt
10 - Domain Name System.ppt
 

Último

Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 

Último (20)

Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 

DNS

  • 1. Chapter 11 Name Resolution and the Domain Name System DNS Internet Naming Service: DNS
  • 2. Overview • Introduction to the DNS • DNS Components • DNS Structure and Hierarchy • The DNS in Context
  • 3. DNS History (1) • ARPANET utilized a central file HOSTS.TXT – Contains names to addresses mapping – Maintained by SRI’s NIC (Stanford-Research- Institute: Network-Information-Center) • Administrators email changes to NIC – NIC updates HOSTS.TXT periodically • Administrators FTP (download) HOSTS.TXT
  • 4. DNS History (2) • As the system grew, HOSTS.TXT had problems with: – Scalability (traffic and load) – Name collisions – Consistency • In 1984, Paul Mockapetris released the first version (RFCs 882 and 883, superseded by 1034 and 1035 …)
  • 5. The DNS is… • The “Domain Name System” • What Internet users use to reference anything by name on the Internet • The mechanism by which Internet software translates names to attributes such as addresses
  • 6. The DNS is also… • A globally distributed, loosely coherent, scalable, reliable, dynamic database • Comprised of three components – A “name space” – Servers making that name space available – Resolvers (clients) which query the servers about the name space
  • 7. DNS as a Lookup Mechanism • Users generally prefer names to numbers • Computers prefer numbers to names • DNS provides the mapping between the two – I have “x”, give me “y”
  • 8. DNS as a Database • Keys to the database are “domain names” – www.foo.com, 18.in-addr.arpa, 6.4.e164.arpa • Over 100,000,000 domain names stored • Each domain name contains one or more attributes – Known as “resource records” • Each attribute individually retrievable
  • 9. Global Distribution • Data is maintained locally, but retrievable globally – No single computer has all DNS data • DNS lookups can be performed by any device • Remote DNS data is locally cachable to improve performance
  • 10. Loose Coherency • The database is always internally consistent – Each version of a subset of the database (a zone) has a serial number • The serial number is incremented on each database change • Changes to the master copy of the database are propagated to replicas according to timing set by the zone administrator • Cached data expires according to timeout set by zone administrator
  • 11. Scalability • No limit to the size of the database • No limit to the number of queries – 24,000 queries per second handled easily • Queries distributed among masters, slaves, and caches
  • 12. Reliability • Data is replicated – Data from master is copied to multiple slaves • Clients can query – Master server – Any of the copies at slave servers • Clients will typically query local caches • DNS protocols can use either UDP or TCP – If UDP, DNS protocol handles retransmission, sequencing, etc.
  • 13. Dynamicity • Database can be updated dynamically – Add/delete/modify of any record • Modification of the master database triggers replication – Only master can be dynamically updated
  • 14. Overview • Introduction to the DNS • DNS Components – The name space – The servers – The resolvers • DNS Structure and Hierarchy • The DNS in Context
  • 15. The Name Space • The name space is the structure of the DNS database – An inverted tree with the root node at the top • Each node has a label – The root node has a null label, written as “” T h e ro o t n o d e "" t o p -le v e l n o d e t o p -le v e l n o d e t o p -le v e l n o d e s e c o n d - le v e l n o d e s e c o n d - le v e l n o d e s e c o n d - le v e l n o d e s e c o n d - le v e l n o d e s e c o n d - le v e l n o d e t h ir d -le v e l n o d e t h ir d -le v e l n o d e t h ir d -le v e l n o d e
  • 16. An Analogy – E.164 • Root node maintained by the ITU (call it “+”) • Top level nodes = country codes (1, 81, etc) • Second level nodes = regional codes (1-808, 81-3, etc.) "+ " . .. 1 81 ... . .. 202 650 808 3 4 852 381 779 3489 6003 6003 5226 2024
  • 17. Labels • Each node in the tree must have a label – A string of up to 63 bytes "" – RFCs 852 and 1123 define legal characters for “hostnames” • A-Z, 0-9, and “-” only with a-z and A-Z treated as the same t o p -1 t o p -2 t o p -3 • Sibling nodes must have unique labels • The null label is reserved for the root node fo o fo o fo o a t& t bar baz
  • 18. Domain Names • A domain name is the sequence of labels from a node to the root, separated by dots (“.”s), read left to right – The name space has a maximum depth of 127 levels – Domain names are limited to 255 characters in length • A node’s domain name identifies its position in the name space "" com edu gov in t m il net o rg n o m in u m m e ta in fo b e r k e le y nwu n a to a rm y uu w est e a st w w w d a k o ta to rn a d o
  • 19. Subdomains • One domain is a subdomain of another if its top node is a descendant of the other’s top node • More simply, one domain is a subdomain of another if its domain name ends in the other’s domain name – So sales.nominum.com is a subdomain of • nominum.com & com – nominum.com is a subdomain of com
  • 20. Delegation • Administrators can create subdomains to group hosts – According to geography, organizational affiliation etc. • An administrator of a domain can delegate responsibility for managing a subdomain to someone else • The parent domain retains links to the delegated subdomain
  • 21. Delegation Creates Zones • Each time an administrator delegates a subdomain, a new unit of administration is created – The subdomain and its parent domain can now be administered independently – These units are called zones – The boundary between zones is a point of delegation in the name space • Delegation is good: it is the key to scalability
  • 22. Dividing a Domain into Zones nominum.com domain "" nominum.com zone .a rp a .c o m .e d u ams.nominum.com rwc.nominum.com zone zone acm ebw n o m in u m n e ts o l rw c ww w ftp am s m o lo k a i skye gouda cheddar
  • 23. Overview • Introduction to the DNS • DNS Components – The name space – The servers – The resolvers • DNS Structure and Hierarchy • The DNS in Context
  • 24. Name Servers • Name servers store information about the name space in units called “zones” – The name servers that load a complete zone are said to “have authority for” or “be authoritative for” the zone • Usually, more than one name server are authoritative for the same zone – This ensures redundancy and spreads the load • Also, a single name server may be authoritative for many zones
  • 25. Name Servers and Zones 128.8.10.5 serves Name Servers Zones data for both nominum.com and isc.org zones 128.8.10.5 nominum.com 202.12.28.129 serves data for nominum.com 202.12.28.129 zone only isc.org 204.152.187.11 serves data for 204.152.187.11 isc.org zone only
  • 26. Types of Name Servers • Two main types of servers – Authoritative – maintains the data • Master – where the data is edited • Slave – where data is replicated to – Caching – stores data obtained from an authoritative server • Other types exist… • No special hardware necessary
  • 27. Name Server Architecture • You can think of a name server as part of: – database server, answering queries about the parts of the name space it knows about (i.e., is authoritative for), – cache, temporarily storing data it learns from other name servers, and – agent, helping resolvers and other name servers find data
  • 28. Name Server Architecture Zone From data Name Server Process disk file Authoritative Data Master Zone transfer server (primary master and slave zones) Cache Data (responses from other name servers) Agent (looks up queries on behalf of resolvers)
  • 29. Authoritative Data Name Server Process Authoritative Data (primary master and slave zones) Response Cache Data (responses from other name servers) Agent (looks up queries Resolver Query on behalf of resolvers)
  • 30. Using Other Name Servers Name Server Process Authoritative Data (primary master and slave zones) Response Cache Data Response (responses from Another other name servers) name Agent Query server (looks up queries Resolver Query on behalf of resolvers)
  • 31. Cached Data Name Server Process Authoritative Data (primary master and slave zones) Response Cache Data (responses from other name servers) Agent (looks up queries Resolver Query on behalf of resolvers)
  • 32. Overview • Introduction to the DNS • DNS Components – The name space – The servers – The resolvers • DNS Structure and Hierarchy • The DNS in Context
  • 33. Name Resolution • Name resolution is the process by which resolvers and name servers cooperate to find data in the name space • Closure mechanism for DNS? – Starting point: the names and IP addresses of the name servers for the root zone (the “root name servers”) – The root name servers know about the top-level zones and can tell name servers whom to contact for all TLDs
  • 34. Name Resolution • A DNS query has three parameters: – A domain name (e.g., www.nominum.com), • Remember, every node has a domain name! – A class (e.g., IN), and – A type (e.g., A) – http://network-tools.com/nslook/ • Upon receiving a query from a resolver, a name server – 1) looks for the answer in its authoritative data and its cache – 2) If step 1 fails, the answer must be looked up
  • 35. The Resolution Process • Let’s look at the resolution process step-by- step: annie.west.sprockets.com ping www.nominum.com.
  • 36. The Resolution Process • The workstation annie asks its configured name server, dakota, for www.nominum.com’s address dakota.west.sprockets.com What’s the IP address of www.nominum.com? annie.west.sprockets.com ping www.nominum.com.
  • 37. The Resolution Process • The name server dakota asks a root name server, m, for www.nominum.com’s address m.root-servers.net dakota.west.sprockets.com What’s the IP address of www.nominum.com? annie.west.sprockets.com ping www.nominum.com.
  • 38. The Resolution Process • The root server m refers dakota to the com name servers • This type of response is called a “referral” m.root-servers.net dakota.west.sprockets.com Here’s a list of the com name servers. Ask one of them. annie.west.sprockets.com ping www.nominum.com.
  • 39. The Resolution Process • The name server dakota asks a com name server, f, for www.nominum.com’s address What’s the IP address of www.nominum.com? m.root-servers.net dakota.west.sprockets.com f.gtld-servers.net annie.west.sprockets.com ping www.nominum.com.
  • 40. The Resolution Process • The com name server f refers dakota to the nominum.com name servers Here’s a list of the nominum.com name servers. Ask one of them. m.root-servers.net dakota.west.sprockets.com f.gtld-servers.net annie.west.sprockets.com ping www.nominum.com.
  • 41. The Resolution Process • The name server dakota asks an nominum.com name server, ns1.sanjose, for www.nominum.com’s address What’s the IP address of www.nominum.com? m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net f.gtld-servers.net annie.west.sprockets.com ping www.nominum.com.
  • 42. The Resolution Process • The nominum.com name server ns1.sanjose responds with www.nominum.com’s address m.root-servers.net dakota.west.sprockets.com Here’s the IP ns1.sanjose.nominum.net address for www.nominum.com f.gtld-servers.net annie.west.sprockets.com ping www.nominum.com.
  • 43. The Resolution Process • The name server dakota responds to annie with www.nominum.com’s address Here’s the IP address for www.nominum.com m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net f.gtld-servers.net annie.west.sprockets.com ping www.nominum.com.
  • 44. Resolution Process (Caching) • After the previous query, the name server dakota now knows: – The names and IP addresses of the com name servers – The names and IP addresses of the nominum.com name servers – The IP address of www.nominum.com • Let’s look at the resolution process again annie.west.sprockets.com ping ftp.nominum.com.
  • 45. Resolution Process (Caching) • The workstation annie asks its configured name server, dakota, for ftp.nominum.com’s address m.root-servers.net dakota.west.sprockets.com What’s the IP address ns1.sanjose.nominum.net of ftp.nominum.com? f.gtld-servers.net annie.west.sprockets.com ping ftp.nominum.com.
  • 46. Resolution Process (Caching) • dakota has cached an NS record indicating ns1.sanjose is an nominum.com name server, so it asks it for ftp.nominum.com’s address What’s the IP address of ftp.nominum.com? m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net f.gtld-servers.net annie.west.sprockets.com ping ftp.nominum.com.
  • 47. Resolution Process (Caching) • The nominum.com name server ns1.sanjose responds with ftp.nominum.com’s address m.root-servers.net dakota.west.sprockets.com Here’s the IP address for ns1.sanjose.nominum.net ftp.nominum.com f.gtld-servers.net annie.west.sprockets.com ping ftp.nominum.com.
  • 48. Resolution Process (Caching) • The name server dakota responds to annie with ftp.nominum.com’s address Here’s the IP address for ftp.nominum.com m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net f.gtld-servers.net annie.west.sprockets.com ping ftp.nominum.com.
  • 49. Iterative Name Resolution • The principle of iterative name resolution.
  • 50. Recursive Name Resolution (1) • The principle of recursive name resolution.
  • 51. Recursive Name Resolution (2) Server for Should Passes to Receives Returns to Looks up node resolve child and caches requester cs <ftp> #<ftp> -- -- #<ftp> vu <cs,ftp> #<cs> <ftp> #<ftp> #<cs> #<cs, ftp> ni <vu,cs,ftp> #<vu> <cs,ftp> #<cs> #<vu> #<cs,ftp> #<vu,cs> #<vu,cs,ftp> root <ni,vu,cs,ftp> #<nl> <vu,cs,ftp> #<vu> #<nl> #<vu,cs> #<nl,vu> #<vu,cs,ftp> #<nl,vu,cs> #<nl,vu,cs,ftp> • Recursive name resolution of <nl, vu, cs, ftp>. Name servers cache intermediate results for subsequent lookups.
  • 52. Iterative versus Recursive Resolution (1) Performance-wise, whichcaching? Which works better with is cost? How about communication better?
  • 53. Iterative versus Recursive Resolution (2) • Performance-wise, which is better? – Recursive method puts higher performance demand on each name server • Which works better with caching? – Recursive method works better with caching • How about communication cost? – Recursive method can reduce communication cost
  • 54. Iterative versus Recursive Resolution (3) • The comparison between recursive and iterative name resolution with respect to communication costs.
  • 55. What can be Resolved? • Any name in the name space • Class – Internet (IN), Chaos (CH), Hesiod (HS) • Type – Address (A, AAAA, A6) – Pointer (PTR, NAPTR) – Aliases (CNAME, DNAME) – Security related (TSIG, SIG, NXT, KEY) – Etc.
  • 56. DNS Name Space (3) Type of Associated Description record entity SOA Zone Holds information on the represented zone A Host Contains an IP address of the host this node represents MX Domain Refers to a mail server to handle mail addressed to this node SRV Domain Refers to a server handling a specific service NS Zone Refers to a name server that implements the represented zone CNAME Node Symbolic link with the primary name of the represented node PTR Host Contains the canonical name of a host HINFO Host Holds information on the host this node represents TXT Any kind Contains any entity-specific information considered useful • The most important types of resource records forming the contents of nodes in the DNS name space.
  • 57.
  • 58. Using Alias/Symbolic Link for Mobile Entities Tracking (1) • What if ftp.cse.unl.edu moves to a machine named www.cse.unl.edu • Change the DNS database of the NS of cse.unl.edu • Look up is not affected
  • 59. Using Alias/Symbolic Link for Mobile Entities Tracking (2) • What if ftp.cse.unl.edu moves to a machine named ftp.unl.edu • The name ftp.cse.unl.edu should not change • Solution 1: Record the new address in NS for cse.unl.edu • Solution 2: Record the new name in NS for cse.unl.edu
  • 60. Solution1: Recording the Address • Look up operation is not affected • What if ftp.cse.unl.edu moves again from a machine named ftp.unl.edu to a machine named www.cs.unomaha.edu? – Record the new address in NS for cse.unl.edu – No longer a local update
  • 61. Solution2: Recording the Name/Alias • Look up operation is affected – If site moves n times, we need n look ups – Not suitable for highly mobile entities • Do not need to modify the data in cse.unl.edu if the ftp service moves again
  • 62. Overview • Introduction to the DNS • DNS Components • DNS Structure and Hierarchy • The DNS in Context
  • 63. DNS Structure and Hierarchy • The DNS imposes no constraints on how the DNS hierarchy is implemented except: – A single root – The label restrictions – Create a host with a name a.wonderful.world? • If a site is not connected to the Internet, it can use any domain hierarchy it chooses – Can make up whatever TLDs (top level domains) you want • Connecting to the Internet implies use of the existing DNS hierarchy
  • 64. Top-level Domain (TLD) Structure • In 1983 (RFC 881), the idea was to have TLDs correspond to network service providers – e.g., ARPA, DDN, CSNET, etc. • Bad idea: if your network changes, your email address changes • By 1984 (RFC 920), functional domains was established – e.g., GOV for Government, COM for commercial, EDU for education, etc. • RFC 920 also – Provided for country domains – Provided for “Multiorganizations” • Large, composed of other (particularly international) organizations – Provided a stable TLD structure until 1996 or so
  • 65. Internet Corporation for Assigned Names and Numbers (ICANN) • ICANN’s role: to oversee the management of Internet resources including – Addresses • Delegating blocks of addresses to the regional registries – Protocol identifiers and parameters • Allocating port numbers, etc. – Names • Administration of the root zone file • Oversee the operation of the root name servers
  • 66. The Root Nameservers • Modification of the root zone file is pointless unless that zone file is published • The root zone file is published on 13 servers, “A” through “M”, around the Internet • Root name server operations currently provided by volunteer efforts by a very diverse set of organizations
  • 67. Root Name Server Operators Nameserver Operated by: A Verisign (US East Coast) B University of S. California –Information Sciences Institute (US West Coast) C Cogent Communications (US East Coast) D University of Maryland (US East Coast) E NASA (Ames) (US West Coast) F Internet Software Consortium (US West Coast) G U. S. Dept. of Defense (ARL) (US East Coast) H U. S. Dept. of Defense (DISA) (US East Coast) I Autonomica (SE) J Verisign (US East Coast) K RIPE-NCC (UK) L ICANN (US West Coast) M WIDE (JP)
  • 68. The Current TLDs "." G e n e r ic T L D s C o u n try C o d e T L D s I n t e rn a t io n a l T L D s U S Legacy TLDs (g T L D s ) (c c T L D s ) ( iT L D s ) (u s T L D s ) CO M AF IN T G O V C o m m e r c i a l O r g a n iz a t i o n s A fg h a n is t a n I n t e r n a t io n a l T r e a t y O r g a n iz a t io n s G o v e r n m e n t a l O r g a n iz a t io n s NET AL ARPA M IL N e tw o rk In fra s tru c tu re A l b a n ia ( T r a n s it io n D e v ic e ) M ilit a r y O r g a n iz a t io n s O RG DZ EDU O th e r O r g a n iz a t io n s A l g e r ia E d u c a t io n a l I n s t i t u t i o n s ... YU Y u g o s l a v ia ZM Z a m b ia ZW Z im b a b w e
  • 69. Registries, Registrars, and Registrants • A codification of roles in the operation of a domain name space • Registry – the name space’s database – the organization which has edit control of that database – The organization which runs the authoritative name servers for that name space • Registrar – the agent which submits change requests to the registry on behalf of the registrant • Registrant – The entity which makes use of the domain name
  • 70. Registries, Registrars, and Registrants Registry updates Master zone updated Registry Zone DB Slaves Registrar submits updated add/modify/delete to registry Registrar Registrar Registrar End user requests add/modify/delete Registrants Registrants
  • 71. The “Generic” Top-Level Domains (gTLDs) • .COM, .NET, and .ORG – By far the largest top level domains on the Internet today – Essentially no restriction on what can be registered • Verisign received the contract for the registry for .COM, .NET, and .ORG – also a registrar for these TLDs
  • 72. Overview • Introduction to the DNS • DNS Components • DNS Hierarchy • The DNS in Context
  • 73. Load Concerns • DNS can handle the load – DNS root servers get approximately 3000 queries per second • Empirical proofs (DDoS attacks) show root name servers can handle 50,000 queries per second – Limitation is network bandwidth, not the DNS protocol – in-addr.arpa zone, which translates numbers to names, gets about 2000 queries per second
  • 74.
  • 75. Performance Concerns • DNS is a very lightweight protocol – Simple query – response • Any performance limitations are the result of network limitations – Speed of light – Network congestion – Switching/forwarding latencies
  • 76. Security Concerns • Base DNS protocol (RFC 1034, 1035) is insecure – “Spoof” attacks are possible • DNS Security Enhancements (DNSSEC, RFC 2565) remedies this flaw – But creates new ones • DoS attacks • Amplification attacks • DNSSEC strongly discourages large flat zones – Hierarchy (delegation) is good