>Usage
The command dig is a command-line tool used to query DNS (Domain Name System) servers to obtain information about domain names, IP addresses, mail servers, and other DNS records. It is often used for troubleshooting DNS issues and for performing queries to look up domain-related information.
When you run dig with a domain name or an IP address, it sends a request to the DNS system and then, returns detailed information about the domain's DNS configuration. This includes the associated IP address, mail server settings and other related information. It helps you understand how a domain is set up and whether there are any issues with its DNS configuration.
>Synopsis
>Options
+stats
The command +stats will show statistics about the query, including how long it took to resolve and how many DNS servers were queried.
Example:
+stats
> dig +stats example.com
;; Query time: 45 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Nov 14 12:35:00 UTC 2024
;; MSG SIZE rcvd: 65