MAN page from PLD drill-1.6.16-1.x86_64.rpm
drill
Section: User Commands (1)
Updated: 28 May 2006
Index NAME
drill - get (debug) information out of DNS(SEC)
SYNOPSIS
drill[
OPTIONS]
name[
@server][
type][
class]
DESCRIPTION
drill is a tool to designed to get all sorts of information out of theDNS. It is specificly designed to be used with DNSSEC.
The name drill is a pun on dig. With drill you should be ableget even more information than with dig.
If no arguments are given class defaults to 'IN' and type to 'A'. Theserver(s) specified in /etc/resolv.conf are used to query against.
nameAsk for this name.
@serverSend to query to this server. If not specified use the nameservers from/etc/resolv.conf.
typeAsk for this RR type. If type is not given on the command line it defaultsto 'A'. Except when doing to reverse lookup when it defaults to 'PTR'.
classUse this class when querying.
SAMPLE USAGE
drill mx miek.nlShow the MX records of the domain miek.nl
- drill -S jelte.nlnetlabs.nl
- Chase any signatures in the jelte.nlnetlab.nl domain. This option isonly available when ldns has been compiled with openssl-support.
- drill -TD www.example.com
- Do a DNSSEC (-D) trace (-T) from the rootservers down to www.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) for jelte.nlnetlabs.nl. For each found DNSKEYrecord also print the DS record.
OPTIONS
- -D
- Enable DNSSEC in the query. When querying for DNSSEC types (DNSKEY, RRSIG,DS and NSEC) this is
not automaticly enabled.- -T
- Trace
name from the root down. When using this option the @server andthe type arguments are not used.- -S
- Chase the signature(s) of 'name' to a known key or as high up inthe tree as possible.
- -V
level - Be more verbose. Set level to 5 to see the actual query that is sent.
- -Q
- Quiet mode, this overrules -V.
- -f
file - Read the query from a file. The query must be dumped with -w.
- -i file
- read the answer from the file instead from the network. This aidsin 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 innetwork order.
- -w file
- Write an answer packet to file.
- -q file
- Write the query packet to file.
- -v
- Show drill'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 answeris truncated (TC=1). If a truncated packet is received and thisoption 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 theabove retry also results in a truncated answer, the resolverstructure will fall back to TCP.
- -b
size - Use size as the buffer size in the EDNS0 pseudo RR.
- -c file
- Use file instead of /etc/resolv.conf for nameserver configuration.
- -d domain
- When tracing (-T), start from this domain instead of the root.
- -t
- Use TCP/IP when querying a server
- -k
keyfile - Use this file to read a (trusted) key from. When this options isgiven drill tries to validate the current answer with thiskey. No chasing is done. When drill is doing a secure trace, thiskey will be used as trust anchor. Can contain a DNSKEY or a DS record.
Alternatively, when DNSSEC enabled tracing (-TD) or signaturechasing (-S), if -k is not specified, and a default trust anchor(/etc/unbound/root.key) exists and contains a valid DNSKEY or DS record,it will be used as the trust anchor.
- -o mnemonic
- Use this option to set or unset specific header bits. A bit isset by using the bit mnemonic in CAPITAL letters. A bit is unset whenthe mnemonic is given in lowercase. The following mnemonics areunderstood 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: -o CD, will enable Checking Disabled, which instructs the cache to not validate the answers it gives out.
- -p port
- Use this port instead of the default of 53.
- -r file
- 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.
- -w
file - write the answer to a file. The file will contain a hexadecimal dumpof the query. This can be used in conjunction with -f.
- -x
- Do a reverse loopup. 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.
FILES
- /etc/unbound/root.key
- The file from which trusted keys are loaded when no -k option is given.
SEE ALSO
unbound-anchor(8)
AUTHOR
Jelte Jansen and Miek Gieben. Both of NLnet Labs.
REPORTING BUGS
Report bugs to <ldns-teamAATTnlnetlabs.nl>.
BUGS
COPYRIGHT
Copyright (c) 2004-2008 NLnet Labs.Licensed under the revised BSD license. There is NO warranty; not even for MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
dig(1),
RFC403{3,4,5}.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- SAMPLE USAGE
- OPTIONS
- QUERY OPTIONS
- FILES
- SEE ALSO
- AUTHOR
- REPORTING BUGS
- BUGS
- COPYRIGHT
- SEE ALSO
This document was created byman2html,using the manual pages.