DNS Info Zone Commands,DNS Traceroute command explained

Traceroute command explained

If you want to know everything about the traceroute command, you came to the right place. Here you will learn what is it, why to use it and how.

Traceroute command explained

Traceroute command, just like the rest of the popular network commands, is a simple small software with command-line interface (CLI) and comes built-in on most Linux distros, BSD distros and even macOS.

It is easy to understand its purpose, to trace the route of a query, from your computer, through all the routers (hops) on the way, to the target that you set.

The result will be data on each hop (host name and IP address), showing if the packets of data arrive and after what amount of time, and which was the next hop.

Traceroute options for Windows, Linux, and macOS

The pros of using traceroute

Although it is really small, the traceroute utility software can offer great benefits:

  • Small and light. There are other software, more eye-catchy with graphic interface, but the traceroute defend itself with very little size, and fast response. 
  • Show you the complete route to the target of your choice. It can show each hop with its hostname and IP address, and time it take for each of these points. See the slow router on the way. The information might help you to improve your network, depending if you have control on that particular part of the network infrastructure.
  • See the slow router on the way. The information might help you to improve your network, depending if you have control on that particular part of the network infrastructure.

Where can I find the traceroute command?

The traceroute command, just like ping command, dig command, and host command is already pre-built into your OS. You get to the traceroute command, through the Terminal application. Open it and let’s try this out.

You can use it in two ways:

Question structureExample
traceroute + hostnametraceroute bing.com
traceroute + IP addresstraceroute 204.79.197.200

*We are using bing.com for the example and its IP address. You can use the one you like.

Traceroute syntax

traceroute [options] host_Address [pathlength] (Linux)

Adicional options for refine traceroute command

Use the syntax and these options and you can create better traceroute queries. You can modify many elements including number of packets sent, intervals between them, time to wait, port for the probes, and more.

OptionDescription
–helpHelp.
-dDebugging.
-FNo fragmentation allowed.
-f first_ttlSet TTL on the first sent packet. .
-g gatewaySet gateway.
-i interfaceChoose interface for the queries.  
-m max_ttlChoose the maximum number of hops. If you don’t use this option, the default value is 30.
-NThe number of simultaneous queries sent.
-nDon’t resolve IP addresses.
-p portChoose port for the query.
-tChoose type-of-service.
-w waittimeChoose time to wait for replies.
-q nqueriesSent the number of packets sent. If you don’t use the option, the default value will be 3.
-rIf the target is on the same network, bypass the routing tables and send probes directly.
-S srcaddrIPv6 only – source address.
-eSee ICMP extensions.
-AAS lookups on for each hop.
-VVersion of the traceroute command.
-UChoose UDP and port for the probes. If you don’t change it, the default value is 53.
-ULChoose UDPLITE for the probes.
-P protocolChoose IP protocol for the probes.
-IChoose ICMP echo for the probes.
-TChoose TCP SYN for the probes.
-4Choose IPv4 for the probes.
-6Choose IPv6 for the probes.

Conclusion

So should you use the traceroute command? It is there already, it works the way it suppose and it is easy to learn. You should at least try it. See if it works for your network diagnostic, and include it in your network diagnostic tool kit. Why not using the traceroute for seeing the complete route to a target, the ping command if you want to check an individual host, or the dig command for other information?

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

DNS branding

What is DNS branding, and why is it useful?What is DNS branding, and why is it useful?

DNS branding is a feature that many hosting providers love to read on the page of a DNS provider. That means that they will have an easy way to put their tag on and expand their services by providing DNS services to their clients without the obligation to mention the DNS provider. 

It also serves big companies to hide the original DNS provider and show their brand name instead. 

What is DNS branding? 

DNS branding is a service that a DNS provider offers that gives the freedom to the client to put their domain name instead of the provider’s domain name for the nameservers. 

Advantages of using DNS branding

(more…)

Secondary DNS

Get familiar with Secondary DNSGet familiar with Secondary DNS

Using the Secondary DNS to preserve a trustworthy copy of your data is an excellent idea. You’ve probably come to this post because you’ve heard about it and want to increase the reliability of your DNS. Yes, secondary DNS is really beneficial for providing peace of mind, especially in the current world where DDoS attacks and other DNS issues are so common. Let’s clarify things a bit more and go through the details.

DNS zone – the definition

To handle the DNS namespace more accurately, the DNS server can hold a large number of zones. The DNS zone is a part of that namespace.  It’s an area where you can find more organized and controllable DNS components. It would be best to direct your domain to various servers, such as mail servers, web servers, and so on, to function effectively and precisely. You can create additional DNS records in the DNS zone to perform this task. The DNS zone is where you’ll save all of your DNS records. 

(more…)

Domain Name System DNS

Domain Name System (DNS) explainedDomain Name System (DNS) explained

Are you interested in the Domain Name System (DNS)? To get into this topic is like getting into another world—a tech one with its own rules and processes. If you are ready, just fasten your belt, and let’s go into DNS!

What is DNS?

DNS is a system, a naming database, for locating and translating Internet domain names into IP addresses. Think about it, like a directory or, more modernly, like your mobile’s contacts list where names and their corresponding numbers are correctly matched. 

DNS directory is distributed worldwide, and it works daily, helping to search and reach the millions of existing domain names every day. 

Domain Name System explained in details

What is DNS hierarchy?

(more…)