Interpretation of commonly used commands in dig
@: specify the domain name server for domain name resolution
Example: dig @ 1.2.4.8 www.baidu.com
-b: when the host has more than one IP address, specify which local IP address to use to send the domain name query request to the domain name server
-f: specifies that dig runs in batches, and the specified file holds information about DNS tasks that require batch processing of queries.
-P: specify the port number used by the domain name server
-t: specifies the DNS data type to query
-x: perform reverse domain name query
-4: use IPv4
-6: use IPv6
-h: displays instruction help information.
Example:
C:\ Users\ FFHK > dig @ 1.2.4.8 www.baidu.com
; DiG 9.15.3 @ 1.2.4.8 www.baidu.com
; (1 server found)
;; global options: + cmd
;; Got answer:
;;-> > HEADER