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
merged 1 commit into from Aug 31, 2016

Conversation

rgacogne
Copy link
Member

For anonymization purpose, for example.
Closes #4112.

@Habbie
Copy link
Member

Habbie commented Aug 11, 2016

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

@rgacogne
Copy link
Member Author

ready for review!

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

s/purpose/purposes/ ?

@ahupowerdns ahupowerdns merged commit a6feb90 into PowerDNS:master Aug 31, 2016
@rgacogne rgacogne deleted the dnsdist-lua-anon branch August 31, 2016 14:50
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.

None yet

4 participants