<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>The issue i have is that one of the fields in <a href="https://github.com/PowerDNS/pdns/blob/master/pdns/dnsmessage.proto" id="1206f2d1c16c1080cd8092e3da007eeb-d64de370c8270b4a3ca23a0ce7351f26d7d7ddd1" title="dnsmessage.proto">dnsmessage.proto</a> is called "class" which when compiled brakes the Ruby library i'm using since it interprets the field name as object of type Class and it blows up.</div>

<div> </div>

<div>I have raised issue with repo to try work around. </div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, June 01, 2017 at 4:49 PM<br/>
<b>From:</b> "Remi Gacogne" <remi.gacogne@powerdns.com><br/>
<b>To:</b> No recipient address<br/>
<b>Cc:</b> dnsdist@mailman.powerdns.com<br/>
<b>Subject:</b> Re: [dnsdist] Only see question events being logged via protobuf, no response ?</div>

<div name="quoted-content">Hi Scott,<br/>
<br/>
On 06/01/2017 10:31 AM, scott McGillivray wrote:<br/>
> rl = newRemoteLogger('127.0.0.1:2222')<br/>
> addAction(AllRule(), RemoteLogAction(rl))<br/>
> addResponseAction(AllRule(), RemoteLogResponseAction(rl, nil, true))<br/>
><br/>
> But i only seem to be getting question events, no response events.<br/>
<br/>
This exact configuration works fine for me on master. How are you<br/>
testing exactly? Keep in mind that Response Actions are not executed on<br/>
a cache hit, you'll want to use addCacheHitResponseAction() for that.<br/>
<br/>
> still trying to figure out where my protobuf is failing... can someone<br/>
> help by telling me how i can use DNSProtoBufMessage::toDebugString() to<br/>
> see the pretty printed event before it's serialized and sent ?<br/>
<br/>
The only places where you have access to a DNSProtoBufMessage object are<br/>
the alteration functions passed to RemoteLogAction() and<br/>
RemoteLogResponseAction():<br/>
<br/>
function alterPB(dq, pb)<br/>
print(pb:toDebugString())<br/>
end<br/>
<br/>
rl = newRemoteLogger('127.0.0.1:2222')<br/>
addAction(AllRule(), RemoteLogAction(rl, alterPB))<br/>
addResponseAction(AllRule(), RemoteLogResponseAction(rl, alterPB, true))<br/>
<br/>
<br/>
Best regards,<br/>
--<br/>
Remi Gacogne<br/>
PowerDNS.COM BV - <a href="https://www.powerdns.com/" target="_blank">https://www.powerdns.com/</a><br/>
<br/>
_______________________________________________<br/>
dnsdist mailing list<br/>
dnsdist@mailman.powerdns.com<br/>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" target="_blank">https://mailman.powerdns.com/mailman/listinfo/dnsdist</a></div>
</div>
</div>
</div></div></body></html>