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 zone transfers

DNS Zone Transfers Explained: AXFR, IXFR, and Secure ConfigurationDNS Zone Transfers Explained: AXFR, IXFR, and Secure Configuration

Authoritative DNS must remain available even when one server is offline. A common design uses one primary server where administrators update the zone and one or more secondary servers that answer queries from synchronized copies. DNS zone transfers are the mechanism that keeps those copies current.

Two transfer types do most of the work: AXFR sends a complete zone, while IXFR sends incremental changes when both servers support it and suitable history is available. Used correctly, they improve resilience and reduce administrative duplication. Configured carelessly, however, they may expose a domain’s namespace or allow unauthorized systems to request sensitive zone data.

What is a DNS zone transfer?

A DNS zone is the administrative portion of the namespace served by a particular authority. It contains resource records and an SOA record with operational values, including a serial number. The primary server holds the editable source, while secondary servers maintain read-only copies received through zone transfer.

The distinction is covered in more detail in this guide to a Master DNS zone. The terminology “primary” and “secondary” describes where zone data is edited and replicated; it does not mean that clients must always prefer one authoritative server over another. Properly delegated authoritative servers can all answer public queries for the zone.

The role of the SOA serial number

The SOA serial number indicates which version of the zone a server holds. A secondary periodically checks the primary’s SOA record according to the refresh timer. If the primary has a newer serial, the secondary requests an update. Operators must increase the serial whenever zone content changes, otherwise a secondary may have no reason to retrieve the new version.

DNS NOTIFY speeds up synchronization

Waiting for the next refresh interval can delay propagation to secondary servers. DNS NOTIFY lets the primary signal that the zone has changed. The secondary then checks the SOA serial and initiates a transfer if necessary. NOTIFY accelerates the normal process; it does not replace serial comparison or authenticate the transfer by itself.

For a concise overview of zone files, primary and secondary zones, and both transfer modes, see the ClouDNS guide to DNS zone transfers.

AXFR: a complete zone transfer

AXFR transfers the full contents of a zone over a TCP connection. The response begins and ends with the zone’s SOA record, with the remaining records sent between them. A new secondary commonly uses AXFR for its initial copy because it does not yet have a local version from which to calculate changes.

A complete transfer is also useful when an incremental update cannot be produced, when the secondary’s copy is too old, or when administrators need to restore a known-good full version. The trade-off is efficiency: large zones consume more bandwidth and processing time when every record is sent after a small change.

IXFR: an incremental zone transfer

IXFR aims to send only the differences between serial versions. For a zone that changes frequently but has many stable records, that can substantially reduce transfer size. The primary needs access to the required change history, usually through a journal or equivalent mechanism, and the secondary must identify the version it currently holds.

IXFR is not guaranteed for every request. If the primary cannot build an incremental response from the requested serial, it may fall back to AXFR. Administrators should therefore permit and plan for full transfers even when IXFR is the routine path. Monitoring should measure both successful incremental updates and unexpected full-transfer frequency.

Why unrestricted transfers are risky

A public DNS server must answer ordinary queries, but it usually should not give an arbitrary requester a complete inventory of the zone. An unrestricted AXFR can reveal hostnames and records that make reconnaissance easier. Public records are not automatically secret, yet a convenient bulk listing may expose naming patterns, forgotten systems, infrastructure roles, or records that were published unintentionally.

The greater operational risk is accepting transfers or updates from an unauthorized peer. A secure design identifies exactly which servers may exchange data and verifies that the messages came from a trusted party. Network restrictions help, but cryptographic authentication is stronger than relying only on a source IP address.

How to secure DNS zone transfers

Allow only approved secondary servers

Configure the primary with an explicit allow-list for the IP addresses of authorized secondary servers. Do not use a broad network range unless every host in that range is trusted for zone access. On the secondary, specify the intended primary addresses rather than accepting data from arbitrary systems.

Authenticate transfers with TSIG

Transaction Signatures, or TSIG, use a shared secret and a keyed message authentication code to authenticate DNS messages. When both peers are configured with the same protected key, TSIG helps verify message origin and integrity. Use a modern supported algorithm, unique keys where practical, strict file permissions, secure key distribution, and a documented rotation process.

Protect the transport path when confidentiality matters

TSIG authenticates messages but does not encrypt the zone contents. If the network path is not trusted and confidentiality is required, place the transfer inside an appropriately secured private network, VPN, or other protected channel supported by the architecture. Firewall rules should restrict DNS transfer connections as an additional layer, not as the only control.

Separate public and private namespaces

Do not publish internal-only records in a public zone merely because transfers are restricted. Split-horizon designs and separate internal zones can limit exposure, but they require careful operational ownership. Confirm that every authoritative server serves the intended view and that transfer policies match each view.

Reliable primary and secondary operation

Secondary DNS provides more than a backup file. Multiple authoritative servers can improve availability, distribute query traffic, and reduce dependence on a single network or location. This overview of Secondary DNS explains the broader role of replicated authoritative service.

Operational resilience depends on timers as well as transfers. The SOA refresh value controls how often secondaries check for changes, retry determines when to try again after failure, and expire specifies how long a secondary may continue serving the zone without contacting its source. Values should fit the change rate and recovery objectives rather than being copied blindly from another domain.

Monitoring and troubleshooting checklist

  1. Compare SOA serials. Query each authoritative server directly and confirm that the serials converge after a change.
  2. Review transfer logs. Look for refused requests, authentication failures, unexpected AXFR fallbacks, timeouts, and transfers from unapproved addresses.
  3. Test from the secondary. Confirm network reachability to the primary over TCP and verify that firewalls, access lists, and TSIG names match.
  4. Check NOTIFY handling. Make sure notifications reach the intended servers and trigger a serial check rather than being silently discarded.
  5. Alert on stale data. Detect secondaries that lag behind the expected serial before the SOA expire timer becomes critical.
  6. Audit access regularly. Remove retired secondary addresses and unused keys, then test that unauthorized AXFR requests are refused.

External checks should also verify that every delegated nameserver answers consistently. The existing guide to DNS monitoring outlines useful availability and consistency signals beyond the transfer logs themselves.

The protocol behavior and interoperability requirements for full transfers are specified in RFC 5936: DNS Zone Transfer Protocol (AXFR).

Conclusion

AXFR and IXFR keep authoritative DNS servers synchronized: AXFR supplies a complete copy, while IXFR can deliver smaller incremental changes. A dependable deployment combines correct SOA serial management, NOTIFY, explicit peer restrictions, TSIG authentication, protected key handling, and monitoring for stale or unexpected transfers. These controls preserve the availability benefit of secondary DNS without offering the full zone to unauthorized systems.

DNS monitoring

DNS monitoring – Everything you need to knowDNS monitoring – Everything you need to know

The meaning of DNS monitoring

Your network monitoring system’s DNS monitoring is an essential component. Its goal is to ensure users can access the website or service they are using securely and dependably. In order to ensure optimal performance, DNS monitoring entails monitoring all Domain Name System activity.

DNS monitoring is beneficial for quickly discovering problems, spotting potential security breaches, and stopping malicious assaults. It necessitates locating DNS outages and regularly checking DNS records for unexpected changes. If an issue is discovered that could harm your website or business, it can be rectified immediately.

(more…)

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…)