← 返回命令列表

Linux command

adig 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

adig [example.com]

Example

adig -d [example.com]

Example

adig -s [1.2.3.4] [example.com]

Example

adig -T [port] [example.com]

Example

adig -U [port] [example.com]

说明

adig prints information received from Domain Name System (DNS) servers. It performs DNS lookups and displays the results, similar to dig but built on the c-ares asynchronous resolver library. The tool supports querying specific record types such as A, AAAA, MX, NS, CNAME, SOA, and others. It can direct queries to a particular DNS server and use custom TCP or UDP port numbers for the connection. Debug output is available for troubleshooting resolution issues.

参数

-d
Display extra debugging output
-s server
Connect to a specific DNS server IP address
-T port
Use a specific TCP port to connect to the DNS server
-U port
Use a specific UDP port to connect to the DNS server
-t type
Query for a specific record type (A, AAAA, MX, NS, etc.)

FAQ

What is the adig command used for?

adig prints information received from Domain Name System (DNS) servers. It performs DNS lookups and displays the results, similar to dig but built on the c-ares asynchronous resolver library. The tool supports querying specific record types such as A, AAAA, MX, NS, CNAME, SOA, and others. It can direct queries to a particular DNS server and use custom TCP or UDP port numbers for the connection. Debug output is available for troubleshooting resolution issues.

How do I run a basic adig example?

Run `adig [example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d do in adig?

Display extra debugging output