What is dig Command?

The dig command in Linux is a powerful DNS lookup tool to retrieve domain name system information.

Linux Guides

Perform a Basic Lookup

Use dig example.com to find the IP address and other DNS details of a domain.

Linux Guides

Query Specific Record Types

Run dig example.com A or dig example.com MX to fetch specific DNS record types.

Linux Guides

Use dig for Reverse DNS

Use dig -x <IP> to perform a reverse DNS lookup and find the associated domain name.

Linux Guides

Check DNS Propagation

Query multiple DNS servers with dig @<server> example.com to check domain propagation status.

Linux Guides