Forrest logo
back to the dig tool

dig:tldr:23c2e

dig: Get all types of records for a given domain name.
$ dig ${example-com} ANY
try on your machine

The dig command is a network administration command-line tool used to query DNS (Domain Name System) servers. It helps retrieve DNS information such as IP addresses associated with domain names, mail exchange records, and more.

In the given command, ${example-com} is a placeholder representing a domain name. It could be any valid domain name, like google.com, example.net, stackoverflow.com, etc.

The ANY parameter in the command specifies the DNS record type to be queried. It stands for "any record" and instructs dig to retrieve all available DNS records for the given domain name. This includes A records (IPv4 addresses), AAAA records (IPv6 addresses), MX records (mail exchange), NS records (name servers), CNAME records (canonical name), and other records associated with the specified domain.

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