

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























Department of Computer Science & Software Engineering Concordia University, Montreal, Canada These slides has mainly been extracted, modified and updated from original slides of : Computer Networking: A Top Down Approach, 6th edition Jim Kurose, Keith Ross Addison-Wesley, 2013 Additional materials have been extracted, modified and updated from: Understanding Communications and Networking, 3e by William A. Shay 2005 Copyright © 1996-2013 J.F Kurose and K.W. Ross Copyright © 2005 William A. Shay Copyright © 2018 Aiman Hanna All rights reserved
Domain Name System:
(^) name servers communicate to resolve names (address/name translation) (^) note: core Internet function, implemented as application-layer protocol (^) complexity at network’s “edge”; possibly a substantial delay
host aliasing : specify domain name as an alias of another (^) i.e. point ftp.example.com and www.example.com (an FTP server and a webserver running on two ports from a single IP address) to example.com (^) such domain names are referred to a Canonical Names ( CNAME s); the pointed-to domain name is an alias (^) a CNAME must point to another domain name; never to an IP address. In turn that pointed-to domain name points to the IP address (^) if the IP of the server ever changes, only one update to the DNS record is required for all CNAMEs
mail server aliasing (^) e-mail addresses need to be resolved as well; however the name e-mail server may be CNAME (^) i.e. an e-mail directed to [email protected] may seem to require resolving example.com; however the mail server at example.com may actually be a CNAME (i.e relay.west-coast.example.com) (^) DNS can be invoked by e-mail application to obtain the CNAME of an alias hostname, as well as the IP address of the host
Root DNS Servers com DNS servers org DNS servers^ edu DNS servers poly.edu DNS servers umass.edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers DNS: a distributed, hierarchical database client wants IP for www.amazon.com; 1st^ approx:
… …
Application Layer B 2- 8
(^) contacted by local name server that can not resolve name (^) root name server:
13 root name “servers” worldwide ( 937 instances as of, September 19, 2018) a. Verisign, Los Angeles CA (5 other sites) b. USC-ISI Marina del Rey, CA l. ICANN Los Angeles, CA (41 other sites) e. NASA Mt View, CA f. Internet Software C. Palo Alto, CA (and 48 other sites) i. Netnod, Stockholm (37 other sites) k. RIPE London (17 other sites) m. WIDE Tokyo (5 other sites) c. Cogent, Herndon, VA (5 other sites) d. U Maryland College Park, MD h. ARL Aberdeen, MD j. Verisign, Dulles VA (69 other sites ) g. US DoD Columbus, OH (5 other sites) DNS root servers - 2012
(^) also called “default name server”
(^) has local cache of recent name-to-address translation pairs (but may be out of date!) (^) acts as proxy, forwards query into hierarchy
requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu 1 2 3 4 5 6 authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server
host at cis.poly.edu wants IP address for gaia.cs.umass.edu
(^) contacted server replies with name of server to contact (^) “I don’t know this name, but ask this server” Note : call from cis.poly.edu is recursive; rest are iterative
a critically important feature of DNS improve delay performance & reduce DNS messages in the Internet once (any) name server learns of an address mapping, it caches it (^) cache entries timeout (disappear) after some time (TTL) (^) TLD servers typically cached in local name servers
cached entries may be out-of-date (best effort name-to-address translation!) (^) if name host changes IP address, may not be known Internet-wide until all TTLs expire update/notify mechanisms proposed IETF standard (^) RFC 2136
(^) each DNS reply may carry one or more RRs Example (^) Assume the DNS server is an authoritative server for a particular hostname (^) server will return Type A RR e.g., (gaia.cs.umass.edu, 145.119.96.44, A) (^) Note: This type may be returned by any non- authoritative server as well (i.e. from a previously cashed record) (^) Assume the DNS server is NOT an authoritative server for a particular hostname (^) server may return Type NS RR e.g., (umass.edu, dns.umass.edu , NS) As well as: e.g., (dns.umass.edu, 145.119.96.28, A)
(^) query and reply messages, both have same message format msg header (^) identification: 16 bit # for query, reply to query uses same # (^) flags: (^) 1-bit query or reply (^) 1-bit recursion desired (^) 1-bit recursion available (^) 1-bit reply is authoritative identification flags
questions (variable # of questions)
answers (variable # of RRs) authority (variable # of RRs) additional info (variable # of RRs) 2 bytes 2 bytes
(^) provide names, IP addresses of authoritative name server (primary and secondary) (^) registrar inserts two RRs into .com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, 212.212.212.1, A)
(^) type A record for www.networkuptopia.com; (^) type MX record for mail.networkutopia.com
(^) i.e. large-scale attack on October 21, 2002 using massive ping messages to the 13 root servers (^) Not successful to date
(^) Potentially more dangerous (^) i.e. send a massive number of DNS quires; which will not be filtered (^) Severity can still be mitigated (at least partially) by caching in local DNS servers