Maintained by: NLnet Labs

unbound-host.exe not accept -C option now

W.C.A. Wijngaards
Thu Sep 21 15:24:32 CEST 2017


Hi Newell,

I believe that windows, just like some BSDs, require the commandline
optione before the commandline argument(s).  Put the -C option after the
-d option, and put the www-name at the end of the line.

Best regards, Wouter

On 21/09/17 15:21, Newell Zhu via Unbound-users wrote:
> Hey,
> 
> I find unbound-host.exe cannot accept -C option for Windows 7.
> 
> When run .\unbound-host.exe -dv www.taobao.com <http://www.taobao.com>
> -C .\service.conf, it give output:
> 
> 
>     Usage:  unbound-host [-vdhr46] [-c class] [-t type] hostname
>                          [-y key] [-f keyfile] [-F namedkeyfile]
>                          [-C configfile]
>       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 <http://example.com> DS
>     31560 5 1 1CFED8478...'
>         -D                  DNSSEC enable with default root anchor
>                             from C:\Program Files\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)
>         -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.6.6
>     BSD licensed, see LICENSE in source package for details.
>     Report bugs to unbound-bugs at nlnetlabs.nl
>     <mailto:unbound-bugs at nlnetlabs.nl>
> 
> 
> 
> The installed unbound download
> from http://unbound.nlnetlabs.nl/downloads/unbound_setup_1.6.6.exe and I
> confirmed service.conf exists under the same folder.
> 
> To help location the problem, I install unbound 1.5.8 but it give the
> same output. Besides, I try the unbound-host on ubuntu and it’s work. 
> 
> I search Google with “unbound-host cannot accept -C option”,
> “unbound-host in windows”, but there are nothing helpful information.
> 
> So does the unbound-host not accept -C option on windows Or I have make
> some mistake?
> 
> Thank you in advance for any help you can give me. 
> 
> Regards,
> Newell
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20170921/df3c8a8f/attachment.sig>