Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Interpretation of commonly used commands in dig

Shulou Source: shulou.com Published: 2022-06-01 03:24:17 10月05日 Update

@: 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

Tags: Domain name query server service information address host task slogan multiple instance instruction data file method standard standard time type China local machine Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Microsoft NVidia macOS