[dnsdist] Only see question events being logged via protobuf, no response ?

Remi Gacogne remi.gacogne at powerdns.com
Thu Jun 1 08:49:30 UTC 2017

Hi Scott,

On 06/01/2017 10:31 AM, scott McGillivray wrote:
> rl = newRemoteLogger('')
> addAction(AllRule(), RemoteLogAction(rl))
> addResponseAction(AllRule(), RemoteLogResponseAction(rl, nil, true))
> But i only seem to be getting question events, no response events.

This exact configuration works fine for me on master. How are you
testing exactly? Keep in mind that Response Actions are not executed on
a cache hit, you'll want to use addCacheHitResponseAction() for that.

> still trying to figure out where my protobuf is failing... can someone
> help by telling me how i can use DNSProtoBufMessage::toDebugString()  to
> see the pretty printed event before it's serialized and sent ?

The only places where you have access to a DNSProtoBufMessage object are
the alteration functions passed to RemoteLogAction() and

function alterPB(dq, pb)

rl = newRemoteLogger('')
addAction(AllRule(), RemoteLogAction(rl, alterPB))
addResponseAction(AllRule(), RemoteLogResponseAction(rl, alterPB, true))

Best regards,
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20170601/6dc17363/attachment.sig>

More information about the dnsdist mailing list