← 返回命令列表

Linux command

drill 命令

文本

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

常用示例

Query A records

drill [example.com]

Query specific record

drill [example.com] [MX]

Use specific DNS

drill @[8.8.8.8] [example.com]

Trace delegation

drill -T [example.com]

Show DNSSEC

drill -D [example.com]

TCP instead of UDP

drill -t [example.com]

Reverse DNS lookup

drill -x [8.8.8.8]

说明

drill is a DNS lookup tool from the ldns library, designed as a modern alternative to dig. It performs DNS queries with particular emphasis on DNSSEC verification capabilities. The tool provides detailed output about DNS responses including flags, sections, and timing. The trace option follows the delegation chain from root servers, showing how DNS resolution works. drill's DNSSEC support includes signature validation and trust chain verification, making it valuable for debugging secure DNS configurations.

参数

-T
Trace from root to answer.
-D
Enable DNSSEC validation.
-t
Use TCP instead of UDP.
-x
Reverse DNS lookup.
-k _FILE_
Trust anchor file for DNSSEC.
-v
Verbose output.

FAQ

What is the drill command used for?

drill is a DNS lookup tool from the ldns library, designed as a modern alternative to dig. It performs DNS queries with particular emphasis on DNSSEC verification capabilities. The tool provides detailed output about DNS responses including flags, sections, and timing. The trace option follows the delegation chain from root servers, showing how DNS resolution works. drill's DNSSEC support includes signature validation and trust chain verification, making it valuable for debugging secure DNS configurations.

How do I run a basic drill example?

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

What does -T do in drill?

Trace from root to answer.