The Application Layer: DNS

Similar documents
DNS: Domain Name System

Domain Name System Richard T. B. Ma

Domain Name System (or Service) (DNS) Computer Networks Term B10

How To Map Between Ip Address And Name On A Domain Name System (Dns)

Chapter 2 Application Layer

internet technologies and standards

DATA COMMUNICATOIN NETWORKING

CS 355. Computer Networking. Wei Lu, Ph.D., P.Eng.

CMPE 80N: Introduction to Networking and the Internet

FTP: the file transfer protocol

CS 43: Computer Networks Naming and DNS. Kevin Webb Swarthmore College September 17, 2015

DNS: Domain Name System

Domain Name System (DNS)

Domain Name System DNS

DNS and P2P File Sharing

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

Domain Name System (DNS) RFC 1034 RFC

DNS. Spring 2016 CS 438 Staff 1

Application Layer. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

Naming and the DNS. Focus. How do we name hosts etc.? Application Presentation Topics. Session Domain Name System (DNS) /URLs

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting, NTP

Domain Name System (DNS) Reading: Section in Chapter 9

DNS and electronic mail. DNS purposes

Domain Name System (DNS)

2.5 DNS The Internet s Directory Service

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

FTP: the file transfer protocol

NET0183 Networks and Communications

Lecture 2 CS An example of a middleware service: DNS Domain Name System

Network programming, DNS, and NAT. Copyright University of Illinois CS 241 Staff 1

3. The Domain Name Service

CS 348: Computer Networks. - DNS; 22 nd Oct Instructor: Sridhar Iyer IIT Bombay

1 Introduction: Network Applications

Applications & Application-Layer Protocols: The Domain Name System and Peerto-Peer

C 1. Last Time. CSE 486/586 Distributed Systems Domain Name System. Review: Causal Ordering. Review: Causally Ordered Multicast.

The Domain Name System

Computer Networks & Security 2014/2015

HW2 Grade. CS585: Applications. Traditional Applications SMTP SMTP HTTP 11/10/2009

The Application Layer. CS158a Chris Pollett May 9, 2007.

Internet-Praktikum I Lab 3: DNS

The Domain Name System

Communicating Applications

Chapter 2 Application Layer. Lecture 5 FTP, Mail. Computer Networking: A Top Down Approach

Chapter 23 The Domain Name System (DNS)

Motivation. Domain Name System (DNS) Flat Namespace. Hierarchical Namespace

DNS: Domain Names. DNS: Domain Name System. DNS: Root name servers. DNS name servers

Applications and Services. DNS (Domain Name System)

Lecture 5: Network Attacks I. Course Admin

Domain Name System (DNS)

Network(Security(Protocols(

CS43: Computer Networks . Kevin Webb Swarthmore College September 24, 2015

CSE/ISE 311: Systems Administra5on Networking 2

Application-layer protocols

CSCI-1680 SMTP Chen Avin

Resilient Networking. Overview of DNS Known attacks on DNS Denial-of-Service Cache Poisoning. Securing DNS Split-Split-DNS DNSSEC.

Network Fundamentals Carnegie Mellon University

DNS Domain Name System

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ MEng. Nguyễn CaoĐạt

The Domain Name System (DNS)

Distributed Systems. 09. Naming. Paul Krzyzanowski. Rutgers University. Fall 2015

CS3250 Distributed Systems

CS640: Computer Networks. Naming /ETC/HOSTS

CS244A Review Session Routing and DNS

CS3600 SYSTEMS AND NETWORKS

FTP and . Computer Networks. FTP: the file transfer protocol

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers

DNS Basics. DNS Basics

Introduction to Computer Networks

Domain Name System (DNS) Fundamentals

Part 5 DNS Security. SAST01 An Introduction to Information Security Martin Hell Department of Electrical and Information Technology

The Domain Name System (DNS)

Chakchai So-In, Ph.D.

Domain Name System (DNS) Omer F. Rana. Networks and Data Communications 1

Introduction to Network Operating Systems

Homework 2 assignment for ECE374 Posted: 02/20/15 Due: 02/27/15

Chapter 2 Application Layer

How do I get to

Internet Security [1] VU Engin Kirda

Application Layer. CMPT Application Layer 1. Required Reading: Chapter 2 of the text book. Outline of Chapter 2

DNS. Computer Networks. Seminar 12

- Domain Name System -

Computer Networks: Domain Name System

Internet Technology 2/13/2013

HTG XROADS NETWORKS. Network Appliance How To Guide: EdgeDNS. How To Guide

Transcription:

Recap SMTP and email The Application Layer: DNS Smith College, CSC 9 Sept 9, 0 q SMTP process (with handshaking) and message format q Role of user agent access protocols q Port Numbers (can google this) v SMTP v POP 0 v IMAP 3 v HTTP 80 v (DNS 3 over UDP) Scenario: Alice sends message to Bob Sample SMTP interaction user agent mail server 3 mail server user agent q In the following interaction with SMTP, which lines are v Handshaking v Transfer of message v Closure outgoing message queue user mailbox -3 -

Sample SMTP interaction fcapmaster:~ jcardell$ telnet smtp.smith.edu! Trying 3.9..3...! Connected to baton.smith.edu.! Escape character is '^]'.! 0 baton.smith.edu ESMTP Sendmail 8.3.8/8.3.8; Tue, Sep 0 :37:00-000!! C: HELO jbc.edu! S: 0 baton.smith.edu Hello [3.9.0.8], pleased to meet you! C: MAIL FROM: <judy@jbc.edu>! S: 0..0 <judy@jbc.edu>... Sender ok! C: RCPT TO: <jcardell@smith.edu>! S: 0.. <jcardell@smith.edu>... Recipient ok! C: DATA! S: 3 Enter mail, end with "." on a line by itself! C: to: Easter@Bunny.hop! C: from: Tooth@Fairy.fly! C: subject: How s Business?! C:! C: Hello Hoppy! C: Checking in to see how you re doing.! C:.! S: 0.0.0 s8gfb0q007 Message accepted for delivery! C: QUIT! Mail message format * Example of the actual message NOT part of the SMTP handshaking process q header lines, e.g., v To: S:.0.0 baton.smith.edu closing connection! - - v From: v Subject: different from SMTP commands! q body v the message, ASCII characters only header body blank line TODAY: Domain Name System q The directory system for the Internet v Used by other application layer protocols v via socket programming q Maps a hostname to an IP address v Host names use natural, human, language URL such as www.google.com v IP addresses are numerical locators used by computers (more detail in chapter ) 3 bits, bytes, in dot notation DNS: a distributed, hierarchical database Root DNS Servers com DNS servers org DNS servers edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers poly.edu umass.edu DNS servers DNS servers 7-8 a host, or client, wants the IP address for www.google.com ) Client (local server) queries root server to find the.com DNS server ) Client queries.com DNS server to get google.com DNS server 3) Client queries google.com DNS server to get the IP address for www.google.com

