dig (domain information groper) is a network administration command-line tool for querying Domain Name System (DNS) servers.
dig is useful for network troubleshooting and for educational purposes.
dig can operate in interactive command line mode or in batch mode by reading requests from an operating system file.
When a specific name server is not specified in the command invocation, it will use the operating system’s default resolver, usually configured via the resolv.conf file. Without any arguments it queries the DNS root zone.
Make sure you read the
dig manual here or on your Linux machine:
For start, let’s query Google’s DNS server for all A records that point to a specific DOMAIN:
$ dig A +additional +multiline +trace +dnssec <DOMAIN>. @22.214.171.124