[Pdns-users] DNS query logging via protobufServer

sandmant at rice.edu sandmant at rice.edu
Thu Jun 3 00:05:02 UTC 2021

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:

  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
  root at net1:/etc/pdns-recursor> cat /etc/pdns-recursor/lua.conf
  { logQueries=true,
    {'A', 'AAAA', 'CNAME', 'MX', 'NS', 'SPF', 'SRV', 'TXT'}
  } )

Thanks for any advice. 

Tod A. Sandman
Sr. Systems Administrator
Office of Information Technology
Rice University

More information about the Pdns-users mailing list