mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-28 12:31:29 -05:00
When printing a packet, dnstap-read checks whether its text form takes up more than the 2048 bytes allocated for the output buffer by default. If that is the case, the output buffer is automatically expanded, but the truncated output is left in the buffer, resulting in malformed data being printed. Clear the output buffer before expanding it to prevent this issue from occurring.
20 lines
654 B
Text
20 lines
654 B
Text
Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
See COPYRIGHT in the source root or http://isc.org/copyright.html for terms.
|
|
|
|
The "large-answer.fstrm" file was generated by configuring a named instance
|
|
compiled with --enable-dnstap and --enable-fixed-rrset with the following
|
|
directives:
|
|
|
|
minimal-responses yes;
|
|
rrset-order { order fixed; };
|
|
dnstap { auth response; };
|
|
dnstap-identity none;
|
|
dnstap-output file "large-answer.fstrm";
|
|
|
|
The captured RRset from the "example." zone was created using:
|
|
|
|
$GENERATE 1-48 @ IN A 127.0.0.$
|
|
|
|
A server instance set up this way was then queried non-recursively (RD=0) for
|
|
"example/A".
|