Lab 1 - Command Line Networking Tools
Due: Wednesday January 13, 2010 by the start of class
If you do not have a Sleipnir account, see Steve Garcia to pick up your
Sleipnir account. All labs and homework assignments should be submitted
from your Sleipnir account.
There are several command line tools in Unix/Linux systems that can give
you information about certain aspects of TCP/IP networking. This lab will
investigate the following tools:
- dig
- This tool gives you information about DNS (domain name) records. The
most simple use of dig is to look up the IP address for a given domain
name or vis versa. It can also give you much more information, such as the
"start of authority" (soa) or "mail exchanger" (mx) for the domain.
Examples:
dig www.google.com
dig -x 136.168.201.112
dig soa www.cs.csub.edu
See "man dig" for more information.
- ping
- This tool sends a query to the destination server to see if it is still
responding to packets. A response to ping means the destination is online.
Ping will tell you how long it took for the packets to travel if there is a
response. If there is no response, the server may be offline or just blocking
ping requests. See "man ping" for more information.
Usage: ping <IP | domain name>
- traceroute
- This tool attempts to determine the route taken to the destination machine
and how long it takes to travel to each node along the route. It is helpful
for determining where network connectivity is lost when one cannot connect to
a remote machine or for seeing where lag is occuring when a connection is
laggy. See "man traceroute" for more information.
Usage: tracreroute <IP | domain name>
Log in to Sleipnir and try these tools. Give different domain names and IP
addresses to each one to see what happens.
Writeup
Answer the following questions and send the writeup to my Sleipnir account.
Use only plain text, Open Office or PDF formats for your writeup.
Each question is worth 2 points.
- Write a paragraph about what happened when you tried using these tools
with various domain names and IP addresses as suggested above.
- The dig command can be used to obtain information from the DNS records
for a given domain name or IP address. What is the output for the following
commands and what is the difference between them?
- dig www.cs.csub.edu
- dig soa www.cs.csub.edu
- You are getting probes from some host in the 209.9.244.* (Class C) network. Which of the following commands will find the Start of Authority record for that network and why?
- dig soa 224.9.209.in-addr.arpa
- dig soa 209.9.224
- ping 224.9.209.in-addr.arpa
- You are attempting to connect to ftp.foo.com and get the error message
--- unknown host ftp.foo.com ---
What is the likely problem and what commands would you use to investigate the problem?
- Suppose instead you got the message
Trying 208.207.151.35 ...
... Connection timed out.
How does this differ from the previous error message? What could be causing the issue? How would you investigate it?