-D Enable DNSSEC in the query. When querying for DNSSEC types (DNSKEY, RRSIG, DS and NSEC) this is
not automatically enabled.
-T Trace name from the root down. When using this option the @server arguments is not used.
-S Chase the signature(s) of 'name' to a known key or as high up in the tree as possible.
-IIPv4orIPv6address
Source address to query from. The source address has to be present on an interface of the host
running drill.
-Vlevel
Be more verbose. Set level to 5 to 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 Show drill's version.
-h Show a short help message.
QUERYOPTIONS-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, drill will first send a new query with EDNS0 buffer
size 4096.
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.conf for 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 given drill tries to validate the
current answer with this key. No chasing is done. When drill is 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 (/usr/share/dns/root.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 by drill:
QR, qr: set, unset QueRy (default: on)
AA, aa: set, unset Authoritative Answer (default: off)
TC, tc: set, unset TrunCated (default: off)
RD, rd: set, unset Recursion Desired (default: on)
CD, cd: set, unset Checking Disabled (default: off)
RA, ra: set, unset Recursion Available (default: off)
AD, ad: set, unset Authenticated Data (default: off)
Thus: -oCD, will enable Checking Disabled, which instructs the cache to not validate the answers
it gives out.
-pport
Use this port instead of the default of 53.
-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 to PTR.
-y<name:key[:algo]>
specify named base64 tsig key, and optional an algorithm (defaults to hmac-md5.sig-alg.reg.int)
-z don't randomize the nameserver list before sending queries.
EDNSQUERYOPTIONS+nsid When set, this EDNS option includes an EDNS name server ID request in the query.