diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2019-12-31 19:18:17 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2019-12-31 19:18:17 +0000 |
commit | 4c3dd002590186bc6e4dbff8fd43616b432a87ae (patch) | |
tree | bc68f309d401d12842eb75dfdc4dd8e7ea508641 | |
parent | 5061b51b46d61da625d3717f8b008576c8c49e35 (diff) |
totally sync the manpage queryopts with usage(); i've adopted the usage
pattern of "###" for argument names evrywhere it makes sense, but shortened it
to "#";
-rw-r--r-- | usr.sbin/bind/bin/dig/dig.1 | 60 | ||||
-rw-r--r-- | usr.sbin/bind/bin/dig/dig.c | 22 |
2 files changed, 42 insertions, 40 deletions
diff --git a/usr.sbin/bind/bin/dig/dig.1 b/usr.sbin/bind/bin/dig/dig.1 index e3fc1347502..4fc2b02ba82 100644 --- a/usr.sbin/bind/bin/dig/dig.1 +++ b/usr.sbin/bind/bin/dig/dig.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dig.1,v 1.22 2019/12/30 21:25:43 jmc Exp $ +.\" $OpenBSD: dig.1,v 1.23 2019/12/31 19:18:16 jmc Exp $ .\" .\" Copyright (C) 2000-2011, 2013-2018 Internet Systems Consortium, Inc. ("ISC") .\" @@ -14,7 +14,7 @@ .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\" PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: December 30 2019 $ +.Dd $Mdocdate: December 31 2019 $ .Dt DIG 1 .Os .Sh NAME @@ -334,9 +334,9 @@ The default is to display it. .Xc Attempt to display the contents of messages which are malformed. The default is to not display malformed answers. -.It Cm +bufsize Ns = Ns Ar B +.It Cm +bufsize Ns = Ns Ar # Set the UDP message buffer size advertised using EDNS0 to -.Ar B +.Ar # bytes. The maximum and minimum sizes of this buffer are 65535 and 0 respectively. Values outside this range are rounded up or down appropriately. @@ -374,8 +374,8 @@ The default is to print comments. .It Xo .Cm + Ns .Op Cm no Ns -.Cm cookie Ns = Ns -.Ar value +.Cm cookie Ns +.Op = Ns Ar value .Xc Send a COOKIE EDNS option, containing an optional .Ar value . @@ -443,9 +443,9 @@ Deprecated, treated as a synonym for .Xc Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in the OPT record in the additional section of the query. -.It Cm +domain Ns = Ns Ar somename +.It Cm +domain Ns = Ns Ar name Set the search list to contain the single domain -.Ar somename , +.Ar name , as if specified in a .Ic domain directive in @@ -457,7 +457,7 @@ option were given. .Cm + Ns .Op Cm no Ns .Cm edns Ns -.Op = Ns Ar ### +.Op = Ns Ar # .Xc Specify the EDNS version to query with. Valid values are 0 to 255. @@ -469,7 +469,7 @@ EDNS is set to 0 by default. .Cm + Ns .Op Cm no Ns .Cm ednsflags Ns -.Op = Ns Ar ### +.Op = Ns Ar # .Xc Set the must-be-zero EDNS flags bits (Z bits) to the specified value. Decimal, hex and octal encodings are accepted. @@ -563,11 +563,11 @@ The default is to print each record on a single line, to facilitate machine parsing of the .Nm output. -.It Cm +ndots Ns = Ns Ar ### +.It Cm +ndots Ns = Ns Ar # Set the number of dots that have to appear in .Ar name to -.Ar ### +.Ar # for it to be considered absolute. The default value is that defined using the ndots statement in .Pa /etc/resolv.conf , @@ -609,7 +609,7 @@ The default is to print both the starting and ending SOA records. .Cm + Ns .Op Cm no Ns .Cm opcode Ns = Ns -.Ar ### +.Ar # .Xc Set or restore the DNS message opcode to the specified value. The default value is QUERY (0). @@ -652,9 +652,9 @@ Recursion is automatically disabled when the or .Cm +trace query options are used. -.It Cm +retry= Ns Ar ### +.It Cm +retry= Ns Ar # Sets the number of times to retry UDP queries to server to -.Ar ### +.Ar # instead of the default, 2. Unlike .Cm +tries , @@ -700,7 +700,7 @@ Perform a search showing intermediate results. .Cm + Ns .Op Cm no Ns .Cm sit Ns -.Op = Ns Ar ### +.Op = Ns Ar # .Xc This option is a synonym for .Xo @@ -716,11 +716,15 @@ The .Cm sit .Xc option is deprecated. -.It Cm +split Ns = Ns Ar ### +.It Xo +.Cm + Ns +.Op Cm no Ns +.Cm split Ns = Ns Ar # +.Xc Split long hex- or base64-formatted fields in resource records into chunks of -.Ar ### +.Ar # characters (where -.Ar ### +.Ar # is rounded up to the nearest multiple of 4). .Cm +nosplit or @@ -736,11 +740,9 @@ This query option toggles the printing of statistics: when the query was made, the size of the reply and so on. The default behavior is to print the query statistics. .It Xo -.Cm + Ns -.Op Cm no Ns -.Cm subnet Ns = Ns +.Cm +subnet Ns = Ns .Ar addr Ns -.Op / Ns Ar prefix-length +.Op / Ns Ar prefix .Xc Send an EDNS Client Subnet option with the specified IP address or network prefix. @@ -764,13 +766,13 @@ Use TCP when querying name servers. The default behavior is to use UDP unless an ixfr=N query is requested, in which case the default is TCP. AXFR queries always use TCP. -.It Cm +time= Ns Ar ### +.It Cm +time= Ns Ar # Sets the timeout for a query to -.Ar ### +.Ar # seconds. The default timeout is 5 seconds. An attempt to set -.Ar ### +.Ar # to less than 1 will result in a query timeout of 1 second being applied. .It Xo .Cm + Ns @@ -793,12 +795,12 @@ zone name servers. is also set when .Cm +trace is set to better emulate the default queries from a name server. -.It Cm +tries Ns = Ns Ar ### +.It Cm +tries Ns = Ns Ar # Sets the number of times to try UDP queries to server to -.Ar ### +.Ar # instead of the default, 3. If -.Ar ### +.Ar # is less than or equal to zero, the number of tries is silently rounded up to 1. .It Xo .Cm + Ns diff --git a/usr.sbin/bind/bin/dig/dig.c b/usr.sbin/bind/bin/dig/dig.c index e7ae4829a4b..2781c167ece 100644 --- a/usr.sbin/bind/bin/dig/dig.c +++ b/usr.sbin/bind/bin/dig/dig.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dig.c,v 1.26 2019/12/30 19:39:23 jmc Exp $ */ +/* $Id: dig.c,v 1.27 2019/12/31 19:18:16 jmc Exp $ */ /*! \file */ @@ -154,16 +154,16 @@ print_usage(FILE *fp) { " [-k keyfile] [-p port] [-q name] [-t type] [-x addr]\n" " [-y [hmac:]name:key] [name] [type] [class]\n" " +[no]aaonly +[no]additional +[no]adflag +[no]all +[no]answer\n" -" +[no]authority +[no]besteffort +bufsize=### +[no]cdflag +[no]cl\n" -" +[no]cmd +[no]comments +[no]cookie +[no]crypto +[no]defname\n" -" +[no]dnssec +domain=### +[no]edns[=###] +ednsflags=###\n" -" +[no]ednsnegotiation +ednsopt=###[:value] +noednsopt +[no]expire\n" -" +[no]fail +[no]identify +[no]idnout +[no]ignore +[no]keepopen\n" -" +[no]multiline +ndots=### +[no]nsid +[no]nssearch +[no]onesoa\n" -" +[no]opcode=### +[no]qr +[no]question +[no]recurse +retry=###\n" -" +[no]rrcomments +[no]search +[no]short +[no]showsearch +[no]sit\n" -" +[no]split=### +[no]stats +subnet=addr +[no]tcp +time=###\n" -" +[no]trace +tries=### +[no]ttlid +[no]vc\n", fp); +" +[no]authority +[no]besteffort +bufsize=# +[no]cdflag +[no]cl\n" +" +[no]cmd +[no]comments +[no]cookie[=value] +[no]crypto +[no]defname\n" +" +[no]dnssec +domain=name +[no]edns[=#] +[no]ednsflags[=#]\n" +" +[no]ednsnegotiation +[no]ednsopt[=code[:value]]\n" +" +[no]expire +[no]fail +[no]identify +[no]idnout +[no]ignore\n" +" +[no]keepopen +[no]multiline +ndots=# +[no]nsid +[no]nssearch\n" +" +[no]onesoa +[no]opcode=# +[no]qr +[no]question +[no]recurse\n" +" +retry=# +[no]rrcomments +[no]search +[no]short +[no]showsearch\n" +" +[no]split=# +[no]stats +subnet=addr[/prefix] +[no]tcp +time=#\n" +" +[no]trace +tries=# +[no]ttlid +[no]vc\n", fp); } ISC_PLATFORM_NORETURN_PRE static void |