From: Evan Hunt Date: Wed, 22 Jul 2026 21:43:07 +0000 (-0700) Subject: host -a should use TCP X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=37a0479283eeefce94311ed82e6fedcefe90cf9e;p=thirdparty%2Fbind9.git host -a should use TCP "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. --- diff --git a/bin/dig/host.c b/bin/dig/host.c index 4156aec9a80..227b7a00e02 100644 --- a/bin/dig/host.c +++ b/bin/dig/host.c @@ -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; diff --git a/bin/dig/host.rst b/bin/dig/host.rst index 71a736dde39..198e3b611c4 100644 --- a/bin/dig/host.rst +++ b/bin/dig/host.rst @@ -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