From f8ce4436846c2aeb0111dfc4d936c23dfb12d0f8 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 7 Dec 2022 15:51:34 +1100 Subject: [PATCH] Add reference to +tcp for +ignore (cherry picked from commit b5951f04111ed8c323d8b5960a721a8266220985) --- bin/dig/dig.rst | 9 +++++---- doc/man/dig.1in | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bin/dig/dig.rst b/bin/dig/dig.rst index 0ffd42be6c..d81ea3d51c 100644 --- a/bin/dig/dig.rst +++ b/bin/dig/dig.rst @@ -627,10 +627,11 @@ abbreviation is unambiguous; for example, :option:`+cd` is equivalent to .. option:: +tcp, +notcp - This option indicates whether to use TCP when querying name servers. - The default behavior is to use UDP unless a type ``any`` or ``ixfr=N`` - query is requested, in which case the default is TCP. AXFR queries - always use TCP. + This option indicates whether to use TCP when querying name + servers. The default behavior is to use UDP unless a type ``any`` + or ``ixfr=N`` query is requested, in which case the default is + TCP. AXFR queries always use TCP. To prevent retry over TCP when + TC=1 is returned from a UDP query, use ``+ignore``. .. option:: +timeout=T diff --git a/doc/man/dig.1in b/doc/man/dig.1in index 139f5028d1..dc311a18bb 100644 --- a/doc/man/dig.1in +++ b/doc/man/dig.1in @@ -726,10 +726,11 @@ This option sets [or does not set] the TC (TrunCation) bit in the query. The def .INDENT 0.0 .TP .B +tcp, +notcp -This option indicates whether to use TCP when querying name servers. -The default behavior is to use UDP unless a type \fBany\fP or \fBixfr=N\fP -query is requested, in which case the default is TCP. AXFR queries -always use TCP. +This option indicates whether to use TCP when querying name +servers. The default behavior is to use UDP unless a type \fBany\fP +or \fBixfr=N\fP query is requested, in which case the default is +TCP. AXFR queries always use TCP. To prevent retry over TCP when +TC=1 is returned from a UDP query, use \fB+ignore\fP\&. .UNINDENT .INDENT 0.0 .TP