" +[no]showbadvers (Show BADVERS message)\n"
" +[no]showsearch (Search with intermediate "
"results)\n"
+ " +[no]showtruncated (Show truncated message)\n"
" +[no]split=## (Split hex/base64 fields "
"into chunks)\n"
" +[no]stats (Control display of "
usesearch = state;
}
break;
+ case 't':
+ FULLCHECK("showtruncated");
+ lookup->showtruncated = state;
+ break;
default:
goto invalid_option;
}
This option performs [or does not perform] a search showing intermediate results.
+.. option:: +showtruncated, +noshowtruncated
+
+ This option toggles whether to show the truncated message before
+ retrying the request over TCP or not. The default is to not show
+ the messages.
+
.. option:: +split=W
This option splits long hex- or base64-formatted fields in resource records into
looknew->showbadcookie = lookold->showbadcookie;
looknew->showbadvers = lookold->showbadvers;
+ looknew->showtruncated = lookold->showtruncated;
looknew->sendcookie = lookold->sendcookie;
looknew->seenbadcookie = lookold->seenbadcookie;
looknew->badcookie = lookold->badcookie;
if ((msg->flags & DNS_MESSAGEFLAG_TC) != 0 && !l->ignore &&
!l->tcp_mode)
{
+ if (l->showtruncated) {
+ dighost_printmessage(query, &b, msg, true);
+ dighost_received(isc_buffer_usedlength(&b), &peer,
+ query);
+ }
if (l->cookie == NULL && l->sendcookie && msg->opt != NULL) {
process_opt(l, msg);
}
section_answer, section_authority, section_question,
seenbadcookie, sendcookie, servfail_stops,
setqid, /*% use a speciied query ID */
- showbadcookie, showbadvers, stats, tcflag, tcp_keepalive,
- tcp_mode, tcp_mode_set, tls_mode, /*% connect using TLS */
- trace, /*% dig +trace */
+ showbadcookie, showbadvers, showtruncated, stats, tcflag,
+ tcp_keepalive, tcp_mode, tcp_mode_set, tls_mode, /*% connect
+ using TLS */
+ trace, /*% dig +trace */
trace_root, /*% initial query for either +trace or +nssearch */
ttlunits, use_usec, waiting_connect, zflag, zoneversion;
char textname[MXNAME]; /*% Name we're going to be looking up */