Files
tldr/pages.zh/linux/adig.md

24 lines
516 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# adig
> 打印从域名系统DNS服务器接收到的信息。
> 更多信息:<https://manned.org/adig>。
- 显示主机名的 A默认记录
`adig {{example.com}}`
- 显示额外的 [d]ebug 调试输出:
`adig -d {{example.com}}`
- 连接到特定的 DNS [s]erver
`adig -s {{1.2.3.4}} {{example.com}}`
- 使用特定的 TCP 端口连接到 DNS 服务器:
`adig -T {{port}} {{example.com}}`
- 使用特定的 UDP 端口连接到 DNS 服务器:
`adig -U {{port}} {{example.com}}`