]> granicus.if.org Git - pdns/commit
dnsdist: Add `QNameLabelsCountRule()` and `QNameWireLengthRule()`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jul 2016 13:39:16 +0000 (15:39 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jul 2016 13:39:16 +0000 (15:39 +0200)
commit57c61ce95cbf3c5d3602df515901ffcc72821fc9
treec4e121a4c9ddc1982feda5d37f0e3e0772db5a4d
parent5d1629d943b42b50c274ef24b3ec05f139bfa43b
dnsdist: Add `QNameLabelsCountRule()` and `QNameWireLengthRule()`

* QNameLabelsCountRule(min, max) matches if the qname has less than
min or more than max labels.
* QNameWireLengthRule(min, max) matches if the qname's length on the
wire is less than min or more than max bytes.
* Also add Lua bindings for DNSName's `countLabels()` and `wirelength()`
pdns/README-dnsdist.md
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsrulactions.hh
regression-tests.dnsdist/test_Advanced.py