From 2a047af31e1f1aaedd38abb73b2daf08fbffb26d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 22 Jul 2019 05:03:15 +1000 Subject: [PATCH] set DNS_STYLEFLAG_EXPANDAAAA flag in say_message if appropriate --- bin/dig/dig.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/dig/dig.c b/bin/dig/dig.c index 8b11e035b6..8e535ca69a 100644 --- a/bin/dig/dig.c +++ b/bin/dig/dig.c @@ -354,6 +354,8 @@ say_message(dns_rdata_t *rdata, dig_query_t *query, isc_buffer_t *buf) { styleflags |= DNS_STYLEFLAG_NOCRYPTO; if (query->lookup->print_unknown_format) styleflags |= DNS_STYLEFLAG_UNKNOWNFORMAT; + if (query->lookup->expandaaaa) + styleflags |= DNS_STYLEFLAG_EXPANDAAAA; result = dns_rdata_tofmttext(rdata, NULL, styleflags, 0, splitwidth, " ", buf); if (result == ISC_R_NOSPACE)