This is handy for debugging interop problems, so we can see exactly what named is sending without fiddling with tcpdump. I have set the message's debug level to 11 so a debug level of 10 continues to produce only incoming packets in the log. Nothing else is at level 11. --- lib/dns/resolver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 96cd534..8ef2c5b 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -2228,6 +2228,16 @@ resquery_send(resquery_t *query) { } /* + * Log the outgoing packet. + */ + dns_message_logfmtpacket(fctx->qmessage, "sending packet:\n", + DNS_LOGCATEGORY_RESOLVER, + DNS_LOGMODULE_PACKETS, + &dns_master_style_comment, + ISC_LOG_DEBUG(11), + fctx->res->mctx); + + /* * We're now done with the query message. */ dns_message_reset(fctx->qmessage, DNS_MESSAGE_INTENTRENDER); -- 2.0.1