Forrest logo
back to the kdig tool

kdig:tldr:d1c4a

kdig: Lookup the IP(s) associated with a hostname (A records) using DNS over TLS (DoT).
$ kdig -d @${8-8-8-8} +tls-ca +tls-host=${dns-google} ${example-com}
try on your machine

The command "kdig -d @${8-8-8-8} +tls-ca +tls-host=${dns-google} ${example-com}" is a command-line instruction using the kdig tool. Here's a breakdown of its components:

  • "kdig" is a utility for DNS lookup and troubleshooting.
  • "-d" activates the debug mode, providing more detailed information about the DNS query process.
  • "@${8-8-8-8}" specifies the DNS resolver to be used. Here, the IP address "8.8.8.8" is provided as the resolver. This address is commonly used for Google's public DNS resolver.
  • "+tls-ca" enables the use of Transport Layer Security (TLS) Certificate Authority (CA) for secure communication with the DNS resolver.
  • "+tls-host=${dns-google}" specifies the host for the TLS certificate. Here, the variable "${dns-google}" is expected to contain the value for the host, presumably Google's DNS service.
  • "${example-com}" is the domain or hostname for which the DNS query is being performed.

In summary, the command is using the kdig utility to perform a DNS lookup for the domain "example.com" using the specified DNS resolver (Google's public DNS) and enabling SSL/TLS for secure communication. The detailed debug output will be displayed during the process.

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 kdig tool