COEN 445 Communication Networks and Protocols Lab 3

Slides:



Advertisements
Similar presentations
Introduction to Networks
Advertisements

METEOROLOGICAL TELECOMMUNICATION AND METCAP A GLANCE TO NETWORK BRIEFLY Ömer Hüdai ALBAYRAK 2010ALANYA.
SYSTEM ADMINISTRATION Chapter 19
Nassau Community College
Chapter 13: Troubleshooting network connectivity Unit objectives Identify TCP/IP troubleshooting tools Discuss the Telnet utility and its functions Discuss.
COEN 445 Communication Networks and Protocols Lab 4
CCNA 1 v3.1 Module 11 Review.
1 Computer Networks and Communications [Δίκτυα Υπολογιστών και Επικοινωνίες] Lectures 8&9: Internet Protocols in Detail – TCP/IP Univ. of the Aegean Financial.
The Internet Useful Definitions and Concepts About the Internet.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 18 Host Configuration: DHCP.
Domain Name System: DNS
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
Vocabulary URL = uniform resource locator: web address protocol –set of rules that networked computers follow in order to share data and coordinate communications.
IP Address Allocation, Resolution CIS 81 and CST 311 Rick Graziani Cabrillo College Spring 2006.
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
1 Lab 3 Transport Layer T.A. Youngjoo Han. 2 Transport Layer  Providing logical communication b/w application processes running on different hosts 
IT 210 The Internet & World Wide Web introduction.
Cisco Discovery Working at a Small-to-Medium Business or ISP CHAPTER 7 ISP Services Jr.
Internet Control Message Protocol (ICMP)
Name Resolution Domain Name System.
Chapter 9 - Applications We will look at three main applications DNS (name services) SMTP ( ) HTTP (World Wide Web) Our main focus will be on DNS.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
ITS CSS Desktop Support Introduction to networking concepts Last updated: 9/30/2008 by pxahelp.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 ISP Services Working at a Small-to-Medium Business or ISP – Chapter 7.
IP Address Allocation, Resolution. Address Allocation.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
ASHIMA KALRA IMPORTANT TERMS.  WWW WWW  URL URL  HTTP PROTOCOL HTTP PROTOCOL  PROXIES PROXIES.
NSLOOKUP CNIT 102 Substitute lecture Sam Bowne.
COMT 6251 Network Layers COMT Overview IP and general Internet Operations Address Mapping ATM LANs Other network protocols.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 6: Name Resolution.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 6: Name Resolution.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
DNS ITL see: Douglas Comer: Internetworking with TCP/IP, volume I” pages
Domain Name System CH 25 Aseel Alturki
TCP/IP Transport and Application (Topic 6)
Day 14 Introduction to Networking. Unix Networking Unix is very frequently used as a server. –Server is a machine which “serves” some function Web Server.
COEN 445 Communication Networks and Protocols Lab 5
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
1 Web Servers (Chapter 21 – Pages( ) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System Architecture.
Practice 4 – traffic filtering, traffic analysis
Networks Part 3: Packet Paths + Wireshark NYU-Poly: HSWP Instructor: Mandy Galante.
Advanced Packet Analysis and Troubleshooting Using Wireshark 23AF
COMP2322 Lab 1 Introduction to Wireshark Weichao Li Jan. 22, 2016.
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
COMP2322 Lab 3 DNS Steven Lee Feb. 19, Content Understand the Domain Name System (DNS). Analyze the DNS protocol with Wireshark. 2.
TCP/IP Protocol Suite 1 Chapter 17 Upon completion you will be able to: Domain Name System: DNS Understand how the DNS is organized Know the domains in.
“ is not to be used to pass on information or data. It should used only for company business!” – Memo from IBM Executive The Languages, Methods &
TCP/IP Illustrated, Volume 1: The Protocols Chapter 6. ICMP: Internet Control Message Protocol ( 월 ) 김 철 환
Ch 2. Application Layer Myungchul Kim
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Chapter 5c.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
Ping and Traceroute by Aleisa A. Drivere Supervisor Graciela Perera.
Understand Names Resolution
Networks Problem Set 3 Due Nov 10 Bonus Date Nov 9
Lab #1 ,Ipconfig & ping commands
Due: a start of class Oct 12
Networks Problem Set 4 Due Nov 19 Bonus Date Nov 16
Networks Problem Set 4 Due Dec 7 Bonus Date Dec 4
Networks Problem Set 3 Due Oct 29 Bonus Date Oct 26
Working at a Small-to-Medium Business or ISP – Chapter 7
Chapter 10: Application Layer
Chapter 19 Domain Name System (DNS)
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
Domain Name System: DNS
Windows Name Resolution
Presentation transcript:

COEN 445 Communication Networks and Protocols Lab 3 Wireshark Lab: DNS Claude Fachkha

Introduction Recall, a Domain Name System (DNS) translates hostnames to IP addresses, fulfilling a critical role in the Internet infrastructure. In this lab, we’ll take a closer look at the client side of DNS. Recall that the client’s role in the DNS is relatively simple – a client sends a query to its local DNS server, and receives a response back. As shown in Figures 2.21 and 2.22 in the textbook, much can go on “under the covers,” invisible to the DNS clients, as the hierarchical DNS servers communicate with each other to either recursively or iteratively resolve the client’s DNS query. From the DNS client’s standpoint, however, the protocol is quite simple – a query is formulated to the local DNS server and a response is received from that server. Before beginning this lab, you’ll probably want to review DNS by reading Section 2.5 of the text. In particular, you may want to review the material on local DNS servers, DNS caching, DNS records and messages, and the TYPE field in the DNS record.

1. nslookup nslookup tool allows the host running the tool to query any specified DNS server for a DNS record. An example is provided in the next slide. 1. Run nslookup to obtain the IP address of a Web server in Asia. What is the IP address of that server? 2. Run nslookup to determine the authoritative DNS servers for a university in Europe. 3. Run nslookup so that one of the DNS servers obtained in Question 2 is queried for the mail servers for Yahoo! mail. What is its IP address?

1. Nslookup (Cont.)

2. ipconfig ipconfig can be used to show your current TCP/IP information, including your address, DNS server addresses, adapter type and so on. Try to following commands: # ipconfig \all # ipconfig /displaydns # ipconfig /flushdns Or ifconfig

3. Tracing DNS with Wireshark Now that we are familiar with nslookup and ipconfig, we’re ready to get down to some serious business. Let’s first capture the DNS packets that are generated by ordinary Websurfing activity. Use ipconfig to empty the DNS cache in your host. Open your browser and empty your browser cache. Open Wireshark and enter “ip.addr == your_IP_address” into the filter, where you obtain your_IP_address with ipconfig. This filter removes all packets that neither originate nor are destined to your host. Start packet capture in Wireshark. With your browser, visit the Web page: http://www.ietf.org Stop packet capture. Or ifconfig

3. Tracing DNS with Wireshark (Cont.) 4. Locate the DNS query and response messages. Are then sent over UDP or TCP? 5. What is the destination port for the DNS query message? What is the source port of DNS response message? 6. To what IP address is the DNS query message sent? Use ipconfig to determine the IP address of your local DNS server. Are these two IP addresses the same? 7. Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”? 8. Examine the DNS response message. How many “answers” are provided? What do each of these answers contain? Or ifconfig

3. Tracing DNS with Wireshark (Cont.) 9. Consider the subsequent TCP SYN packet sent by your host. Does the destination IP address of the SYN packet correspond to any of the IP addresses provided in the DNS response message? 10. This web page contains images. Before retrieving each image, does your host issue new DNS queries? Or ifconfig

3. Tracing DNS with Wireshark (Cont.) Now let’s play with nslookup. Start packet capture. Do an nslookup on www.mit.edu Stop packet capture. Or ifconfig

3. Tracing DNS with Wireshark (Cont.) You should get a trace that looks something like the following: Or ifconfig

3. Tracing DNS with Wireshark (Cont.) We see from the previous screenshot that nslookup actually sent three DNS queries and received three DNS responses. For the purpose of this assignment, in answering the following questions, ignore the first two sets of queries/responses, as they are specific to nslookup and are not normally generated by standard Internet applications. You should instead focus on the last query and response messages. Or ifconfig

3. Tracing DNS with Wireshark (Cont.) 11. What is the destination port for the DNS query message? What is the source port of DNS response message? 12. To what IP address is the DNS query message sent? Is this the IP address of your default local DNS server? 13. Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”? 14. Examine the DNS response message. How many “answers” are provided? What do each of these answers contain? Or ifconfig

3. Tracing DNS with Wireshark (Cont.) Now repeat the previous experiment, but instead issue the command: nslookup –type=NS mit.edu Answer the following questions : 15. To what IP address is the DNS query message sent? Is this the IP address of your default local DNS server? 16. Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”? 17. Examine the DNS response message. What MIT name servers does the response message provide? Does this response message also provide the IP addresses of the MIT name servers? Or ifconfig

3. Tracing DNS with Wireshark (Cont.) Now repeat the previous experiment, but instead issue the command: nslookup www.aiit.or.kr bitsy.mit.edu Answer the following questions: 18. To what IP address is the DNS query message sent? Is this the IP address of your default local DNS server? If not, what does the IP address correspond to? 19. Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”? 20. Examine the DNS response message. How many “answers” are provided? What does each of these answers contain? Or ifconfig

References Online services - Computer Networking: A Top-Down Approach, 6/E James F. Kurose, University of Massachusetts, Amherst - See more at: Keith W. Ross, Polytechnic University, Brooklyn

Claude Fachkha c_fachkh@encs.concordia.ca