From: Wouter Wijngaards Date: Thu, 21 Jun 2018 12:31:42 +0000 (+0000) Subject: - Fix usage printout for unbound-host, hostname has to be last X-Git-Tag: release-1.8.0rc1~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c225ced1a994c1e23289ddb128e0b16e69f71313;p=thirdparty%2Funbound.git - Fix usage printout for unbound-host, hostname has to be last argument on BSDs and Windows. git-svn-id: file:///svn/unbound/trunk@4751 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index d9a6e61fc..883db5e0b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,7 @@ 21 June 2018: Wouter - #4108: systemd reload hang fix. + - Fix usage printout for unbound-host, hostname has to be last + argument on BSDs and Windows. 19 June 2018: Wouter - Fix for unbound-control on Windows and set TCP socket parameters diff --git a/smallapp/unbound-host.c b/smallapp/unbound-host.c index cd1ffe335..31c022033 100644 --- a/smallapp/unbound-host.c +++ b/smallapp/unbound-host.c @@ -82,9 +82,9 @@ static int verb = 0; static void usage(void) { - printf("Usage: unbound-host [-vdhr46] [-c class] [-t type] hostname\n"); + printf("Usage: unbound-host [-vdhr46] [-c class] [-t type]\n"); printf(" [-y key] [-f keyfile] [-F namedkeyfile]\n"); - printf(" [-C configfile]\n"); + printf(" [-C configfile] hostname\n"); printf(" Queries the DNS for information.\n"); printf(" The hostname is looked up for IP4, IP6 and mail.\n"); printf(" If an ip-address is given a reverse lookup is done.\n");