1 .TH "unbound\-host" "1" "Mar 2, 2016" "NLnet Labs" "unbound 1.5.8"
3 .\" unbound-host.1 -- unbound DNS lookup utility
5 .\" Copyright (c) 2007, NLnet Labs. All rights reserved.
7 .\" See LICENSE for the license.
12 \- unbound DNS lookup utility
31 uses the unbound validating resolver to query for the hostname and display
32 results. With the \fB\-v\fR option it displays validation
33 status: secure, insecure, bogus (security failure).
35 By default it reads no configuration file whatsoever. It attempts to reach
36 the internet root servers. With \fB\-C\fR an unbound config file and with
37 \fB\-r\fR resolv.conf can be read.
39 The available options are:
42 This name is resolved (looked up in the DNS).
43 If a IPv4 or IPv6 address is given, a reverse lookup is performed.
46 Show the version and commandline option help.
49 Enable verbose output and it shows validation results, on every line.
50 Secure means that the NXDOMAIN (no such domain name), nodata (no such data)
51 or positive data response validated correctly with one of the keys.
52 Insecure means that that domain name has no security set up for it.
53 Bogus (security failure) means that the response failed one or more checks,
54 it is likely wrong, outdated, tampered with, or broken.
57 Enable debug output to stderr. One \-d shows what the resolver and validator
58 are doing and may tell you what is going on. More times, \-d \-d, gives a
59 lot of output, with every packet sent and received.
62 Specify the class to lookup for, the default is IN the internet class.
65 Specify the type of data to lookup. The default looks for IPv4, IPv6 and
66 mail handler data, or domain name pointers for reverse queries.
69 Specify a public key to use as trust anchor. This is the base for a chain
70 of trust that is built up from the trust anchor to the response, in order
71 to validate the response message. Can be given as a DS or DNSKEY record.
72 For example \-y "example.com DS 31560 5 1 1CFED84787E6E19CCF9372C1187325972FE546CD".
75 Enables DNSSEC validation. Reads the root anchor from the default configured
76 root anchor at the default location, \fI/var/unbound/root.key\fR.
79 Reads keys from a file. Every line has a DS or DNSKEY record, in the format
80 as for \-y. The zone file format, the same as dig and drill produce.
82 .B \-F \fInamedkeyfile
83 Reads keys from a BIND\-style named.conf file. Only the trusted\-key {}; entries
87 Uses the specified unbound.conf to prime
91 Read /etc/resolv.conf, and use the forward DNS servers from there (those could
92 have been set by DHCP). More info in
94 Breaks validation if those servers do not support DNSSEC.
97 Use solely the IPv4 network for sending packets.
100 Use solely the IPv6 network for sending packets.
102 Some examples of use. The keys shown below are fakes, thus a security failure
105 $ unbound\-host www.example.com
107 $ unbound\-host \-v \-y "example.com DS 31560 5 1 1CFED84787E6E19CCF9372C1187325972FE546CD" www.example.com
109 $ unbound\-host \-v \-y "example.com DS 31560 5 1 1CFED84787E6E19CCF9372C1187325972FE546CD" 192.0.2.153
111 The unbound\-host program exits with status code 1 on error,
112 0 on no error. The data may not be available on exit code 0, exit code 1
113 means the lookup encountered a fatal error.
115 \fIunbound.conf\fR(5),