private static void decodeQuestions(DnsRecordDecoder decoder,
                                        DnsQuery query, ByteBuf buf, int questionCount) throws Exception {
        for (int i = questionCount; i > 0; --i) {
            query.addRecord(DnsSection.QUESTION, decoder.decodeQuestion(buf));
        }
    }
Provides some utility methods for DNS message implementations.
core/src/test/java/com/linecorp/armeria/client/endpoint/dns/DnsMessageUtil.java