Common options:
-B: When the host has multiple IP addresses, specify which IP address to use to send Domain name query requests to the domain name server;
-f< file name;: Specifies that the dig is run as a batch, and the specified file holds the DNS task information that requires a batch query;
-P: Specifies the port number used by the domain name server;
-t< type;: Specifies the type of DNS data to query;
-X: Perform reverse domain name query;
Parameters:
Host: Specifies that you want to query the domain host
Query type: Specifies the type of DNS query
Query class: Specify the class for querying DNS
Query type:
A: View the host's IPv4 address AAAA: View the host's IPV6 address any: View all information about the host domain CNAME: find the official name corresponding to the alias Hinfo: Find the host's CPU and operating system type MINFO: Find mailbox information mx: Find mail exchange information ns: Find the domain name server for the host domain PTR: Finding a hostname that matches a given IP address RP: Lookup domain owner record SOA: Find SOA address within domain uinfo: Find user Information
Linux Dig Commands