]> granicus.if.org Git - pdns/commit
dnsdist: Drop queries with no question (qdcount == 0)
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 23 Jan 2016 10:59:39 +0000 (11:59 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 23 Jan 2016 10:59:39 +0000 (11:59 +0100)
commit2efd427df50db77740bb9be2bf0bf95efaebd4e9
tree9fba0166544eb04f7f2cb9a3999fc511abc4ba79
parentda3b4144ed04879e07a9c7315b76731ee3c3e4a3
dnsdist: Drop queries with no question (qdcount == 0)

Added a counter for these dropped queries, `emptyQueries` too.
This might be an issue for DNS cookies some day, as it uses
query with no question [1].
Additionnaly drops queries with QR set over TCP too to be
consistent with UDP.
This might close #3290.

[1]: https://tools.ietf.org/html/draft-ietf-dnsop-cookies-09#section-5.4
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh