Traceroute

From DreamHost
Jump to: navigation, search

Overview

Traceroute is a network diagnostic tool used to check the network between two locations. For example, to determine the cause of slowness or timeouts a traceroute must run from the starting point of a network connection to your DreamHost server.

When should I use Traceroute?

Below are some examples of when a Traceroute might be needed to troubleshoot an issue that you are experiencing.

Website slowness

If you notice your site running slow, run a traceroute from your computer to your website to see if there are networking issues between your location and the DreamHost server.

Email client timeouts

If you are experiencing issues related to your mail connection, run a traceroute to determine the quality of of the connection to the mail server. In order to do this, you must first find out which email server you are using.

To find out your email server:

  1. Go to the (Panel > ‘Billing & Account’ > ‘Manage Account’) page.
  2. Click the ‘Account Status’ link on the upper right.
    A menu expands that lists details for your account. Your email cluster appears at the end of the menu as shown in the following:
    02 Traceroute.fw.png
    • In this case, we see that we’re using the sub4 email cluster.
  3. Run a traceroute to sub4.homie.mail.dreamhost.com.
    The following example shows a traceroute running in Windows for for the sub4 mail server:
    01 Traceroute.fw.png

The above example shows the network hops to the server and lists no timeouts on the network connection. If timeouts are listed, there may be a network related issue occurring.

How to run a traceroute

Using Windows

  1. Open the Command Prompt.
  2. Type in the word ‘tracert’ followed by a space, and then followed by the name of the site/server to which you’d like to connect. For example, if you wish to connect to example.com you’d run this:
    tracert example.com
    
  3. Click the “Enter” key to run the tool.
    • You can also test your DreamHost mail server by running a traceroute to the mail subdomain. For example:
     
    tracert mail.example.com
    
    • Or, you can use the full mail servername as mentioned above.

Using Linux

For most Linux distributions, you’ll need to first install the traceroute package.

To install:

  1. Open your terminal.
  2. Run the following to install in Ubuntu:
    sudo apt-get install traceroute
    
  3. Once installed, you can run the command as follows:
    traceroute example.com
    
    • Some Linux variants require you to also specify the protocol after -I. For example:
    traceroute -I ICMP example.com
    

Mac OS X

To run traceroute:

  1. View the SSH for Mac OS X article for instructions on how to open your terminal.
  2. Run the following command.
    traceroute example.com

Another option is to use the Network Utility graphical program (usually found in the Utilities folder inside of Applications).

  1. Click the Traceroute button in the top bar.
  2. Type the server name.
  3. Click the Trace button.
    The Network Utility Traceroute results should look like this:
    03 Traceroute.fw.png

Copying and pasting the results

If you’d to share your results with a support representative, you’ll need to paste them into your ticket.

Windows
  1. In the Windows command prompt, right click and choose ‘Mark’.
  2. Drag your mouse over the entire area you wish to copy
  3. Right click again.

You can then paste into any text editor or your support ticket.

Another option is to have traceroute results written directly to a text file.

To create a text file of your traceroute results, run the following command:

tracert example.com > c:\tracert.txt

This creates a file named tracert.txt within your c:\ folder. You can select any folder in which you wish to save the file.

Mac & Linux

You can run the following command to write the results of traceroute to a file, and you can specify any location you wish.

In the following example, the results are written to a file named trace.txt under the user named ‘username’:

traceroute -I example.com > /home/username/trace.txt