Docsity

DNS and the Web - Networking - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download DNS and the Web - Networking - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

DNS and the Web

Taking Stock

  • Course so far
    • Overall architecture ( layers, protocols, inter-networking )
    • Network layer ( how we interconnect hosts and networks )
    • Transport layer ( E2E commn. that is better than best-effort)
  • What’s left?
    • Application layer  today
    • Lower layers (Link coding, Ethernet, Wireless)  next
    • Special topics (datacenters, security, SDN) last ~2 weeks

DNS

Internet Names & Addresses

  • Machine addresses: e.g., 169.229.131.
    • router-usable labels for machines
    • conforms to network structure (the “where”)
  • Machine names: e.g., instr.eecs.berkeley.edu
    • human-usable labels for machines
    • conforms to organizational structure (the “who”)
  • The Domain Name System (DNS) is how we map from one to the

other

5

Goals

  • No naming conflicts (uniqueness)
  • Scalable
    • many names
    • (secondary) frequent updates
  • Distributed, autonomous administration
    • Ability to update my own (machines’) names
    • Don’t have to track everybody’s updates
  • Highly available
  • Lookups are fast
  • Non-goal?: perfect consistency

Key idea: Hierarchy

Three intertwined hierarchies

  • Hierarchical namespace
    • As opposed to original flat namespace
  • Hierarchically administered
    • As opposed to centralized
  • (Distributed) hierarchy of servers
    • As opposed to centralized storage

Hierarchical Administration  A zone corresponds to an administrative authority that is responsible for that portion of the hierarchy  E.g., UCB controls names: *.berkeley.edu and *.sims.berkeley.edu

  • E.g., EECS controls names: *.eecs.berkeley.edu 10 root edu (^) com gov mil (^) org net uk fr berkeley ucla eecs (^) sims instr root edu (^) com gov mil (^) org net uk fr berkeley eecs (^) sims

Server Hierarchy

  • Top of hierarchy: Root servers
    • Location hardwired into other servers
  • Next Level: Top-level domain (TLD) servers
    • .com, .edu, etc.
    • Managed professionally
  • Bottom Level: Authoritative DNS servers
    • Actually store the name-to-address mapping
    • Maintained by the corresponding administrative authority

DNS Root

  • Located in Virginia, USA
  • How do we make the root scale? Verisign, Dulles, VA

DNS Root Servers

  • 13 root servers (labeled A-M; see http://www.root-servers.org/) B USC-ISI Marina del Rey, CA L ICANN Los Angeles, CA E NASA Mt View, CA F Internet Software Consortium Palo Alto, CA I Autonomica, Stockholm K RIPE London M WIDE Tokyo A Verisign, Dulles, VA C Cogent, Herndon, VA D U Maryland College Park, MD G US DoD Vienna, VA H ARL Aberdeen, MD J Verisign

Anycast in a nutshell

  • Routing finds shortest paths to destination
  • If several locations are given the same address, then the network will

deliver the packet to the closest location with that address

  • This is called “anycast”
    • Very robust
    • Requires no modification to routing algorithms

Using DNS (Client/App View)

  • Two components
    • Local DNS servers
    • Resolver software on hosts
  • Local DNS server (“default name server”)
    • Usually near the endhosts that use it
    • Hosts configured with local server address (e.g., /etc/resolv.conf)

or learn server via a host configuration protocol (e.g., DHCP)

  • Client application
    • Obtain DNS name (e.g., from URL)
    • Do gethostbyname() to trigger DNS request to its local DNS server

Recursive vs. Iterative Queries

  • Recursive query
    • Ask server to get answer for you
    • E.g., request 1 and response 8
  • Iterative query
    • Ask server who to ask next
    • E.g., all other request- response pairs requesting host cis.poly.edu root DNS server local DNS server dns.poly.edu 1

authoritative DNS server dns.cs.umass.edu

TLD DNS server

DNS Records

  • DNS info. stored as resource records (RRs)
    • RR is (name, value, type, TTL)
  • Type = A: (Address)
    • name = hostname
    • value = IP address
  • Type = NS: (Name Server)
    • name = domain
    • value = name of dns server for domain 20