]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/dnsparser.cc
dnsdist: Filter on opcode, records count/type, trailing data
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Jun 2016 08:34:37 +0000 (10:34 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Jun 2016 08:34:37 +0000 (10:34 +0200)
commit55baa1f2ccf02267949efc8e96e96c55043f573e
tree2dff3f838c5f77d56990a5f10100c6a11e3184e0
parentdeffaae41f25016c0dd59badf65d6721f08a72c6
dnsdist: Filter on opcode, records count/type, trailing data

* Add `OpcodeRule()` to filter on opcode + DNSOpcode.* Lua values
* Add `TrailingDataRule()` to filter queries with trailing data
* Add `RecordsCountRule(section, minCount, maxCount)` to match on
the number of records in a given section
* Add `RecordsTypeCountRule(section, type, minCount, maxCount)` to
match on the number of records of type `type` in a given section
* Add DNSSection.* Lua values
* Add DNSClass.* Lua values
14 files changed:
pdns/README-dnsdist.md
pdns/dnsdist-lua.cc
pdns/dnsdistconf.lua
pdns/dnsparser.cc
pdns/dnsparser.hh
pdns/dnsrulactions.hh
regression-tests.dnsdist/dnsdisttests.py
regression-tests.dnsdist/test_Advanced.py
regression-tests.dnsdist/test_Basics.py
regression-tests.dnsdist/test_Carbon.py
regression-tests.dnsdist/test_CheckConfig.py
regression-tests.dnsdist/test_EdnsClientSubnet.py
regression-tests.dnsdist/test_RecordsCount.py [new file with mode: 0644]
regression-tests.dnsdist/test_Trailing.py [new file with mode: 0644]