DNS: root name servers q contacted by local name server that can not resolve name q root name server: v contacts authoritative name server if name mapping not known v gets mapping v returns mapping to local name server e. NASA Mt View, CA f. Internet Software C. Palo Alto, CA (and 8 other sites) c. Cogent, Herndon, VA ( other sites) d. U Maryland College Park, MD h. ARL Aberdeen, MD j. Verisign, Dulles VA (9 other sites ) a. Verisign, Los Angeles CA ( other sites) b. USC-ISI Marina del Rey, CA l. ICANN Los Angeles, CA ( other sites) g. US DoD Columbus, OH ( other sites) k. RIPE London (7 other sites) i. Netnod, Stockholm (37 other sites) m. WIDE Tokyo ( other sites) 3 root name servers worldwide TLD & Authoritative Servers top-level domain (TLD) servers: v responsible for com, org, net, edu, aero, jobs, museums, and all top-level country domains, e.g.: uk, fr, ca, jp v Network Solutions maintains servers for.com TLD v Educause for.edu TLD authoritative DNS servers: v organization s own DNS server(s), providing authoritative hostname to IP mappings for organization s named hosts v can be maintained by organization or service provider -9-0 Local DNS name server q does not strictly belong to hierarchy q each ISP (residential ISP, company, university) has one v also called default name server q when host makes DNS query, query is sent to its local DNS server v has local cache of recent name-to-address translation pairs (but may be out of date) v acts as proxy, forwards query into hierarchy v When you connect to network, your host is given the IP address of the local DNS server - DNS name resolution example q host at www.smith.edu wants IP address for gaia.cs.umass.edu iterated query: v contacted server replies with name of server to contact v I don t know this name, but ask this server local DNS server dns.smith.edu 8 Requesting Host www.smith.edu root DNS server 3 7 TLD DNS server authoritative DNS server dns.cs.umass.edu gaia.cs.umass.edu - 3

DNS protocol, messages q query and reply messages, both with same message format bytes bytes DNS protocol, messages bytes bytes Message header v identification: bit # for query, reply to query uses same # v flags: query or reply recursion desired recursion available reply is authoritative identification flags # questions # answer RRs # authority RRs # additional RRs questions (variable # of questions) answers (variable # of RRs) authority (variable # of RRs) name, type fields for a query RRs in response to query records for authoritative servers identification flags # questions # answer RRs # authority RRs # additional RRs questions (variable # of questions) answers (variable # of RRs) authority (variable # of RRs) additional info (variable # of RRs) additional helpful info that may be used additional info (variable # of RRs) Application Layer -3 Application Layer - HTTP request message: general format Mail message format * Example of the actual message NOT part of the SMTP handshaking process q header lines, e.g., v To: v From: v Subject: different from SMTP commands! q body v the message, ASCII characters only header body blank line

Domain Name System protocol, messages Name, type fields for a query RRs in response to query records for authoritative servers additional helpful info that may be used DNS record format DNS: distributed db storing resource records (RR) q Type=A q Type=NS RR format: (name, value, type, ttl) v name is hostname v value is IP address v name is domain (e.g. smith.edu) v value is hostname of authoritative name server for this domain q Type=CNAME v name is alias name for some canonical (the real) name www.ibm.com is really servereast.backup.ibm.com v value is canonical name q Type=MX v value is name of mailserver associated with name 7 8 DNS records DNS: distributed db storing resource records (RR) DNS Records root DNS server RR format: (name, value, type, ttl) (hostname, IP address, A, ttl) (domain, hostname-dns-author-server, NS, ttl) (alias hostname, canonical name, CNAME, ttl) (alias hostname, mail server cname, MX, ttl) local DNS server dns.smith.edu 8 Requesting Host www.smith.edu 3 TLD DNS server 7 authoritative DNS server dns.cs.umass.edu + Type NS record with hostname of auth. server for the requested domain name + and Type A record for IP address of auth. server Type A record for IP address of hostname 9 gaia.cs.umass.edu -0

* Act out the DNS process * nslookup with Mac OS DNS protocol : query and reply messages, both with same message format Message header q identification: bit # for query, reply to query uses same # q flags q Number of records in the message itself 3 Summary of Application Design Elements q Message format v ASCII? Binary? v How handle multiple objects? q Number of connections v Persistent? Parallel connections? q State information? Stateless? q TCP or UDP (Transport Layer)? q Push or pull protocol? q How to find the server? client? peer? q Handshaking in the protocol? q Centralized? Decentralized?