[dnsdist] Logging

Casey Deccio casey at deccio.net
Thu Mar 21 15:41:06 UTC 2019


Hello again,

> On Mar 19, 2019, at 2:19 PM, Jonathan Reed <jreed777 at gmail.com> wrote:
> 
> Winfried provided some help to me a few months back by pointing out that the Protobuf example code is located in the pdns repo.
> https://github.com/PowerDNS/pdns/blob/master/contrib/ProtobufLogger.py <https://github.com/PowerDNS/pdns/blob/master/contrib/ProtobufLogger.py>
> 
> I was able to customize that to format the logs into something we were happy with. Only thing I didn't get working was showing the response name, (rr.name <http://rr.name/>) in the log  file. 

Thanks again for that pointer.  I am happily logging now.

Here is a related question.  How trivial would it be to log client port number?  I see client IP address, but I couldn't see anything related to port number, and it wasn't immediately apparent how I might do that.

Thanks,
Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20190321/b3cc7c28/attachment.html>


More information about the dnsdist mailing list