[Pdns-users] Recursor address in Dnstap messages
Otto Moerbeek
otto at drijf.net
Tue Mar 23 07:20:22 UTC 2021
On Tue, Mar 23, 2021 at 07:56:07AM +0100, Hans Seidel via Pdns-users wrote:
> unfortunately, the identify field does not work since it just contains the
> string "DNS". I will probably file a feature request via github as next
> step.
The recursor fills in the value of server-id, which can be set in
recursor.conf:
https://docs.powerdns.com/recursor/settings.html#server-id
You could use DNS1, DNS2, ... to distinguish the recursors in he dnstap
messages.
Feature request PR rregarding query-address still appreciated. Though
I'm not sure if it is simple, the value is not immediately available
in the spot where it is needed for dnstap logging.
-Otto
>
> Thanks,
> Hans
>
> On 22.03.21 08:44, Hans Seidel wrote:
> > Hello Peter,
> >
> > thanks for the tip with the identity field. I will look into it. I need
> > to make a few changes in our log receiver, since we do not evaluate this
> > field yet.
> >
> > Best,
> > Hans
> >
> > On 19.03.21 11:12, Peter van Dijk via Pdns-users wrote:
> > > Hello Hans,
> > >
> > > On Fri, 2021-03-19 at 10:08 +0100, Hans Seidel via Pdns-users wrote:
> > > > Hello,
> > > >
> > > > we are using the message logging via Dnstap of the PowerDNS Recursor
> > > > (version 4.4.2). Since we have several instances that send us log
> > > > messages, we want to distinguish the different instances via their IP
> > > > address. I assumed that recursors IP address is set in the
> > > > query_address field of the Dnstap massage but it is not set at all.
> > > You're right, the code does not set it.
> > >
> > > How about the identity field? Is that set in the feeds you get?
> > >
> > > > Is there an option to set/add the recursor IP address to the Dnstap
> > > > messages?
> > > Not right now, the code simply is not there - filing a feature request
> > > via https://github.com/PowerDNS/pdns/issues/new/choose is always
> > > possible, of course, but first I'd like to see if the identity field
> > > might work for you.
> > >
> > > Kind regards,
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
More information about the Pdns-users
mailing list