drill(1)
π NAME π
okay bestie, welcome to drill(1) β the General Commands Manual page for a tool that pulls all sorts of info out of the DNS. Itβs specifically designed to be used with DNSSEC.
The name drill is a pun on dig. With drill you should be able to get even more information than with dig.
If no arguments are given, class defaults to IN and type to A. The server(s) specified in /etc/resolv.conf are used to query against.
- name β ask for this name.
- @server β send the query to this server. If not specified, use the nameservers from
/etc/resolv.conf. - type β ask for this RR type. If type is not given on the command line it defaults to
A. Except when doing a reverse lookup, when it defaults toPTR. - class β use this class when querying.
β¨ SYNOPSIS β¨
drill [ OPTIONS ] name [ @server ] [ type ] [ class ]
π¦ DESCRIPTION π¦
drill is a tool designed to get all sorts of information out of the DNS. It is specifically designed to be used with DNSSEC.
The name drill is a pun on dig. With drill you should be able get even more information than with dig.
If no arguments are given class defaults to IN and type to A. The server(s) specified in /etc/resolv.conf are used to query against.
- name β Ask for this name.
- @server β Send to query to this server. If not specified use the nameservers from
/etc/resolv.conf. - type β Ask for this RR type. If type is not given on the command line it defaults to
A. Except when doing a reverse lookup when it defaults toPTR. - class β Use this class when querying.
πΈ SAMPLE USAGE πΈ
drill mx miek.nlβ Show the MX records of the domainmiek.nldrill -S jelte.nlnetlabs.nlβ Chase any signatures in thejelte.nlnetlab.nldomain. This option is only available when ldns has been compiled with openssl-support.drill -TD www.example.comβ Do a DNSSEC (-D) trace (-T) from the rootservers down towww.example.com. This option only works when ldns has been compiled with openssl support.drill -s dnskey jelte.nlnetlabs.nlβ Show the DNSKEY record(s) forjelte.nlnetlabs.nl. For each found DNSKEY record also print the DS record.
π OPTIONS π
-Dβ Enable DNSSEC in the query. When querying for DNSSEC types (DNSKEY,RRSIG,DSandNSEC) this is not automatically enabled.-Tβ Trace name from the root down. When using this option the@serverarguments is not used.-Sβ Chase the signature(s) ofnameto a known key or as high up in the tree as possible.-IIPv4 or IPv6 address β Source address to query from. The source address has to be present on an interface of the host runningdrill.-Vlevel β Be more verbose. Set level to5to see the actual query that is sent.-Qβ Quiet mode, this overrules-V.-ffile β Read the query from a file. The query must be dumped with-w.-ifile β read the answer from the file instead from the network. This aids in debugging and can be used to check if a query on disk is valid. If the file contains binary data it is assumed to be a query in network order.-wfile β Write an answer packet to file.-qfile β Write the query packet to file.-vβ Showdrill's version.-hβ Show a short help message.
β¨ QUERY OPTIONS β¨
-4β Stay on ip4. Only send queries to ip4 enabled nameservers.-6β Stay on ip6. Only send queries to ip6 enabled nameservers.-aβ Use the resolver structure's fallback mechanism if the answer is truncated (TC=1). If a truncated packet is received and this option is set,drillwill first send a new query with EDNS0 buffer size4096.
If the EDNS0 buffer size was already set to 512+ bytes, or the above retry also results in a truncated answer, the resolver structure will fall back to TCP.
-bsize β Use size as the buffer size in the EDNS0 pseudo RR.-cfile β Use file instead of/etc/resolv.conffor nameserver configuration.-ddomain β When tracing (-T), start from this domain instead of the root.-tβ Use TCP/IP when querying a server-kkeyfile β Use this file to read a (trusted) key from. When this options is givendrilltries to validate the current answer with this key. No chasing is done. Whendrillis doing a secure trace, this key will be used as trust anchor. Can contain a DNSKEY or a DS record.
Alternatively, when DNSSEC enabled tracing (-TD) or signature chasing (-S), if -k is not specified, and a default trust anchor (/etc/trusted-key.key) exists and contains a valid DNSKEY or DS record, it will be used as the trust anchor.
-omnemonic β Use this option to set or unset specific header bits. A bit is set by using the bit mnemonic in CAPITAL letters. A bit is unset when the mnemonic is given in lowercase. The following mnemonics are understood bydrill:QR,qr: set, unsetQueRy(default: on)AA,aa: set, unsetAuthoritative Answer(default: off)TC,tc: set, unsetTrunCated(default: off)RD,rd: set, unsetRecursion Desired(default: on)CD,cd: set, unsetChecking Disabled(default: off)RA,ra: set, unsetRecursion Available(default: off)AD,ad: set, unsetAuthenticated Data(default: off)
Thus: -o CD, will enable Checking Disabled, which instructs the cache to not validate the answers it gives out.
-pport β Use this port instead of the default of53.-rfile β When tracing (-T), use file as a root servers hint file.-sβ When encountering a DNSKEY print the equivalent DS also.-uβ Use UDP when querying a server. This is the default.-wfile β write the answer to a file. The file will contain a hexadecimal dump of the query. This can be used in conjunction with-f.-xβ Do a reverse lookup. The type argument is not used, it is preset toPTR.-y<name:key[:algo]>β specify named base64 tsig key, and optional an algorithm (defaults tohmac-md5.sig-alg.reg.int)-zβ don't randomize the nameserver list before sending queries.
π EDNS QUERY OPTIONS π
+nsidβ When set, this EDNS option includes an EDNS name server ID request in the query.
π₯ EXIT STATUS π₯
The exit status is 0 if the looked up answer is secure and trusted, or insecure. The exit status is not 0 if the looked up answer is untrusted or bogus, or an error occurred while performing the lookup.
π FILES π
/etc/trusted-key.keyβ The file from which trusted keys are loaded when no-koption is given.
π¦ SEE ALSO π¦
π AUTHOR π
Jelte Jansen and Miek Gieben. Both of NLnet Labs.
π REPORTING BUGS π
Report bugs to <dns-team@nlnetlabs.nl>.
π BUGS π
This section is empty in the original page, bestie. Just a heading and vibes.
π COPYRIGHT π
Copyright (c) 2004-2008 NLnet Labs. Licensed under the revised BSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
π SEE ALSO π
okay bestie, thatβs the whole page! Cute sign-off: this is drill(1) from the General Commands Manual, dated 28 May 2006 πβ¨ Go query something iconic.
π¦ where this page comes from
- arch rolling: ldns 1.9.2-1 Β· custom:BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms