LinuxCommandLibrary

drill

TLDR

Query A records

$ drill [example.com]
copy
Query specific record type
$ drill [example.com] [MX]
copy
Use specific DNS server
$ drill @[8.8.8.8] [example.com]
copy
Trace delegation path
$ drill -T [example.com]
copy
Show DNSSEC information
$ drill -D [example.com]
copy
TCP instead of UDP
$ drill -t [example.com]
copy
Reverse DNS lookup
$ drill -x [8.8.8.8]
copy

SYNOPSIS

drill [options] name [@server] [type]

DESCRIPTION

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.

PARAMETERS

NAME

Domain name to query.
@SERVER
DNS server to query.
TYPE
Record type: A, AAAA, MX, NS, TXT, etc.
-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.

CAVEATS

Less widely installed than dig. Some output format differences from dig. DNSSEC validation requires proper trust anchor configuration.

HISTORY

drill was developed as part of the ldns library by NLnet Labs, creators of Unbound DNS. It was designed as a dig replacement with better DNSSEC support and cleaner output.

SEE ALSO

dig(1), nslookup(1), dog(1), unbound(8)

Copied to clipboard