diff options
author | Jan Hák <jan.hak@nic.cz> | 2024-12-18 10:54:19 +0100 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2024-12-18 13:13:09 +0100 |
commit | 29edb4dde0625cba9a8e4bb8df70009799bcbf3c (patch) | |
tree | 3bef2aaaca4337c4597c0494e3d6042cac6e0eb1 | |
parent | tests-extra: zone/expire -- fix a typo (diff) | |
download | knot-29edb4dde0625cba9a8e4bb8df70009799bcbf3c.tar.xz knot-29edb4dde0625cba9a8e4bb8df70009799bcbf3c.zip |
utils: use knsupdate style of output when printing UPDATE message
-rw-r--r-- | src/utils/common/exec.c | 4 |
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); |