1 / 24

EE 122: Lecture 20 (Domain Name Server - DNS)

EE 122: Lecture 20 (Domain Name Server - DNS). Ion Stoica Nov 15, 2001. (* based on the some on-line slides of J. Kurose & K. Rose and of Raj Jain). Names & Addresses. What is a name? What is an address? What is an identifier?

carlow
Download Presentation

EE 122: Lecture 20 (Domain Name Server - DNS)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EE 122: Lecture 20(Domain Name Server - DNS) Ion Stoica Nov 15, 2001 (* based on the some on-line slides of J. Kurose & K. Rose and of Raj Jain)

  2. Names & Addresses • What is a name? • What is an address? • What is an identifier? • What is the difference between name, addresses, and identifiers? istoica@cs.berkeley.edu

  3. Internet Centric View • Addresse: • Says how to reach an object  it has location semantics associated to it • It’s in a format easy to process by computers • Name: • Does not have any location semantics associated to it • It’s in a format easier to understand/read/remember by people • Examples: • IP address: 128.32.27.22 • Name: amber.berkeley.edu istoica@cs.berkeley.edu

  4. General View • Differentiating between names and addresses introduces several consistency problems: • What is a multicast IP address? • What is the IP address of a mobile host? • What is cnri.reston.va.us? • Solution: interpret an address as just another name (that may happen to have location semantics) istoica@cs.berkeley.edu

  5. Name Service • Name space: define the set of possible names • Hierarchical (e.g., Unix and Windows file names) • Flat • Bindings: the mapping between names and values (e.g., bindings can be implemented by using tables) • Resolution: procedure that, when invoked with a name, returns the corresponding value • Name server: specific implementation of a resolution mechanism that is available on the network and that can be queried by sending messages istoica@cs.berkeley.edu

  6. General View • In general there are multiple mappings Host name: amber.berkeley.edu DNS resolution IP address: 128.32.27.22 ARP (Address Resolution Protocol) Ethernet MAC address: 12.34.56.78.90.12 istoica@cs.berkeley.edu

  7. Mapping • Multiple names can map onto the same name at the underlying level • Example: www.berkeley.edu and amber.berkeley.edu can map to the same machine (I.e., the same IP address) • One name can map onto multiple names at the underlying level • Example: www.yahoo.com can be mapped to multiple machines istoica@cs.berkeley.edu

  8. Name Hierarchy root edu gov mil net uk fr com org cmu berkeley eecs sims divine istoica@cs.berkeley.edu

  9. Name Hierarchy • Unique domain suffix is assigned by the Internet Authority • The domain administrators have complete control over the domain • No limit on the number of subdomains or number of levels • Name space is not related with the physical interconnection • Geographical hierarchy is allowed (e.g., cnri.reston.va.us) • A name could be a domain or an individual objects istoica@cs.berkeley.edu

  10. Top Level Domains istoica@cs.berkeley.edu

  11. DNS Name Servers • Why not centralize DNS? • Single point of failure • Traffic volume • Distant centralized database • Maintenance • Doesn’t scale! istoica@cs.berkeley.edu

  12. Server Hierarchy: Zones • A zone corresponds to an administrative authority that is responsible for that portion of the hierarchy root edu gov mil net uk fr com org cmu berkeley eecs sims divine istoica@cs.berkeley.edu

  13. Server Hierarchy • Server are organized in hierarchies • Each server has authority over a portion of the hierarchy • A single node in the name hierarchy cannot be split • A server maintains only a subset of all names • It needs to know other servers that are responsible for the other portions of the hierarchy istoica@cs.berkeley.edu

  14. Server Hierarchy • Authority: each server has the name to address translation table for all names in the name space it controls • Every server knows the root • Root server knows about all top-level domains istoica@cs.berkeley.edu

  15. DNS Name Servers • No server has all name-to-IP address mappings • Local name servers: • Each ISP (company) has local (default) name server • Host DNS query first go to local name server • Authoritative name servers: • For a host: stores that host’s IP address, name • Can perform name/address translation for that host’s name istoica@cs.berkeley.edu

  16. Contacted by local name server that can not resolve name Root name server: Contacts authoritative name server if name mapping not known Gets mapping Returns mapping to local name server ~ Dozen root name servers worldwide DNS: Root Name Servers istoica@cs.berkeley.edu

  17. Host whsitler.cs.cmu.edu wants IP address of www.berkeley.edu 1. Contacts its local DNS server, mango.srv.cs.cmu.edu 2. mango.srv.cs.cmu.edu contacts root name server, if necessary 3. Root name server contacts authoritative name server, ns1.berkeley.edu, if necessary local name server mango.srv.cs.cmu.edu Simple DNS Example root name server 2 4 3 5 authorititive name server ns1.berkeley.edu 1 6 requesting host whistler.cs.cmu.edu www.berkeley.edu istoica@cs.berkeley.edu

  18. Root name server: May not know authoritative name server May know intermediate name server: who to contact to find authoritative name server? local name server mango.srv.cs.cmu.edu intermediate name server (edu server) DNS Example root name server 6 2 7 3 5 4 1 8 authoritative name server ns1.berkeley.edu requesting host whistler.cs.cmu.edu www.berkeley.edu istoica@cs.berkeley.edu

  19. Recursive query: Puts burden of name resolution on contacted name server Heavy load? Iterated query: Contacted server replies with name of server to contact “I don’t know this name, but ask this server” local name server mango.srv.cs.cmu.edu intermediate name server (edu server) DNS: Iterated Queries root name server iterated query 2 3 4 5 7 6 1 8 authoritative name server ns1.berkeley.edu requesting host whistler.cs.cmu.edu istoica@cs.berkeley.edu www.berkeley.edu

  20. DNS: distributed database storing resource records (RR) Type=NS name is domain (e.g. foo.com) value is IP address of authoritative name server for this domain RR format: (name, value, type,ttl) DNS Records • Type=CNAME • name is an alias name for some “cannonical” (the real) name • value is cannonical name • Type=A • name is hostname • value is IP address • Type=MX • value is hostname of mailserver associated with name istoica@cs.berkeley.edu

  21. DNS protocol : query and reply messages, both with same message format DNS protocol, messages msg header • identification: 16 bit # for query, reply to query uses same # • flags: • query or reply • recursion desired • recursion available • reply is authoritative istoica@cs.berkeley.edu

  22. DNS protocol, messages Name, type fields for a query RRs in reponse to query Records for authoritative servers Additional “helpful” info that may be used istoica@cs.berkeley.edu

  23. Discussion • Robustness • Use multiple replicas, but… • …what if someone mounts a denial of service attack to all root servers? • Performance: • Use caching to speed-up subsequent queries to the same name • What about update/notify? • Mechanisms under design by IETF (RFC 2136; http://www.ietf.org/html.charters/dnsind-charter.html) istoica@cs.berkeley.edu

  24. Summary • Address: just another form of name that may have location semantics • DNS: maps names onto IP address • Name space and the administration are both hierarchical • Replication: used to increase robustness • Caching: used to increase the performance istoica@cs.berkeley.edu

More Related