/usr/bin/unbound-host: invalid option -- '-'
Usage: unbound-host [-C configfile] [-vdhr46] [-c class] [-t type]
[-y key] [-f keyfile] [-F namedkeyfile] hostname
Queries the DNS for information.
The hostname is looked up for IP4, IP6 and mail.
If an ip-address is given a reverse lookup is done.
Use the -v option to see DNSSEC security information.
-t type what type to look for.
-c class what class to look for, if not class IN.
-y 'keystring' specify trust anchor, DS or DNSKEY, like
-y 'example.com DS 31560 5 1 1CFED8478...'
-D DNSSEC enable with default root anchor
from /etc/unbound/root.key
-f keyfile read trust anchors from file, with lines as -y.
-F keyfile read named.conf-style trust anchors.
-C config use the specified unbound.conf (none read by default)
pass as first argument if you want to override some
options with further arguments
-r read forwarder information from /etc/resolv.conf
breaks validation if the forwarder does not do DNSSEC.
-v be more verbose, shows nodata and security.
-d debug, traces the action, -d -d shows more.
-4 use ipv4 network, avoid ipv6.
-6 use ipv6 network, avoid ipv4.
-h show this usage help.
Version 1.26.2
BSD licensed, see LICENSE in source package for details.
Report bugs to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues
Options (13)
| Option | Description | Source |
|---|
-t type | Specify the type of data to lookup. | help + man |
-c class | Specify the class to lookup for, the default is IN the internet class. | help + man |
-y 'keystring' | Specify a public key to use as trust anchor. | help + man |
-D | DNSSEC enable with default root anchor from /etc/unbound/root.key | help + man |
-f keyfile | read trust anchors from file, with lines as -y. | help + man |
-F keyfile | Reads keys from a BIND-style named.conf file. | help + man |
-C config | use the specified unbound.conf (none read by default) pass as first argument if you want to override some options with further arguments | help + man |
-r | read forwarder information from /etc/resolv.conf breaks validation if the forwarder does not do DNSSEC. | help + man |
-v | Enable verbose output and it shows validation results, on every line. | help + man |
-d | debug, traces the action, -d -d shows more. | help + man |
-4 | Use solely the IPv4 network for sending packets. | help + man |
-6 | Use solely the IPv6 network for sending packets. | help + man |
-h | Show the version and commandline option help. | help + man |
Exit status (2) from the manual page
Examples (3) from the manual page, untested
unbound-host www.example.com
Some examples of use.unbound-host -v -y "example.com DS 31560 5 1 1CFED84787E6E19CCF9372C1187325972FE546CD" www.example.com
Some examples of use.unbound-host -v -y "example.com DS 31560 5 1 1CFED84787E6E19CCF9372C1187325972FE546CD" 192.0.2.153
Some examples of use.
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.