]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
host -a should use TCP 12440/head
authorEvan Hunt <each@isc.org>
Wed, 22 Jul 2026 21:43:07 +0000 (14:43 -0700)
committerEvan Hunt <each@isc.org>
Thu, 23 Jul 2026 05:58:05 +0000 (05:58 +0000)
"host -a" is documented as being equivalent to "host -v -t any",
but it uses UDP while the other uses TCP. This has been corrected.

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

index 4156aec9a80a7da7aaee621b1b3c6eda1d9a3374..227b7a00e0208f9b65335a6f936cb16dabe92d80 100644 (file)
@@ -741,6 +741,9 @@ parse_args(bool is_batchfile, int argc, char **argv) {
                                lookup->rdtype = dns_rdatatype_any;
                        }
                        list_type = dns_rdatatype_any;
+                       if (!lookup->tcp_mode_set) {
+                               lookup->tcp_mode = true;
+                       }
                        list_addresses = false;
                        lookup->rdtypeset = true;
                        short_form = false;
index 71a736dde393d0e02577f40e9638e81310d9092f..198e3b611c415d043c277121acdc22168a80e77c 100644 (file)
@@ -51,8 +51,7 @@ Options
 
 .. option:: -a
 
-   The :option:`-a` ("all") option is normally equivalent to :option:`-v` :option:`-t ANY <-t>`. It
-   also affects the behavior of the :option:`-l` list zone option.
+   The :option:`-a` ("all") option is equivalent to :option:`-v` :option:`-t ANY <-t>`.
 
 .. option:: -A