-
Notifications
You must be signed in to change notification settings - Fork 13
Feature/support all pb fields [WIP] #10
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
base: master
Are you sure you want to change the base?
Feature/support all pb fields [WIP] #10
Conversation
* Add specific functions to parse Response, RRs and common fields * Extended use of dnspython lib (especialy for rdata mgmt)
* Add a dedicated Query Field parser * Move from/to parsing to the Common parser
How compatible is it to the old format, for consumers?
This field is important to many users, can you add it anyway? :) |
originalRequestorSubnet support is loosely based on ProtobufLogger.py in PDNS source tree.
I'll try to raise a diff or something. BRB on the subject.
PR updated with the support of originalRequestorSubnet. It is based on Protobuf.py implementation in PDNS source tree. |
JSON Produced by this PRThe main difference I see from current layout:
Reference JSON / Current one |
Tested on the following query types (PowerDNS recursor export fields): + A + AAAA + CNAME + TXT + MX + NS + PTR + SRV Not tested: 'SPF': is deprecated, I don't know if there is still any usage. cf: https://tools.ietf.org/html/rfc7208#page-11 A small remark: * Transmitted MX & SRV fields are incomplete (Missing priority/ports ... integers). This may need an upstream fix.
|
Hello, this version works a lot better. The previous had plenty of error while parsing rdata (Sorry my dev env required some firewall opening at my company to be operational). It has been tested so far on:
Not done: |
|
FWIW I've a similar requirement and have implemented this code. I'm pushing to the receiver from DNSDist and had to remove the lines: As I was getting: and Other than that though it seems to be a step forward definitely. I'm seeing response.rrs.rdata.address fields as expected which is definitely useful for us. |
DNSdist is not in line with PDNS Recursor Protobuf Message version. This is require catching the Exception raised (And silently ignored)
|
@lwhitworth Hello I have been late on this. |
Hello,
This PR is a major rework on the Protobuf Parsing.
The Published Json is quite changed.
It supports:
My entended use is to provide required info for our SIEM with RPZ support on the DNS side (PDNS-Recursor)