Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsdist: Add an optional Lua callback for altering a Protobuf message #4305

merged 1 commit into from Aug 31, 2016


Copy link

@rgacogne rgacogne commented Aug 11, 2016

For anonymization purpose, for example.
Closes #4112.

Copy link

@Habbie Habbie commented Aug 11, 2016

I think this needs two extra lines after #4291? sorry :)

Copy link
Member Author

@rgacogne rgacogne commented Aug 19, 2016

ready for review!

@rgacogne rgacogne force-pushed the rgacogne:dnsdist-lua-anon branch from 35ff724 to 5608b03 Aug 19, 2016
@rgacogne rgacogne added this to the dnsdist-1.1.0 milestone Aug 19, 2016
@@ -1274,8 +1274,8 @@ instantiate a server with additional parameters
* `QPSPoolAction(maxqps, poolname)`: set the packet into the specified pool only if it **does not** exceed the specified QPS limits, letting the subsequent rules apply otherwise
* `QPSAction(rule, maxqps)`: drop these packets if the QPS limits are exceeded
* `RCodeAction(rcode)`: reply immediatly by turning the query into a response with the specified rcode
* `RemoteLogAction(RemoteLogger)`: send the content of this query to a remote logger via Protocol Buffer
* `RemoteLogResponseAction(RemoteLogger)`: send the content of this response to a remote logger via Protocol Buffer
* `RemoteLogAction(RemoteLogger [, alterFunction])`: send the content of this query to a remote logger via Protocol Buffer. `alterFunction` is a callback, receiving a DNSQuestion and a DNSDistProtoBufMessage, that can be used to modify the Protocol Buffer content, for example for anonymization purpose

This comment has been minimized.


pieterlexis Aug 26, 2016

s/purpose/purposes/ ?

For anonymization purposes, for example.
@rgacogne rgacogne force-pushed the rgacogne:dnsdist-lua-anon branch from 5608b03 to a94673e Aug 26, 2016
@ahupowerdns ahupowerdns merged commit a6feb90 into PowerDNS:master Aug 31, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@rgacogne rgacogne deleted the rgacogne:dnsdist-lua-anon branch Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants