Forrest logo
back to the dig tool

dig:tldr:d2206

dig: Perform iterative queries and display the entire trace path to resolve a domain name.
$ dig +trace ${example-com}
try on your machine

The command "dig +trace ${example-com}" is used to perform a DNS trace for the domain "example.com".

Here's a breakdown of what each part of the command does:

  • "dig" is a command-line tool used to query DNS servers and retrieve DNS-related information.
  • "+trace" is an option in the "dig" command that instructs it to follow the DNS resolution process from the root servers down to the authoritative DNS servers.
  • "${example-com}" is a placeholder for the domain name you want to trace. In this case, it should be replaced with "example.com" to trace the DNS resolution for that particular domain.

When you run this command, it will initiate the DNS trace process for the specified domain. The trace will start at the root DNS servers, which are the highest level in the DNS hierarchy, and it will follow the chain of intermediate servers until it reaches the authoritative DNS servers for the domain "example.com". Along the way, it will display the IP addresses of the DNS servers involved in the process and any relevant information about the DNS resolution. This trace can help troubleshoot DNS issues and provide a clear picture of how the domain's DNS resolution is working.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dig tool