[Pdns-users] DNS query logging via protobufServer

Otto Moerbeek otto at drijf.net
Thu Jun 3 05:40:09 UTC 2021

On Wed, Jun 02, 2021 at 07:05:02PM -0500, Tod Sandman via Pdns-users wrote:

> I have been successfully exporting DNS queries via protobufServer, but I have now been requested to not export PTR lookups.  I removed PTR queries from the protobufServer exportTypes:
>  < {'A', 'AAAA', 'CNAME', 'MX', 'PTR', 'NS', 'SPF', 'SRV', 'TXT'}
>  > {'A', 'AAAA', 'CNAME', 'MX', 'NS', 'SPF', 'SRV', 'TXT'}
> I stopped and started pdns-recursor. But I am still seeing PTR query logs. For instance:
>   2021-06-02T16:37:43.153613-05:00 dnslogger-n2 pdns-in[2202729]: QID: 35371 from: qtype: PTR qclass: IN qname: rcode: NOERROR rrcount: 0
> Is the protobufServer exportTypes list being ignored, or am I missing something?
> System details:
>   RHEL8.2
>   pdns-recursor-4.4.2-1pdns.el8.x86_64 from https://repo.powerdns.com/repo-files/centos-rec-44.repo
>   root at net1:/etc/pdns-recursor> grep lua-config-file recursor.conf
>   lua-config-file=/etc/pdns-recursor/lua.conf
>   root at net1:/etc/pdns-recursor> cat /etc/pdns-recursor/lua.conf
>   protobufServer("",
>   { logQueries=true,
>     logResponses=true,
>     exportTypes=
>     {'A', 'AAAA', 'CNAME', 'MX', 'NS', 'SPF', 'SRV', 'TXT'}
>   } )
> Thanks for any advice. 


I think th econfusion is that exportTypes only concern the types of
resource record added to a log message for responses, not the type
in the query header.

This is menttoned in the documentation, but easy to missundesrstand.

Hope this helps,


More information about the Pdns-users mailing list