]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add +showallmessages to dig
authorMark Andrews <marka@isc.org>
Thu, 27 Nov 2025 04:22:44 +0000 (15:22 +1100)
committerMark Andrews <marka@isc.org>
Mon, 1 Dec 2025 22:34:13 +0000 (09:34 +1100)
This is equivalent to "dig +qr +showbadcookie +showbadversion
+showtruncated".

bin/dig/dig.c
bin/dig/dig.rst

index f227f4e99acdd2bb94b4fa1c5b406fe04856ab17..b1d12ec2b60a82e58b607145f7a266fa4ef78b08 100644 (file)
@@ -302,6 +302,7 @@ help(void) {
               "short\n"
               "                                      form of answers - global "
               "option)\n"
+              "                 +[no]showallmessages (Show all messages)\n"
               "                 +[no]showbadcookie  (Show BADCOOKIE message)\n"
               "                 +[no]showbadvers    (Show BADVERS message)\n"
               "                 +[no]showsearch     (Search with intermediate "
@@ -2313,6 +2314,13 @@ plus_option(char *option, bool is_batchfile, bool *need_clone,
                                break;
                        case 'w': /* showsearch */
                                switch (cmd[4]) {
+                               case 'a':
+                                       FULLCHECK("showallmessages");
+                                       lookup->showbadcookie = state;
+                                       lookup->showbadvers = state;
+                                       lookup->showtruncated = state;
+                                       lookup->qr = state;
+                                       break;
                                case 'b':
                                        switch (cmd[7]) {
                                        case 'c':
index 99e7d096b9351a153f1c004ae8fb480668a07d87..ff60c06c7e7a6dbc50385ebb920acabaeaedc744 100644 (file)
@@ -615,6 +615,11 @@ abbreviation is unambiguous; for example, :option:`+cd` is equivalent to
    form. This option always has a global effect; it cannot be set globally and
    then overridden on a per-lookup basis.
 
+.. option:: +showallmessages, +noshowallmessages
+
+   This options sets / clears +qr, +showbadcookie, +showbadvers and
+   +showtruncated.
+
 .. option:: +showbadcookie, +noshowbadcookie
 
    This option toggles whether to show the message containing the