summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/common/exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/common/exec.c b/src/utils/common/exec.c
index 798ae421f..b91cc605a 100644
--- a/src/utils/common/exec.c
+++ b/src/utils/common/exec.c
@@ -1133,7 +1133,9 @@ void print_packet(const knot_pkt_t *packet,
}
// Print DNS sections.
- switch (style->format) {
+ format_t format = (knot_wire_get_opcode(packet->wire) == KNOT_OPCODE_UPDATE)
+ ? FORMAT_NSUPDATE : style->format;
+ switch (format) {
case FORMAT_DIG:
if (ancount > 0) {
print_section_dig(knot_pkt_rr(answers, 0), ancount, style);