-
Notifications
You must be signed in to change notification settings - Fork 29
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
update: fix dkim extraction from TXT records for some domains #25
update: fix dkim extraction from TXT records for some domains #25
Conversation
Weirdly for some TXT record answers, the TXT record string has a `\\"` before the DKIM prefix because of which an empty string was returned. This tries to remove the escape characters and correctly read the DKIM record
The changes are completed and ready for review now :) |
@vishal-android-freak thanks for the contribution! I'll give this a look over :) Do you have a domain that you can provide that exhibits the problematic behaviour before your changes, please? |
Yes, it is my company's domain itself - https://rudrasecure.com The extracted TXT record has a |
@vishal-android-freak what DKIM selector does your domain use? I'm not currently seeing a DKIM record with our default list :D |
Ah yes, I pass the |
@vishal-android-freak yep, and which selector do you provide? Could you provide me with the scan command you're running? E.g. |
This is what I am running
|
Thanks! |
@vishal-android-freak after inspecting your domain directly, it seems that this is actually a misconfiguration issue. Here's the raw dig output from our
And here's the raw dig output from your domain:
Your record itself contains backslashes. I'm assuming when you added the DNS record to your provider, you left the quotes intact, and then your DNS provider automatically escaped them when creating the record. |
Weirdly for some TXT record answers, the TXT record string has a
\\"
before the DKIM prefix because of which an empty string was returned. This tries to remove the escape characters and correctly read the DKIM record