-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add support for Public Suffix #38
Conversation
@dmachard What do you think about this? I am mostly interested in aggregating by domain, so by public suffix + 1 label. (I know, there are cases for which this does not work.) |
Thank again, any PR will be apreciated. Just to be sure, have you take a look to the User feature privacy ? If my understand is correct, you can have acheived what you need by enable the
On another hand, your implemention is perphap better, have you make some bench regarding the publicsuffix library ? |
I did look at the user privacy feature but it doesn't work as intended for domains like .co.uk. I have not conducted a performance test yet but I'm pretty certain that the impact would be negligible. |
Add fields based on the public suffix list (PSL). Useful for aggregation.
dfbeff4
to
f8871b0
Compare
I ran the BenchmarkPublicSuffix. Performance-wise, this should be absolutely negligible. I moved the the computation of the PSL-related fields to the |
You're right, the qname minimization implementation is very basic. Thanks for feedback regarding performance. |
Before to validate the merge request, could you add some documentations regarding the new directives Thanks again :) |
I didn't add these directives. Why did you choose to write your own templating instead of using Neither did I add support for the tail collector. |
In fact you did, in the file dnsutils/message.go line 218 to 221
This part in the code is used to have a custom text output line. Regarding text/template, I will take a look thanks. |
Hey @dmachard, I've added documentation regarding the newly added directives :) |
Add fields based on the public suffix list (PSL):
Useful for aggregation.