Skip to content

Conversation

@rgacogne
Copy link
Member

@rgacogne rgacogne commented Jun 6, 2016

  • 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

* 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
for(size_t n = 0; n < numrecords; ++n) {
dpm.skipLabel();

/* const uint16_t dnstype */ dpm.get16BitInt();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd suggest not having multi-line comment syntax and actual code on the same line

@ahupowerdns ahupowerdns merged commit cead95c into PowerDNS:master Jun 7, 2016
@rgacogne rgacogne deleted the dnsdist-more-filtering-options branch June 7, 2016 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants