"dig" Command

Learn all about dig command

HOME

dig - Domain Information Groper

It is used for querying DNS servers for various DNS records, making it very useful for troubleshooting DNS problems.

root:~# man dig
          
By default, with no name server specified the DNS resolver in the /etc/resolv.conf file will be used, dig will also look for an A record if no other options specified.