← 返回命令列表

Linux command

dug 命令

文本

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

常用示例

Check

dug [domain]

Check

dug [domain] [A|AAAA|MX|TXT|NS|CNAME]

Check

dug [domain] --resolvers [resolver1,resolver2]

Output

dug [domain] --json

说明

dug is a command-line tool for checking DNS propagation across the globe. It queries multiple DNS resolvers worldwide to determine if a DNS record has propagated and shows response times from different geographic locations. The tool is useful for verifying DNS changes after updating records, diagnosing DNS issues, and understanding how DNS caching affects record visibility. It can check various record types against a default set of public resolvers or custom ones.

参数

-t, --type _TYPE_
Record type: A, AAAA, MX, TXT, NS, CNAME, SOA, PTR (default: A)
-r, --resolvers _LIST_
Comma-separated list of resolvers to query
--json
Output results in JSON format
--csv
Output results in CSV format
-v, --verbose
Enable verbose output
--timeout _SECONDS_
Query timeout (default: 5)
-h, --help
Display help and exit
--version
Display version and exit

FAQ

What is the dug command used for?

dug is a command-line tool for checking DNS propagation across the globe. It queries multiple DNS resolvers worldwide to determine if a DNS record has propagated and shows response times from different geographic locations. The tool is useful for verifying DNS changes after updating records, diagnosing DNS issues, and understanding how DNS caching affects record visibility. It can check various record types against a default set of public resolvers or custom ones.

How do I run a basic dug example?

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

What does -t, --type _TYPE_ do in dug?

Record type: A, AAAA, MX, TXT, NS, CNAME, SOA, PTR (default: A)